Auto Reload on Stake.com - CHUBB edition

Automatically claims rewards on Stake.com by sequentially clicking VIP Reward → Claim Reload → Return to Rewards. The script starts after a short page-load delay, mimics human behavior with random delays, occasional skipped cycles, and subtle mouse/scroll movements. FREE BONUS CODES @ https://t.me/codestats2 SOL: FVDejAWbUGsgnziRvFi4eGkJZuH6xuLviuTdi2g4Ut3o

Από την 21/08/2025. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Auto Reload on Stake.com - CHUBB edition
// @description  Automatically claims rewards on Stake.com by sequentially clicking VIP Reward → Claim Reload → Return to Rewards. The script starts after a short page-load delay, mimics human behavior with random delays, occasional skipped cycles, and subtle mouse/scroll movements. FREE BONUS CODES @ https://t.me/codestats2   SOL: FVDejAWbUGsgnziRvFi4eGkJZuH6xuLviuTdi2g4Ut3o
// @author       CHUBB
// @namespace    https://t.me/codestats2
// @version      08.21.2025 V9.11
// @match        https://stake.com/*
// @match        https://stake.us/*
// @match        https://stake.com/?tab=rewards&modal=vip
// @match        https://stake.us/?tab=rewards&modal=vip
// @run-at       document-idle
// @license      MIT
// ==/UserScript==

// First attempt after short delay
(function firstRun() {
    const firstDelay = Math.floor(Math.random() * 5000) + 5000; // 5–10s
    console.log(`First attempt in ${(firstDelay / 1000).toFixed(1)} seconds`);

    setTimeout(async () => {
        await claimReload();
        startCycle();
    }, firstDelay);
})();

function startCycle() {
    const min = 10 * 60 * 1000;   // 10 minutes
    const max = 12 * 60 * 1000;  // 12 minutes
    const delay = Math.floor(Math.random() * (max - min + 1)) + min;

    console.log(`Next reload attempt in ${(delay / 60000).toFixed(2)} minutes`);

    setTimeout(async () => {
        if (Math.random() < 0.1) {
            console.log("Skipped this round — acting lazy.");
            randomHumanFidget();
            startCycle();
        } else {
            await claimReload();
            startCycle();
        }
    }, delay);
}

async function claimReload() {
    simulateMouseMove();

    // Step 1: vip-reward-claim-reload
    const vipClicked = await orderedClick('button[data-testid="vip-reward-claim-reload"]');
    if (!vipClicked) return;

    // Step 2: claim-reload
    const claimClicked = await orderedClick('button[data-testid="claim-reload"]');
    if (!claimClicked) return;

    // Step 3: return-to-rewards
    await orderedClick('button[data-testid="return-to-rewards"]');

    simulateMouseMove();
    console.log("Completed full reload sequence.");
}

// Retry logic: tries multiple times before giving up
async function orderedClick(selector, retries = 10, interval = 1000) {
    for (let i = 0; i < retries; i++) {
        const el = document.querySelector(selector);
        if (el) {
            const delay = Math.floor(Math.random() * 2000) + 1000; // 1–3s wait
            await wait(delay);
            el.click();
            console.log(`Clicked: ${selector} (after ${delay}ms)`);
            return true;
        }
        console.log(`Waiting for: ${selector} (retry ${i + 1}/${retries})`);
        await wait(interval);
    }
    console.log(`Failed to find after ${retries} retries: ${selector}`);
    return false;
}

function simulateMouseMove() {
    const simElm = document.documentElement;
    const simMouseMove = new Event('mousemove', { bubbles: true });
    simElm.dispatchEvent(simMouseMove);
}

function randomHumanFidget() {
    if (Math.random() < 0.5) {
        simulateMouseMove();
        console.log("Fidget: mouse wiggle.");
    }
    if (Math.random() < 0.5) {
        const scrollAmount = Math.floor(Math.random() * 300) - 150;
        window.scrollBy({ top: scrollAmount, behavior: 'smooth' });
        console.log(`Fidget: scrolled ${scrollAmount}px`);
    }
}

function wait(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}