Skip to content

Instantly share code, notes, and snippets.

@meszaros-lajos-gyorgy
Last active September 24, 2024 16:56
Show Gist options
  • Save meszaros-lajos-gyorgy/7228ee4f3f96b9274195b1d557641207 to your computer and use it in GitHub Desktop.
Save meszaros-lajos-gyorgy/7228ee4f3f96b9274195b1d557641207 to your computer and use it in GitHub Desktop.
Bunny Clicker autoclicker
// https://orteil.dashnet.org/igm/index.html?g=/bunnyclicker
// make sure you are in the outermost frame
const playerFrame = document.querySelector('iframe#player').contentDocument
// -------------------------------------------------------
// auto-click the lucky bunny
const luckyWrapper = playerFrame.getElementById('shinies')
setInterval(() => {
luckyWrapper.firstElementChild?.click()
}, 1000)
// -------------------------------------------------------
// auto-click the large bunny in the center of the screen
const largeBunny = playerFrame.getElementById('thing-0')
setInterval(() => {
largeBunny.click()
}, 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment