Variable fix for upgraded cases
This commit is contained in:
parent
9fd59ff6ac
commit
61bb2341a9
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Skinrave Rakeback Collector
|
// @name Skinrave Rakeback Collector
|
||||||
// @namespace https://pube.tk
|
// @namespace https://pube.tk
|
||||||
// @version 2025-06-15
|
// @version 2025-06-16
|
||||||
// @description Claims rewards
|
// @description Claims rewards
|
||||||
// @author Abhorrent_Anger
|
// @author Abhorrent_Anger
|
||||||
// @match https://skinrave.gg/en/rewards
|
// @match https://skinrave.gg/en/rewards
|
||||||
@ -58,7 +58,8 @@ function collectDailyCase() {
|
|||||||
console.log('No daily case to collect');
|
console.log('No daily case to collect');
|
||||||
return false;
|
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);
|
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'));
|
console.log('Attempted to open a new daily '.concat(dailyType, ' case window'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user