Cookie Clicker Javascript Cheat
Basic Cookie CheatEdit
Press Ctrl+Shift+I and simply type… (F12 for IE or Ctrl+Shift+K for Firefox )
Game.cookies=however many you want.
This gives you “Cheated cookies taste awful” if the number you put is bigger than the total number of cookies baked.
If you don’t want “Cheated cookies taste awful” whatever you type using
Cookie Clicker Javascript Cheat
Game.Earn(however many you want)
Easy methodist
Create a new bookmark and where it says URL copy and paste the ‘code’ below. Now when you’re on the Cookie Clicker page, click the bookmark and it’ll open a menu in the top right of your browser.
javascript: (function () {
var jsCode = document.createElement(‘script’);
jsCode.setAttribute(‘src’, ‘https://gist.github.com/pBun/6394697/raw’);
document.body.appendChild(jsCode);
Cookie Clicker Javascript Cheat
}());
Browser-specific console instruction[1]Edit
These are instructions to bring up the console in different browsers. The console is where you put your codes into effect.
Chrome
Cookie Clicker Javascript Cheat
Press CTRL + SHIFT + J to open the “Console” tab of the Developer Tools.
Cookie Clicker Javascript Cheat – Cookie Clicker Javascript Cheat
Alternative method:
Press either CTRL + SHIFT + I or F12 to open the Developer Tools.
Press ESC (or click on “Show console” in the bottom right corner) to slide the console up.
Note: In Chrome’s dev tools, there is a “Console” tab. However, a smaller “slide-up” console can be opened while any of the other tabs is active.
Safari
Press CTRL + ALT + I to open the Web Inspector.
Cookie Clicker Javascript Cheat
See Chrome’s step 2. (Chrome and Safari have pretty much identical dev tools.)
Note: Step 1 only works if the “Show Develop menu in menu bar” check box in the Advanced tab of the Preferences menu is checked!
IE9
Press F12 to open the developer tools.
Click the “Console” tab.
Firefox
Cookie Clicker Javascript Cheat
Press CTRL + SHIFT + K to open the Web console.
Or, if Firebug is installed (recommended):
Press F12 to open Firebug.
Click on the “Console” tab.
Opera
Press CTRL + SHIFT + I to open Dragonfly.
Cookie Clicker Javascript Cheat
Click on the “Console” tab.
End Cheats
To end any active cheats, simply refresh the page.
Unlock every achievement in the game (including the Cheated cookies taste awful achievement)
javascript:(function(){for(var i=0;i<Game.AchievementsN;i++){Game.Win(Game.AchievementsById[i].name);}})();
Cookie Clicker Javascript Cheat
Unlock every achievement in the game (excluding the Cheated cookies taste awful achievement)
javascript:(function(){for(var i=0;i<Game.AchievementsN;i++){if(i!=70){Game.Win(Game.AchievementsById[i].name);}}})();
Add a new bookmark in your web browser, give it any name, and put one of the two scripts into the address field, whilst leaving all other fields empty. Open the game in your web browser and click the bookmark.
Gain a number of Golden Cookies
Game.goldenClicks = 50;
Cookie Clicker Javascript Cheat
Note that clicks must then be manually incremented with the following code to earn achievements:
Game.goldenCookie.click();
Spawn Golden Cookie
Where “15” is seconds visible. Must enable the normal Golden Cookie clicker.
Game.goldenCookie.life = 15;
Another Golden Cookie spawn
Cookie Clicker Javascript Cheat
Game.golden cookie.spawn();
Set-Cookie output rate
Note: will self-correct when new buildings/upgrades are bought.
Game.cookiesPs = 999999999;
Enable every upgrade
Cookie Clicker Javascript Cheat
Game.UpgradesById.forEach(function(i) {if (i.bought === 0) { Game.cookies +=i.basePrice; i.buy(); }})
Next upgrade from Bingo Center available instantly (After Bingo Center/Research Facility purchased)
setInterval(function(){Game.researchT=0;}, 0);
Golden Cookies appear instantly
setInterval(function(){Game.goldenCookie.delay=0;}, 0);
Cookie Clicker Javascript Cheat
Elder pledge period setter (Time until next elder pledge, after purchasing Elder Pact upgrade)
Game.pledgeT=time;
Unlock any achievement
Example:
Cookie Clicker Javascript Cheat
Game.Win(‘Mathematician’);
Game.Win(‘Base 10’);
Game.Win(‘Uncanny clicker’);
Automatically click Golden Cookies
Will automatically click them when they appear. Does not affect the appearance rate (use the golden cookie auto-clicker for that).
setInterval(function() {if(Game.goldenCookie.life > 0)Game.goldenCookie.click();}, 100);
Cookie Clicker Javascript Cheat
Automatically click Red Cookies without Some Special Effect
It only works when you can get Red Cookies. Same as “Automatically click Golden Cookies”, but no Clot, Cookie Chain, Elder Frenzy and Clicking Frenzy anymore.
setInterval(function() {if(Game.goldenCookie.life > 0){Game.goldenCookie.wrath=0;Game.goldenCookie.click()}}, 100);
Automatically buy upgrades and shop items
Buys best object and upgrades first, loops.
Cookie Clicker Javascript Cheat
setInterval(function() {
for(i=Game.UpgradesInStore.length-1; i >= 0; i–){
Game.UpgradesInStore[i].buy();
}
for(i=Game.ObjectsById.length-1; i >= 0; i–){
Game.ObjectsById[i].buy();
}
}, 100);
Cookie Clicker Javascript Cheat
Auto-click cookie
Replace “time” with a number in milliseconds (1/1000 second).
60000 = 60 seconds (for those who aren’t into numbers)
setInterval(function() {Game.ClickCookie();}, time);
Infinity Golden Cookie Clicker
setInterval(function(){Game.goldenCookie.click();}, 10);
Cookie Clicker Javascript Cheat
Auto-click cookie Variant
The difference between this and the auto-clickers above, is that this JS script clicks the HTML object, instead of using the game’s click function
setTimeout(heartbeat,1);
function heartbeat(){
eventFire(document.querySelector(‘#bigCookie’),’click’);
setTimeout(heartbeat,1);
}
function eventFire(el, etype){
if (el.fireEvent) {
Cookie Clicker Javascript Cheat
(el.fireEvent(‘on’ + etype));
} else {
var evObj = document.createEvent(‘Events’);
evObj.initEvent(etype, true, false);
el.dispatchEvent(evObj);
}
}
Infinite Golden Cookie Clicker Variant
The difference between this and the auto-clickers above is that this JS script clicks the HTML object, instead of using the game’s click function.
Cookie Clicker Javascript Cheat
setTimeout(heartbeat,1);
function heartbeat(){
eventFire(document.querySelector(‘#goldenCookie’),’click’);
setTimeout(heartbeat,1);
}
function eventFire(el, etype){
if (el.fireEvent) {
(el.fireEvent(‘on’ + etype));
} else {
var evObj = document.createEvent(‘Events’);
Cookie Clicker Javascript Cheat
evObj.initEvent(etype, true, false);
el.dispatchEvent(evObj);
}
}
Show Golden Cookie delay in the Title bar
setInterval(function() {
document.title='(‘ + Math.floor(Game.goldenCookie.delay / Game.fps) + ‘ s) ‘+Beautify(Game.cookies)+’ ‘+(Game.cookies==1?’cookie’:’cookies’);
}, Math.floor(500/Game.fps));
Cookie Clicker Javascript Cheat
Infinity Golden Cookie Spawns
This will spawn and click one golden cookie per second.
setInterval(function() {if(Game.goldenCookie.life === 0) {Game.goldenCookie.spawn();Game.goldenCookie.wrath=0;Game.goldenCookie.click()}}, 1000);
Alternative CheatEdit
There exists a alternative method to hacking in cookies.
First of all you need to export your save.
Cookie Clicker Javascript Cheat
Now, let’s cheat. Go to Base64 decode and enter the save there. It will say something like:
=�
You can edit all the numbers EXCEPT “1.03” and the symbols. 1.03 is the current version of the game.
After you’ve modified the save go to Base64 encoder, encode it and import your save to the game.
Optimal Building Buyer ScriptEdit
Cookie Clicker Javascript Cheat
// Tommi Kurki et al’s Cookie Clicker Optimal Building Buyer Script!
// This script calculates which building has the best income for it’s current price
// and buys it automatically. All bought upgrades etc are accounted for. The script displays the
// prices and the buildings it buys in the news ticker ingame. Buying interval is 500ms on default.
var interval = 500;
var cookieBot = setInterval(function() {
Game.ObjectsById[optimalBuilding()].buy();
Cookie Clicker Javascript Cheat
}, interval);
function optimalBuilding() {
cpc = Number.MAX_VALUE;
var x = 0;
for(i = Game.ObjectsById.length-1; i >= 0; i–){
var me = Game.ObjectsById[i];
var cpc2 = me.price *(Game.cookiesPs + me.storedCps) / me.storedCps; //this addition will make items with worse
cost/CpS be bought first if buying them will earn you the cookies needed for better items faster; proven optimal cookie-buying strategy.
if (cpc2 < cpc) {
Cookie Clicker Javascript Cheat
cpc = cpc2;
x = i;
}
}
var txt = “Buying ” + Game.ObjectsById[x].name + ” at ” +
Math.round(Game.ObjectsById[x].price / Game.ObjectsById[x].storedCps) +
” cookies for each CPS!”;
Game.Ticker = txt;
return x;
}
Cookie Clicker Javascript Cheat – 2022
Cookie Clicker Javascript Cheat