Greasy Fork

Greasy Fork is available in English.

Sanja93Z - Stake.com Auto Reload Claimer (10 minutes) V1

10 minutes Reload Claimer for stake.com

当前为 2025-05-28 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name Sanja93Z - Stake.com Auto Reload Claimer (10 minutes) V1
// @description 10 minutes Reload Claimer for stake.com
// @writer Sanja93z
// @version 28.05.2025 V1
// @match https://stake.com/*
// @match https://stake.com/?tab=rewards&modal=claimReload
// @match https://stake.com/?tab=rewards&modal=claimReload
// @run-at document-idle
// @namespace http://greasyfork.icu/de/users/1475718-sanja93z
// @downloadURL
// ==/UserScript==

setInterval(function() 
{
window.location.replace("https://stake.com/?tab=rewards&modal=claimReload")
}, 25000)

setInterval(function() 
{
document.querySelectorAll
("button[type='submit']")[0].click()
}, 1500)

(function() 
{
'use strict';
let countdownTime = 600;
}
)
function createTimer() 
{
const timer = document.createElement('div');
Object.assign(timer.style, 
{
position: 'fixed', top: '1.5cm', left: '0', backgroundColor: 'black', color: 'white',
padding: '10px', fontFamily: 'monospace', fontSize: '20px', zIndex: '10000', borderRadius: '5px'
});
timer.id = 'countdown-timer';
timer.textContent = '10:00';
document.body.appendChild(timer);
return timer;
}

function updateTimer(timer, timeInSeconds) 
{
const minutes = Math.floor
(timeInSeconds / 60);
const seconds = timeInSeconds % 60;
timer.textContent = `$
{
String(minutes).padStart(2, '0')
}:$
{
String(seconds).padStart(2, '0')
}`;
timer.style.backgroundColor = timeInSeconds <= 5 ? (timer.style.backgroundColor === 'black' ? 'red' : 'black') : 'black';
}
function playSound() {
        const sound = new Audio('https://assets.mixkit.co/active_storage/sfx/1121/1121-preview.mp3');
        sound.volume = 0.5;
        sound.play();
    }

    const timer = createTimer();
    const timerInterval = setInterval(() => {
        countdownTime -= 1;
        updateTimer(timer, countdownTime);
 
        if (countdownTime <= 0) {
            countdownTime = 620;
            updateTimer(timer, countdownTime);
            main();
 
            setTimeout(() => {
                console.log("Clicking back to rewards page");
                window.history.forward();
            }, 30000); // 30 seconds after claiming, go back
 
            if (claimCount >= 3) {
                setTimeout(() => {
                    console.log("Refreshing after 3 claims");
                    location.reload();
                }, 60000); // Wait 30 seconds before refreshing
                claimCount = 0;
            }
        }
    }, 1000);