Skip to content

Instantly share code, notes, and snippets.

@GabeDuarteM
Created December 23, 2019 01:27
Show Gist options
  • Select an option

  • Save GabeDuarteM/009d0eeb4411e2e512d9c35af8078dca to your computer and use it in GitHub Desktop.

Select an option

Save GabeDuarteM/009d0eeb4411e2e512d9c35af8078dca to your computer and use it in GitHub Desktop.
twitch.tv chest autoclick
(() => {
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