Manual amount setting - SkinRave removed the minimum button
This commit is contained in:
parent
ef5176aaf7
commit
1a50a89dc1
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name Skinrave Reward Ticket Handler
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 2025-03-07
|
||||
// @version 2025-03-11
|
||||
// @description Claims tickets and tries to join minutely roulettes with the minimum bet
|
||||
// @author Abhorrent_Anger
|
||||
// @match https://skinrave.gg/en/reward-tickets
|
||||
@ -17,7 +17,8 @@ const INITIAL_TIMER = 2000;
|
||||
const CLAIM_BUTTON_SELECTOR = "div.flex.justify-end.items-center.gap-2.h-full button:not(:disabled)";
|
||||
const TICKET_BALANCE_SELECTOR = "div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > span:nth-child(2) > span:nth-child(1)";
|
||||
const MAIN_WINDOW_SELECTOR = "div.flex.overflow-y-auto.overflow-x-hidden";
|
||||
const MIN_SELECTOR = "body > div.flex.overflow-y-auto.overflow-x-hidden > div.w-full.flex > div.w-full.max-w-full > main > main > div button:nth-child(8)";
|
||||
const AMOUNT_SELECTOR = "#searchParam";
|
||||
const MIN_AMOUNT = "0.01";
|
||||
const JOIN_GAME_SELECTOR = "body > div.flex.overflow-y-auto.overflow-x-hidden > div.w-full.flex > div.w-full.max-w-full > main > main > div button.max-w-full:not(:disabled)";
|
||||
const MINUTE_SELECTOR = "body > div:contains('minute')";
|
||||
|
||||
@ -35,7 +36,7 @@ function clickJoinButton() {
|
||||
return false;
|
||||
}
|
||||
console.log('Attempting to join the game...');
|
||||
$(MIN_SELECTOR).click();
|
||||
$(AMOUNT_SELECTOR).value(MIN_AMOUNT);
|
||||
$(JOIN_GAME_SELECTOR).click();
|
||||
lastBalance = balance;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user