Last active
December 23, 2015 14:29
-
-
Save dolpen/6649530 to your computer and use it in GitHub Desktop.
自動クッキー
This file contains hidden or 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
| 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); | |
This file contains hidden or 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 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