Change the click target

This commit is contained in:
Abhorrent_Anger 2025-09-18 19:32:00 +03:00
parent 9c528459fb
commit f139496c3e

View File

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name Get Drop Free Case Claimer // @name Get Drop Free Case Claimer
// @namespace https://pube.tk // @namespace https://pube.tk
// @version 2025-09-19 // @version 2025-09-20
// @description Claims free cases // @description Claims free cases
// @author Abhorrent_Anger // @author Abhorrent_Anger
// @match https://getdrop.org/case/free* // @match https://getdrop.org/case/free*
@ -13,16 +13,16 @@
// ==/UserScript== // ==/UserScript==
const INITIAL_TIMER = 2000; const INITIAL_TIMER = 2000;
const RECHECK_TIMER = 30 * 60 * 1000; const RECHECK_TIMER = 60 * 1000;
const MAIN_WINDOW_SELECTOR = "main"; const MAIN_WINDOW_SELECTOR = "main";
const FREE_CASE_BUTTON = '.free-open.btn-opencase'; const FREE_CASE_BUTTON = '.free-open.btn-opencase span';
function clickFreeCase() { function clickFreeCase() {
$(FREE_CASE_BUTTON).click(); $(FREE_CASE_BUTTON).click();
} }
function runRoutines() { function runRoutines() {
console.log('Checking for free coin claims'); console.log('Checking for free coin claims...');
clickFreeCase(); clickFreeCase();
setTimeout(runRoutines, RECHECK_TIMER); setTimeout(runRoutines, RECHECK_TIMER);
} }