Last active
October 17, 2023 12:21
-
-
Save atomofiron/e853aa5cde347eea5e0884462af58512 to your computer and use it in GitHub Desktop.
Twitch auto earn
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
function checkPointsButton() { | |
let points = document.getElementsByClassName('community-points-summary') | |
let btn = points[0].getElementsByTagName('button')[1] | |
if (btn !== undefined) { | |
btn.click() | |
console.log("points were earned") | |
} else | |
console.log("no points") | |
} | |
let interval = setInterval(checkPointsButton, 5000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment