Skip to content

Instantly share code, notes, and snippets.

@dolpen
Last active December 23, 2015 14:29
Show Gist options
  • Select an option

  • Save dolpen/6649530 to your computer and use it in GitHub Desktop.

Select an option

Save dolpen/6649530 to your computer and use it in GitHub Desktop.
自動クッキー
window.bigCookie = $('#bigCookie');
window.goldenCookie = $('#goldenCookie');
Game.goldenCookie.choose = function(){return 'blood frenzy';}
window.goldenCookieClicker = setInterval(function(){window.goldenCookie.click()},5000);
window.frameFunction = setInterval(function(){
Game.baseResearchTime = 0;
Game.goldenCookie.delay=0;
window.bigCookie.click();
},1);
Game.Object.prototype.pf = function(){return this.cps()/this.price;};
window.autoBuyBuildings = setInterval(function(){
var j=Game.ObjectsById.length-1,pf = Game.ObjectsById[j].pf();
for(var i=Game.ObjectsById.length-2;i>=0;i--){var p = Game.ObjectsById[i].pf();if(pf<p){j=i;pf=p;}}
if(Game.cookies>Game.ObjectsById[j].price)Game.ObjectsById[j].buy();
},100);
var n = $('a.north'),s = $('a.south'),e = $('a.east'),w = $('a.west');document.onkeydown=function(ev){switch(ev.keyCode){case 87:n.click();break;case 83:s.click();break;case 65:w.click();break;case 68:e.click();break;}}
$('#particles').style.display='none';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment