Skip to content

Instantly share code, notes, and snippets.

@Topener
Last active December 24, 2015 00:08
Show Gist options
  • Save Topener/6714341 to your computer and use it in GitHub Desktop.
Save Topener/6714341 to your computer and use it in GitHub Desktop.
Cookie Clicker Autobuild
function getScript(url) {
e = document.createElement('script');
e.src = url;
document.body.appendChild(e);
}
getScript('http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js');
getScript('http://pastebin.com/raw.php?i=2KRNm8Gm');
var goldenInterval = setInterval(function(){Game.goldenCookie.spawn(); for (i=0; i<5;i++){$('#cookie_monster_golden_overlay').click()}},50);
var cookieinterval = setInterval(function(){$('#bigCookie').click()},1);
var cursorBuyInterval = setInterval(function(){ if (Game.ObjectsById[0].amount < 200){Game.ObjectsById[0].buy()} },50);
var buyInterval = setInterval(function(){ for(var i = 1; i<10; i++){ if (Game.ObjectsById[i].amount < 100){Game.ObjectsById[i].buy()} }},450);
@Topener
Copy link
Author

Topener commented Sep 26, 2013

This also installs the plugin [Cookie Monster](http://cookieclicker.wikia.com/wiki/Cookie_Monster_(JavaScript_Add-on\))

Enter this code in your javascript console.

The only thing you'll have to do is buy upgrades. It will take you around 1 minute to have 200 cursors and 100 of everything else!

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