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

目前為 2025-08-21 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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));
}