Created
April 26, 2024 22:57
-
-
Save rwhitworth/0b22a834f5150c1078acbf34fb12d71a to your computer and use it in GitHub Desktop.
Auto-click Twitch.tv 'bonus' icon when it appears
This file contains hidden or 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
(function(){ | |
var e = document.querySelector('[aria-label="Claim Bonus"]'); | |
if (e === null) { | |
} | |
else { | |
e.click(); | |
var d = new Date(); | |
var n = d.toLocaleTimeString(); | |
console.log('clicked at', n); | |
} | |
setTimeout(arguments.callee, 60000); | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment