Skip to content

Instantly share code, notes, and snippets.

@DavidMetcalfe
Last active May 1, 2018 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidMetcalfe/a1dfc7f8809b310cb178708f8741b87d to your computer and use it in GitHub Desktop.
Save DavidMetcalfe/a1dfc7f8809b310cb178708f8741b87d to your computer and use it in GitHub Desktop.
Cookie Clicker Auto Clicker (Click Spammer)
// [ === Toggleable autoclicker === ]
// Activating will enable, and a second toggle will deactivate.
// ** Legit version (doesn't activate Game.autoclickerDetected)
if (window._activeClickInterval) {
clearInterval(window._activeClickInterval);
delete window._activeClickInterval;
} else {
window._activeClickInterval = setInterval(Game.ClickCookie, 250);
}
// ** Illegit version (DOES activate Game.autoclickerDetected)
if (window._activeClickInterval) {
clearInterval(window._activeClickInterval);
delete window._activeClickInterval;
} else {
window._activeClickInterval = setInterval(Game.ClickCookie, 10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment