Last active
September 24, 2024 16:56
-
-
Save meszaros-lajos-gyorgy/7228ee4f3f96b9274195b1d557641207 to your computer and use it in GitHub Desktop.
Bunny Clicker autoclicker
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
// 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