Variable fix for upgraded cases

This commit is contained in:
Abhorrent_Anger 2025-06-16 12:45:45 +03:00
parent 9fd59ff6ac
commit 61bb2341a9

View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name Skinrave Rakeback Collector
// @namespace https://pube.tk
// @version 2025-06-15
// @version 2025-06-16
// @description Claims rewards
// @author Abhorrent_Anger
// @match https://skinrave.gg/en/rewards
@ -58,7 +58,8 @@ function collectDailyCase() {
console.log('No daily case to collect');
return false;
}
let dailyType = $(DAILY_UPGRADE_SELECTOR).length > 0 ? dailyUpgrade.text().toLowerCase() : 'case';
let dailyUpgrade = $(DAILY_UPGRADE_SELECTOR);
let dailyType = dailyUpgrade.length > 0 ? dailyUpgrade.first().text().toLowerCase() : 'case';
GM_openInTab('https://skinrave.gg/en/cs2/case-opening/daily-'.concat(dailyType), true);
console.log('Attempted to open a new daily '.concat(dailyType, ' case window'));
}