Change case selector

This commit is contained in:
Abhorrent_Anger 2025-06-03 09:46:20 +03:00
parent 805c589f31
commit 68f25e3999

View File

@ -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-02-19 // @version 2025-03-06
// @description Opens daily cases // @description Opens daily cases
// @author Abhorrent_Anger // @author Abhorrent_Anger
// @match https://skinrave.gg/en/cs2/case-opening/daily-case // @match https://skinrave.gg/en/cs2/case-opening/daily-case
@ -15,7 +15,7 @@
const RECHECK_TIMER = 60000; const RECHECK_TIMER = 60000;
const INITIAL_TIMER = 2000; const INITIAL_TIMER = 2000;
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 = '#case-daily-case div.relative.w-fit.flex.items-center.justify-center button:not(:disabled)'; const OPEN_BUTTON_SELECTOR = '#case-daily-case div[data-testid="case-opening-control-panel"] button:not(:disabled)';
function openDailyCase() { function openDailyCase() {
let openButton = $(OPEN_BUTTON_SELECTOR); let openButton = $(OPEN_BUTTON_SELECTOR);