Delay the free claim click
This commit is contained in:
parent
c13989ac84
commit
1375be8f40
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Easy Skins Coin Claimer
|
// @name Easy Skins Coin Claimer
|
||||||
// @namespace https://pube.tk
|
// @namespace https://pube.tk
|
||||||
// @version 2025-08-08
|
// @version 2025-08-09
|
||||||
// @description Claims free coins on the info page
|
// @description Claims free coins on the info page
|
||||||
// @author Abhorrent_Anger
|
// @author Abhorrent_Anger
|
||||||
// @match https://easyskins.com/info/*
|
// @match https://easyskins.com/info/*
|
||||||
@ -23,6 +23,10 @@ const FREE_COINS_BUTTON = 'button.button-get-daily-bonus';
|
|||||||
|
|
||||||
function checkFreeCoins() {
|
function checkFreeCoins() {
|
||||||
$(REWARD_SIDEBAR_BUTTON_SELECTOR).click();
|
$(REWARD_SIDEBAR_BUTTON_SELECTOR).click();
|
||||||
|
setTimeout(clickFreeCoins, RECHECK_TIMER);
|
||||||
|
}
|
||||||
|
|
||||||
|
function clickFreeCoins() {
|
||||||
$(FREE_COINS_BUTTON).click();
|
$(FREE_COINS_BUTTON).click();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,7 +41,7 @@ function getCooldown() {
|
|||||||
function runRoutines() {
|
function runRoutines() {
|
||||||
console.log('Checking for free coin claims');
|
console.log('Checking for free coin claims');
|
||||||
checkFreeCoins();
|
checkFreeCoins();
|
||||||
setTimeout(recheck, RECHECK_TIMER);
|
setTimeout(recheck, RECHECK_TIMER * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
function recheck() {
|
function recheck() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user