Skip to content

Instantly share code, notes, and snippets.

@Humberd
Last active July 30, 2022 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Humberd/bebd9fe0b324c5681a6686e10c1abecf to your computer and use it in GitHub Desktop.
Save Humberd/bebd9fe0b324c5681a6686e10c1abecf to your computer and use it in GitHub Desktop.
Automatically spins the power spin.
/**
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