Last active
July 30, 2022 08:57
-
-
Save Humberd/bebd9fe0b324c5681a6686e10c1abecf to your computer and use it in GitHub Desktop.
Automatically spins the power spin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
1. Open power spin | |
2. Open the developer console | |
* Chrome: Ctrl + Shift + J | |
* Firefox: Ctrl + Shift + K | |
3. Paste the script below. | |
* (optionally) replace the MAX_COST value to which it should spin | |
4. ?? | |
5. Profit | |
*/ | |
// replace the 7200 with your desired max cost per spin | |
const MAX_COST = 7200; | |
const button = document.querySelector('.wof_btn'); | |
const ref = setInterval(() => { | |
const currentValue = button.querySelector('em').textContent; | |
const rewardName = document.querySelector('.wof_prize_title.show').textContent?.replace('You won: ','') | |
console.log(`${currentValue}: ${rewardName}`); | |
if (Number(currentValue) > MAX_COST) { | |
clearInterval(ref); | |
return; | |
} | |
button.click(); | |
}, 7000) | |
button.click() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment