Last active
August 22, 2024 16:26
-
-
Save ssmereka/6517444 to your computer and use it in GitHub Desktop.
Automatic Cookie Clicker and other cheats for http://orteil.dashnet.org/cookieclicker/
This file contains 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
/** | |
* Auto Cookie Clicker | |
* Auto click cookies and golden cookies in the Cookie Clicker | |
* game found here: http://orteil.dashnet.org/cookieclicker/ | |
*/ | |
/** | |
* How to in Chrome: | |
* Open the browers and navigate to http://orteil.dashnet.org/cookieclicker/ | |
* then pressCTRL + SHIFT + J to open the developer console. Copy and paste the | |
* code between the "Auto Clicker" tags and press enter and the auto clicker will begin clicking. To stop | |
* the auto clicker, simply close your browers tab or refresh the page. | |
*/ | |
/* ******************** Auto Clicker ******************** */ | |
function clickId(id) { | |
var element = document.getElementById(id); | |
if(element !== undefined) { | |
doEvent(element, "click"); | |
} | |
window.setTimeout(clickId, 25, id); | |
} | |
function doEvent(element, type) { | |
trigger = document.createEvent('HTMLEvents'); | |
trigger.initEvent(type, true, true); | |
element.dispatchEvent(trigger); | |
} | |
window.setTimeout(clickId, 25, "bigCookie"); | |
window.setTimeout(clickId, 25, "goldenCookie"); | |
/* ****************** End Auto Clicker ****************** */ | |
/** | |
* More Cheats: | |
* There are of course many ways to cheat in a javascript based game. Simply open | |
* the developer console and enter any of the following lines of code. | |
*/ | |
/* Change your Mouse Cookies Per Second (MCPS) */ | |
Game.computedMouseCps=123456789; | |
/* Change your Cookies Per Second (CPS) */ | |
Game.cookiesPs=123456789 | |
/* Spawn a Golden Cookie */ | |
Game.goldenCookie.delay= 0; | |
Game.goldenCookie.life=0; | |
Game.goldenCookie.spawn(); | |
/* Add cookies to your current cookie supply */ | |
Game.cookies= Game.cookies + 1000000000; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Game.Earn(1.0e+100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000