Auto Reload on Stake.com - LATEST UPDATE 2024 WORKS FOREVER

Automatic reloads every 10 minutes or less. updated for latest Stake website. Will work forever!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Auto Reload on Stake.com - LATEST UPDATE 2024 WORKS FOREVER
// @description  Automatic reloads every 10 minutes or less. updated for latest Stake website. Will work forever!
// @author       PassoLargoBR
// @version      2024.03.21
// @match        https://stake.com/*
// @match        https://stake.com/casino/home?tab=reload&modal=vip&currency=*
// @match        https://stake.com/?tab=reload&modal=vip&currency=*
// @run-at       document-idle
// @namespace https://greasyfork.org/users/824858
// ==/UserScript==

var currency = 'trx'; //currency to claim
currency = currency.toLowerCase();

setInterval(function() {
  window.location.replace("https://stake.com/?tab=reload&modal=vip&currency="+currency+"");
}, 60*1000); // 60 sec.

setInterval(function() {
  simulateMouseMove();
  document.querySelectorAll("button[type='submit']")[0].click();
}, 10*1000); // 10 sec.

function simulateMouseMove() {
    const simElm = window.document.documentElement;
    const simMouseMove = new Event('mousemove');
    simElm.dispatchEvent(simMouseMove);
}