Skip to content

Instantly share code, notes, and snippets.

@gyoshev
Last active December 23, 2015 19:59
Show Gist options
  • Save gyoshev/6686236 to your computer and use it in GitHub Desktop.
Save gyoshev/6686236 to your computer and use it in GitHub Desktop.
Automation for CookieClicker (http://orteil.dashnet.org/cookieclicker/)
// click the cookie
setInterval(function() {
$("#bigCookie").trigger("click")
}, 100);
// purchase upgrades and buildings
setInterval(function () {
$("#store .upgrade.enabled").trigger("click");
$(".product.enabled").last().trigger("click");
}, 1000);
// spawn golden cookies and click them (cheat)
setInterval(function() {
Game.goldenCookie.spawn();
$(".goldenCookie").trigger("click");
}, 5000)
@EliTheCoder
Copy link

WOW

Styling with markdown is supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment