Up the initial timer for slower connections
This commit is contained in:
parent
91b22c31ec
commit
10cba22ba4
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Skinrave Daily Case Opener
|
// @name Skinrave Daily Case Opener
|
||||||
// @namespace https://pube.tk
|
// @namespace https://pube.tk
|
||||||
// @version 2025-06-15
|
// @version 2025-06-16
|
||||||
// @description Opens daily cases
|
// @description Opens daily cases
|
||||||
// @author Abhorrent_Anger
|
// @author Abhorrent_Anger
|
||||||
// @match https://skinrave.gg/en/cs2/case-opening/daily-*
|
// @match https://skinrave.gg/en/cs2/case-opening/daily-*
|
||||||
@ -14,7 +14,8 @@
|
|||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
const RECHECK_TIMER = 60000;
|
const RECHECK_TIMER = 60000;
|
||||||
const INITIAL_TIMER = 2000;
|
const INITIAL_TIMER = 60000;
|
||||||
|
const CLOSE_TIMER = 15000;
|
||||||
const MAIN_WINDOW_SELECTOR = "div.flex.overflow-y-auto.overflow-x-hidden";
|
const MAIN_WINDOW_SELECTOR = "div.flex.overflow-y-auto.overflow-x-hidden";
|
||||||
const OPEN_BUTTON_SELECTOR = 'div[data-testid="case-opening-control-panel"] button:not(:disabled)';
|
const OPEN_BUTTON_SELECTOR = 'div[data-testid="case-opening-control-panel"] button:not(:disabled)';
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ function openDailyCase() {
|
|||||||
console.log('Attempted to open a daily case');
|
console.log('Attempted to open a daily case');
|
||||||
}
|
}
|
||||||
console.log('Attempting to close out the tab...');
|
console.log('Attempting to close out the tab...');
|
||||||
setTimeout(window.close, INITIAL_TIMER);
|
setTimeout(window.close, CLOSE_TIMER);
|
||||||
}
|
}
|
||||||
|
|
||||||
function runRoutines() {
|
function runRoutines() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user