- Open your browser console (with F12)
- Copy/Paste the script in the console input
- Write
startSacrificingMinions()
, press enter and enjoy :P
Last active
October 20, 2016 19:31
-
-
Save wryk/53bd63fa82c47918d4dcf58a9d33054a to your computer and use it in GitHub Desktop.
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
var sacrificingMinionsIntervalId; | |
var sacrificingMinionsCauldron = document.getElementById('MainClick'); | |
function startSacrificingMinions(minionPerSecond) { | |
minionPerSecond = typeof minionPerSecond != 'number' || minionPerSecond < 0 | |
? 42 | |
: minionPerSecond; | |
sacrificingMinionsIntervalId = setInterval(function () { | |
sacrificingMinionsCauldron.click(); | |
}, 1000 / minionPerSecond); | |
} | |
function stopSacrificingMinions() { | |
clearInterval(sacrificingMinionsIntervalId); | |
sacrificingMinionsIntervalId = null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment