RE: Update Bot auto curation

You are viewing a single comment's thread:

part 6

...
// ✅ 1. Neutraliser TOUS les alert() (anti blocage total)
window.alert = function(message) {
console.warn("🚫 Alert bloquée :", message);
};

// ✅ 2. Optionnel : petit toast visuel (non bloquant)
function showToast(msg) {
const div = document.createElement('div');
div.textContent = msg;
div.style = position: fixed; bottom: 20px; left: 20px; background: #ff2e63; color: white; padding: 10px 15px; border-radius: 8px; z-index: 9999; font-size: 0.8rem; opacity: 0.9; font-family: sans-serif;;
document.body.appendChild(div);
setTimeout(() => div.remove(), 3000);
}

// ✅ 3. Hook automatique sur les boutons de vote
document.addEventListener('click', function(e) {
const btn = e.target.closest('button');
if (!btn) return;

// détecte les boutons de vote (tu peux ajuster si besoin)
if (btn.textContent.includes('%') || btn.textContent.includes('Vote')) {

    // sécurité anti freeze visuel
    setTimeout(() => {
        if (btn.textContent.includes('❌')) {
            console.log("⚠️ Vote failed auto-skip");
            showToast("Vote failed → skipped");
        }
    }, 1500);
}

});

// ✅ 4. Sécurité globale JS (aucune erreur ne bloque)
window.onerror = function(msg, url, line, col, error) {
console.error("💥 JS Error caught:", msg);
return true; // empêche blocage
};

window.onunhandledrejection = function(event) {
console.error("💥 Promise Error:", event.reason);
};

(html comment removed: ===== 💝 BIG DONATION BUTTON TOP LEFT ===== )

<button onclick="openDonationModal()" style="
    background: linear-gradient(135deg, #ff6b9d, #ffa800);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6);
    transition: all 0.25s ease;
    max-width: 280px;
    text-align: left;
    line-height: 1.4;
    animation: pulse 2s infinite;
"
onmouseover="this.style.transform='scale(1.08)'"
onmouseout="this.style.transform='scale(1)'">

    💝 If you want to support the project,<br>
    I accept donations.

</button>

(html comment removed: ===== 💎 DONATION MODAL ===== )

<div style="
    background:#111;
    padding:25px;
    border-radius:12px;
    width:320px;
    color:white;
    text-align:center;
    box-shadow: 0 0 25px rgba(255,107,157,0.4);
">

    <h2>💝 Support the project</h2>

    <input id="donationUser" placeholder="Your Hive username" style="width:100%; padding:10px; margin:10px 0; border-radius:8px; border:none;">
    
    <input id="donationAmount" placeholder="Amount" type="number" style="width:100%; padding:10px; margin:10px 0; border-radius:8px; border:none;">

    <select id="donationToken" style="width:100%; padding:10px; margin:10px 0; border-radius:8px;">




































































    <button onclick="sendDonation()" style="
        width:100%;
        padding:12px;
        margin-top:10px;
        background:#ff6b9d;
        border:none;
        border-radius:8px;
        color:white;
        font-weight:bold;
        cursor:pointer;
    ">
        Send Donation
    </button>

    <button onclick="closeDonationModal()" style="
        width:100%;
        padding:10px;
        margin-top:10px;
        background:#333;
        border:none;
        border-radius:8px;
        color:white;
        cursor:pointer;
    ">
        Cancel
    </button>

</div>

(html comment removed: ===== ⚙️ STYLE ANIMATION ===== )

(html comment removed: ===== ⚙️ SCRIPT ===== )

(html comment removed: ========== PATCH FINAL : Auto-Vote Delay + VP Recovery Time ========== )

(html comment removed: ========== PATCH FINAL AMÉLIORÉ - VP Live + Recovery Correct + Delay ========== )

...


0
0
0.000
0 comments