Created
December 23, 2019 01:27
-
-
Save GabeDuarteM/009d0eeb4411e2e512d9c35af8078dca to your computer and use it in GitHub Desktop.
twitch.tv chest autoclick
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
| (() => { | |
| const chestButtonSelector = '.claimable-bonus__icon' | |
| if (window.clearTwitchChestInterval) { | |
| window.clearTwitchChestInterval() | |
| } | |
| const interval = setInterval(() => { | |
| const chestButton = document.querySelector(chestButtonSelector) | |
| if (chestButton) { | |
| chestButton.click() | |
| } | |
| }, 1000) | |
| const clearTwitchChestInterval = () => { | |
| clearInterval(interval) | |
| } | |
| window.clearTwitchChestInterval = clearTwitchChestInterval | |
| })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment