Wikia

Cookie Clicker Wiki

Cheating

Comments1k
153pages on
this wiki
For cheats on Cookie Clicker Classic, please refer to Cheating (Cookie Clicker Classic).
To make a suggestion please visit Suggestions page.

If you would like to experiment around with the game mechanics or just give yourself a boost, here are some cheats you can try. They require a bit of interaction with technical stuff. It is recommended that you export your save before cheating in case of undesirable results.

For the sake of organization, all scripts will follow this format:

  • For scripts with "[Expand]", click it to see the full script.
  • <input> - replace the entire underlined part (including < and >) with the desired input.

Additional helpful information:

  • 1 millisecond is 1/1000th of a second, or 0.001 second.
  • FPS stands for frames per second, which is the number of calculations done in a second. The default is 30 fps, but you can change it by using this.
  • If a script that requires an input from the user is not working, make sure that you replace the arrows with quotes. For example, type your input as "input" and not as <input>.

Opening the Browser Console

These are the instructions to bring up the console in different browsers. The console is where you enter the code into for the cheats to take effect.

Chrome

Windows: Either press CTRL + SHIFT + J or press F12 to open the Developer Tools and click on the "Console" tab if not already done.
Mac: Press  + ALT + J to open the Developer Tools. Click on the "Console" tab if not already done.
You can also right click and select "Inspect element" Then go to the Console bar.

Firefox

Windows: Press CTRL + SHIFT + K to open the console. Click on the "scratchpad" icon on the right. After entering the desired code, press CTRL + R to execute it.
Windows Alternate: Press CTRL + SHIFT + K to open the console. Make sure Console is selected at the top left, and that JS is selected below it. At the bottom of the console, you will see >>, indicating that this is where you enter your code. Enter what you need, and hit 'enter' to run it. The results should be displayed. Note that a return of 'undefined' does not mean that it failed to execute, just that there was nothing to display back to the user.
Mac: Press + OPTION + K to open the console.

Internet Explorer 9+

Windows: Press F12 to open the developer tools. Click the "Console" tab.

Opera

Windows: Press CTRL + SHIFT + I to open Dragonfly. Click on the "Console" tab.

Safari

Mac: Press  + OPTION + C to open the Error Console. (Make sure you check the "Show Develop menu in menu bar" box in the "Advanced" tab of the "Preferences" menu first.)

Universal

Type "javascript:<your code here>" on the address bar, then press Enter.

Using a Cheat Interface

Our list of cheat interfaces can be found at Category:Cheat interface.

There are three ways to enable an interface. Choose the one that works the best.

Bookmark

  • Create a new bookmark.
  • In the "URL" box, copy/paste the following code. (The link to the source code can be found on the wiki page of the corresponding interface.)

javascript:(function(){var script=document.createElement('script');script.setAttribute('src','<source link>');document.body.appendChild(script);}());

  • Name it whatever you like.
  • Now, whenever you are in the game, simply click on this bookmark to enable the cheat interface.

Developer Console

  • Open your browser console. For instructions, look above.
  • Copy all the source code from the link provided in the cheat interface's wiki page.
  • Paste all the code in your browser console.
  • Press Enter.
  • There should not be any error if successfully installed.

TamperMonkey/GreaseMonkey

  • Open your Monkey.
  • Add a new UserScript.
  • Copy/paste the following code into your Monkey editor. (The link to the source code can be found on the wiki page of the corresponding interface.)

// ==UserScript== // @name CheatInterface // @namespace Cookie // @include orteil.dashnet.org/cookieclicker/ // @version 1 // @grant none // ==/UserScript== var oldOnload = window.onload; window.onload = function () { oldOnload(); var script = document.createElement('script'); script.setAttribute('src', '<source link>'); document.body.appendChild(script); }

  • Save.
  • Go to your newly created UserScript.
  • Open the parameters tab.
  • Add a new user include.
  • Copy/paste the game URL. (http://orteil.dashnet.org/cookieclicker/)
  • Reboot your browser.
  • Now, whenever you open Cookie Clicker, the cheat interface will automatically be enabled.

Save Editing

The most simple cheat you can do is import a save. You can make your own save codes using the Cookie Engine, or you can edit the save manually. If you wish to do that, here are the instructions:

  • Export and copy your save.
  • At the end of the code, delete the "%21END%21" and replace every "%3D" with a equal sign (=).
  • Go to base64 decode and paste the modified save there.
  • Decode it with UTF-8.
  • Edit the save. (For information about formatting, refer below.)
  • Go to base64 encoder and paste your new save.
  • Encode it with UTF-8.
  • At the end of the resulting code, replace every equal sign (=) with "%3D" and append "%21END%21".
  • Import your save to the game.

Save Format

The decoded save follows a certain format, take this save for example:

1.0393||1381898487292;1380107853914;1381899592923|011101|19810703888477384;232154241051907840;4218;2120;24564619087288988;9632;-1;-1;45326046739823870;0;11;107852;0;-1;2;207;1656259545394620;175|219,220,25128184169839,0;216,216,64729416294516,0;180,180,7033459448,0;168,169,22279979110,0;159,159,75346744514,0;150,150,182832240409,0;139,140,651206881531,0;143,143,11123847712297,0;121,122,120436061607417,0;112,112,1119454662710064,0;|4503599627370495;4503599627370495;4503599627370495;4503573749070335;2814337448673279;171798691455|4503599627370495;2313303743266815;2047

The vertical bars divide the save into sections. Following are the formats of each individual section.

  • Version number
  • Reserved for future use
  • Unix timestamps

1381898487292;1380107853914;1381899592923 // 1381898487292 - session started // 1380107853914 - legacy started // 1381899592923 - time this save was created // To convert it into a readable format, divide it by 1000 // Put the result in this converter and click "Submit" // 1381898487.292 = Wed, 16 Oct 2013 04:41:27 GMT // 1380107853.914 = Wed, 25 Sep 2013 11:17:33 GMT // 1381899592.923 = Wed, 16 Oct 2013 04:59:52 GMT

  • Preferences (0 means OFF, 1 means ON)

011101 // 0 - particles // 1 - numbers // 1 - automatically save // 1 - offline mode (0 means offline, 1 means online) // 0 - milk // 1 - fancy graphics

  • Cookie stats

19810703888477384;232154241051907840;4218;2120;24564619087288988;9632;-1;-1;45326046739823870;0;11;107852;0;-1;2;207;1656259545394620;175 // 19810703888477384 - Cookies in bank // 232154241051907840 - Cookies baked (this session) // 4218 - Big cookie clicks // 2120 - Golden cookie clicks (all time) // 24564619087288988 - Hand-made cookies // 9632 - Missed golden cookies (removed feature) // -1 - Background color (never implemented) // -1 - Milk type (never implemented) // 45326046739823870 - Cookies forfeited by resetting // 0 - Grandmatriarchs status (0=Appeased, 1=Awoken, 2=Displeased, 3=Angered) // 11 - Elder Pledges bought // 107852 - Elder Pledge time left (minutes * 1800) // 0 - Next upgrade to research // -1 - Research time left (minutes * 1800) // 2 - Number of resets // 207 - Golden cookie clicks (this session) // 1656259545394620 - Cookies withered (sucked by wrinkler) // 175 - Wrinklers popped

  • Buildings

219,220,25128184169839,0;216,216,64729416294516,0;180,180,7033459448,0;168,169,22279979110,0;159,159,75346744514,0;150,150,182832240409,0;139,140,651206881531,0;143,143,11123847712297,0;121,122,120436061607417,0;112,112,1119454662710064,0; // Each building has its own section, separated by semicolons // The pattern repeats, so I will only use Cursor as an example // In this case, the section for Cursor is 219,220,25128184169839,0 // 219 - amount owned // 220 - amount bought (include ones that were sold) // 25128184169839 - total cookies produced // 0 - specialUnlocked (not yet implemented, dungeon related)

  • Upgrades

4503599627370495;4503599627370495;4503599627370495;4503573749070335;2814337448673279;171798691455 // Convert each number separated by semicolons with this converter // Take off the first and last 1 of each result and reverse the order // Separate every 2 digits with a space // 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 // 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 // 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 // 11 11 11 11 00 11 11 00 00 10 00 11 00 11 11 11 00 11 11 11 11 11 11 11 11 // 11 11 11 11 11 11 11 11 11 00 11 11 11 11 11 11 11 11 00 11 11 11 11 11 00 // 11 11 11 00 11 11 11 11 11 11 11 11 11 11 11 11 11 00 // Each 2 digits represents an upgrade (order shown at bottom of this page) // The first digit is whether the upgrade is unlocked (requirements met) // The second digit is whether the upgrade is bought

  • Achievements

4503599627370495;2313303743266815;2047 // Do the same procedure as the Upgrades above, except for separation // 11111111111111111111111111111111111111111111111111 // 11111111111111111111011111111111111011111101100000 // 111111111 // Each digit represents an achievement (order shown at bottom of this page)

Upon finishing the save editing, the following tools may be helpful in returning the save to its original format:

"Cheated cookies taste awful" Achievement

You can earn the "Cheated cookies taste awful" achievement through one of three of ways:

  • Setting Cookies in bank to be greater than Cookies baked all time. (The amount may need to be adjusted depending on the CpS.)
Game.cookies = Game.cookiesEarned + <amount>;
Game.goldenCookie.time = 0;
Game.goldenCookie.spawn();
  • Giving yourself the achievement:
Game.Win('Cheated cookies taste awful'); 
  • Removing the achievement:
Game.AchievementsById[70].won = 0;

Or (More complex, but makes sure to work if the ID changes):

for(i = Game.AchievementsById.length-1; i >= 0; i--) { me = Game.AchievementsById[i]; if(me.name == "Cheated cookies taste awful" && me.won == 1) { me.won = 0; } }

After you enter the web console through right clicking underneath the big cookie, going to inspect element at the bottom, then clicking on console to the right on the little bar (does not work on Safari).

Debug Cheats

These are cheats built into the game itself to aid in debugging and testing the game.

Debug Upgrades

Debug upgrades come in the form of upgrades that can only be enabled by using cheats. To enable them, refer to upgrades section below. There are currently 7 debug upgrades available:

  • Ultrascience= All new researches take only 5 seconds to complete.
  • Gold hoard= All Golden Cookies appear every 0.6 seconds after the current or next golden cookie.
  • Neuromancy= Unlocks every available upgrade (including the debug upgrades) and allows you to toggle them on or off by clicking on their icons in the Stats menu. If Neuromancy itself is clicked, it goes back to the store.
  • Perfect idling= Keeps producing cookies that you would have gained through CpS after you closed the game and tells you the amount of cookies it produced while it was closed. Remains active even after closing the browser.
  • Wrinkler doormat= Wrinklers spawn 1000 times more frequently.
  • Reindeer season= Reindeers spawn faster (about two minutes per reindeer).
  • Eternal seasons= Unlocks Season Switcher without 5000 HC required.
  • Golden switch= Unlocks the Golden switch in the Menu. When active, it grants you a passive CpS boost but prevents golden cookies from spawning. This doesn't work very well yet as of v.1.0465.

Ruin The Fun

RuinTheFun

The message shown after entering Game.RuinTheFun();

Ruin The Fun is a function that instantly gives you all the upgrades (including the debug upgrades), all the achievements, and 999,999,999,999,999,999 cookies. To execute this function, simply use:

Game.RuinTheFun();

Defining shortcuts

If you find yourself constantly typing or copypasting cheats or commands, you may want to consider defining a function. So instead of typing 3 lines of code, you could also type a single word to use the exact same cheat. A function is defined as follows:

function <name>()
{
    (code here)
}

Now you only need to type the function name, followed by parentheses '()' to access a command or multiple commands more quickly.

You can also pass an argument to a function like so:

function <name>(<variable>)
{
    alert(<variable>)
}

This example code will trigger a click frenzy for 60 seconds when typing gimmeClickFrenzy(60):

function gimmeClickFrenzy(time)
{ 
    Game.clickFrenzy = Game.fps * time;
    Game.recalculateGains = 1;
    Game.Popup('Click frenzy! Clicking power x777 for ' + time + ' seconds!');
}

You can also pass multiple arguments to a function:

function alertMe(text, text2)
{
    alert(text);
    alert(text2);
}

Cookies Related

Gaining Cookies

To change the amount of cookies in bank, use:

Game.cookies = <amount>;

To add more cookies to the existing amount in bank, use:

Game.Earn(<amount adding>);

Removing Cookies

To remove a specific amount of cookies, use:

Game.cookies -= <amount removing>;

Infinity Cookies

To obtain an infinite amount of cookies, use:

Game.cookies = Infinity;

Beware: The number of cookies displayed above the big cookie will not change from infinity if you reset the game and/or change the number of cookies in your bank. To fix this, reset the displayed number using:

Game.cookiesd = 0;

Changing CpS

To change the CpS (will self-correct when new buildings/upgrades are bought), use:

Game.cookiesPs = <CpS>;

To make the effect stay until the page is refreshed, use:

Game.CalculateGains = function() { Game.cookiesPs = <CpS>; Game.computedMouseCps = Game.mouseCps(); Game.recalculateGains = 0; }; Game.recalculateGains = 1;

Auto-Click Big Cookie

To auto-click the big cookie at a set interval, use:

var autoClicker = setInterval(Game.ClickCookie, <milliseconds interval>);

To end this effect, use:

clearInterval(autoClicker);

Faster Auto-Click

The auto-click cheat above can only click as fast as the CPU can handle. To produce an even faster effect, use:

var autoClicker = function(clicksAtOnce, repeatInterval) { var cheated = false; var intoTheAbyss = function() { if(!cheated) { cheated = true; for(var i = 0; i < clicksAtOnce; i++) { Game.ClickCookie(); Game.lastClick = 0; } cheated = false; }; }; return setInterval(intoTheAbyss, repeatInterval); }; autoClicker(<amount of clicks>, <milliseconds interval>);

Auto-Click Only During Click Frenzy

To enable auto-click only during the Click Frenzy, use:

setInterval(function() { if (Game.clickFrenzy > 0) Game.ClickCookie(); }, <milliseconds interval>);


Buildings Related

Prices Stay at Base Price

If you want all the prices to stay at base price despite amount owned, use:

Game.priceIncrease = 1; Game.ObjectsById.forEach(function (e) { e.refresh(); }); Game.storeToRebuild = 1;

All Buildings Are Free

If you want to make all buildings completely free, use:

Game.ObjectsById.forEach(function (e) { e.basePrice = 0; e.refresh(); }); Game.storeToRebuild = 1;


Golden/Wrath cookies Related

Note that the Wrath Cookie counts as a golden cookie as far as the game coding goes, therefore the following scripts also apply on Wrath Cookies. If you want all the Wrath Cookies to behave like golden cookies (prevent Ruin and Clot), simply remove the "/*" and the "*/" in each script.

Spawn a Golden Cookie

To spawn a golden cookie, use:

/*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.spawn();

If you want to avoid getting the "Cheated cookies taste awful" achievement, use:

/*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.time = Game.goldenCookie.minTime; Game.goldenCookie.life = 0; Game.goldenCookie.spawn();

Or more simply:

Game.goldenCookie.time = Game.goldenCookie.maxTime;


If you want to spawn a golden cookie that starts a cookie chain, add the following script in addition to the ones provided above:

Game.goldenCookie.chain = <stage>;

If you want to start the cookie chain at 6 cookies, use "1" as the stage. 66 cookies = "2", 666 cookies = "3", and so on.

Golden Cookies with No Delay

If you want the golden cookies to spawn one after another without delay, use:

setInterval(function() { /*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.delay = 0; }, 1);

Set Golden Cookie Clicks

If you just want to set the amount of golden cookies clicked, use:

Game.goldenClicks = <amount>;

If you want to earn the related achievements, use one of the auto-click's below.

Auto-Click Golden Cookies

If you want the golden cookies to be auto-clicked as soon as they appear, use:

setInterval(function() { if (Game.goldenCookie.life > 0) { /*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.click(); } }, 500);

This simpler code will also click golden cookies when they appear:

setInterval(Game.goldenCookie.click, 500)

Alternatively, if you want to click only golden cookies as they appear, use:

setInterval(function() { if (Game.goldenCookie.life > 0 && Game.goldenCookie.wrath == 0) { Game.goldenCookie.click(); } }, 500);


Auto-Spawn and Click Golden Cookies

If you want to automatically spawn and click a set amount of golden cookies instantaneously, use:

for (var i = 0; i < <amount>; i++) { /*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.life = 1; Game.goldenCookie.click(); }

If you want to automatically spawn and click a golden cookie at set interval, use:

setInterval(function() { /*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.life = 1; Game.goldenCookie.click(); }, <milliseconds interval>);

Frenzy

To produce a customized Frenzy effect, use:

var time = <seconds>; Game.frenzy = Game.fps * time; Game.frenzyPower = <multiplier>; Game.recalculateGains = 1; Game.Popup('Frenzy! Cookie production x' + Game.frenzyPower + ' for ' + time + ' seconds!');

Clicking Frenzy

To produce a customized Clicking Frenzy effect, use:

var time = <seconds>; Game.clickFrenzy = Game.fps * time; Game.recalculateGains = 1; Game.Popup('Click frenzy! Clicking power x777 for ' + time + ' seconds!');


Grandmapocalypse Related

Change Elder Pledge Time Left

If you want to change the time remained on the Elder Pledge, use:

Game.pledgeT = <minutes> * 60 * Game.fps;

Auto-Buy Elder Pledge

If you want to automatically buy Elder Pledge as it becomes available, use:

setInterval(function() { if (Game.UpgradesInStore.indexOf(Game.Upgrades["Elder Pledge"]) != -1) { Game.Upgrades["Elder Pledge"].buy(); } }, 500);

Auto-Click Wrinklers

If you want the wrinklers to be auto-clicked as a set interval (note, it must run three times to kill them): 

var wrinklerClick= setInterval(function() { for (var i=0;i<10;i++) { if (Game.wrinklers[i].close==1) {Game.wrinklers[i].hp--} } }, <interval>);

or if you want an instant kill

var wrinklerClick = setInterval(function() { for (var i=0;i<10;i++) { if (Game.wrinklers[i].close==1) {Game.wrinklers[i].hp = 0} } }, 500);

or an even easier way to wipe them out

var noWrinkler = setInterval(Game.CollectWrinklers, 500);


Spawn All Wrinklers

If you want to instantly spawn all ten wrinklers so you can get the bonus after letting them feed a while:

for (i = 0; i < Game.wrinklers.length; i++) { Game.wrinklers[i].phase = 1; }


Spam-Kill Wrinklers

I don't know, maybe you need the achievement:

var noWrinkler = setInterval(function () { Game.CollectWrinklers(); for(i = 0; i < Game.wrinklers.length; i++) { Game.wrinklers[i].phase = 2; } }, 100);


Achievements Related

There are two ways to refer to an achievement: its ID and its name. You must type the name EXACTLY as it appears in game for these scripts to work, including capitalization. If you are concerned about typing the name wrong, copy it from the table at the bottom of this page, or just use the ID.

Unlocking an Achievement

If you want to unlock an achievement, use:

Game.Win(<name>);

or

Game.Win(Game.AchievementsById[<ID>].name);

Unlocking All Achievements

If you want to unlock every single achievement, use:

Game.AchievementsById.forEach(function(e) { // if (e.hide != 3) Game.Win(e.name); });

If you only want to unlock non-shadow achievements, remove the double slash (//);

Removing an Achievement

If you want to remove an achievement, use:

Game.Achievements[<name>].won = 0;

or

Game.AchievementsById[<ID>].won = 0;

Removing All Achievements

If you want to remove all the achievements, use:

Game.AchievementsById.forEach(function(e) { // if (e.hide == 3) e.won = 0; });

If you only want to remove shadow achievements, remove the double slash (//);

Note: Removing an achievement won't reduce your milk percentage.

Upgrades Related

Similar to achievements, upgrades can also be referred by either ID or name. A list of them can also be found at the bottom of this page.

Unlocking/Buying an Upgrade

If you want to unlock a single upgrade, use:

Game.Unlock(Game.UpgradesById[<ID>].name);

or

Game.Unlock(<name>);

If you want to unlock AND buy an upgrade, use:

Game.UpgradesById[<ID>].earn()

or

Game.Upgrades[<name>].earn()

Unlocking/Buying All Upgrades

If you want to unlock all the upgrades, use:

Game.UpgradesById.forEach(function(e) { Game.Unlock(e.name); });

If you want to unlock AND obtain all upgrades, use:

Game.UpgradesById.forEach(function(e) { if (e.bought === 0) e.earn(); });

Free Upgrades

If you want to make all upgrades completely free, use:

Game.UpgradesById.forEach(function (e) { e.basePrice = 0; }); Game.upgradesToRebuild = 1;

Instant Research

If you want to make all researches instant, use:

setInterval(function() { Game.researchT = 0; }, 1);


Heavenly Chips Related

If you want to change the amount of heavenly chips temporarily, use:

Game.prestige = []; Game.prestige['Heavenly chips'] = <amount>;

This will make it so that when you refresh the page, the amount of heavenly chips returns back to normal. If you want it to be permanent, use:

var nhc = <amount>; Game.cookiesReset = nhc * (nhc + 1) * 1e12 / 2; Game.CalculatePrestige();

If you want to obtain the maximum amount of heavenly chips possible permanently, use:

Game.cookiesReset = Number.MAX_VALUE; Game.CalculatePrestige();

If you want to gain infinity heavenly chips, use:

Game.prestige = []; Game.prestige['Heavenly chips'] = Infinity; Game.prestige.ready = 1; Game.recalculateGains = 1;


Dungeons Related

Change Dungeon Level

If you want to change the dungeon level, use:

Game.Objects.Factory.dungeon.level = <level>;

The level affects amount of cookies rewarded and spawning of monsters. The new level goes into effect after the boss is defeated.

Change Dungeon Speed

If you want to change the speed at which the hero goes through the dungeon, use:

setInterval(function() { Game.Objects['Factory'].dungeon.timer = 0; }, <milliseconds interval>);


Utilities

Cosmetic Tweaks

Turn Big Cookie into Face Cookie

To add a grandma face on the big cookie (may be disturbing for some), use:

Game.addClass("elderWrath");

To remove this effect, refresh the page or use:

Game.removeClass("elderWrath");

Changing FPS

To change the FPS of the game, use:

Game.fps = <FPS>;

Note: This represents how many frames of animation you see per second and does not make the animations run more smoother. For example, setting this to 60 which is twice the default will make the animations run twice as fast, the opposite is also true. Also, changing this can cause current buffs duration and current golden cookie spawn time to be altered.

Calculating Cookies at a Future Time

This is not really a cheat, but can be somewhat useful at times. To find out how many cookies you'll have in bank at a given time, use:

alert(Beautify(Game.cookies + (new Date("<YYYY-MM-DD HH:MM:SS>") - new Date().getTime()) / 1000 * Game.cookiesPs, 1));

To find out how many cookies you'll have baked all-time at a given time, use:

alert(Beautify(​Game.cookiesEarne + (new Date("<YYYY-MM-DD HH:MM:SS>") - new Date().getTime()) / 1000 * Game.cookiesPs, 1));

To find out how many heavenly chips you can get by resetting at a given time, use:

alert(Beautify(Math.floor((Math.pow(1 + 8 * (Game.cookiesEarned + Game.cookiesReset + (new Date("<YYYY-MM-DD HH:MM:SS>") - new Date().getTime()) / 1000 * Game.cookiesPs) / 10e12, 0.5) - 1) / 2)));

Note that this assumes that you do not click the big cookie, buy new upgrades/buildings, or click golden cookies in this time period.

Golden Cookies Notifications

Golden Cookie Title Bar Alert

To make it so that the title of the webpage changes to an exclamation point whenever a golden/red cookie appears, use:

setInterval(function() { if (Game.goldenCookie.life > 0) document.title = '!' }, 100);

Golden Cookie Desktop Notification

To make it so that a desktop notification pops up whenever a golden/red cookie appears, use:

if (window.webkitNotifications.checkPermission()) { function askPermission() { window.webkitNotifications.requestPermission(); var element = document.getElementById('notifier_permission'); element.parentNode.removeChild(element); } var ask = document.createElement('BUTTON'); var askText = document.createTextNode('Ask for notification permission'); ask.id = 'notifier_permission'; ask.style.position = 'absolute'; ask.style.zIndex = 99999999; ask.appendChild(askText); document.body.appendChild(ask); ask.onclick = askPermission; } Game.goldenCookie.spawn = (function() { var spawn = Game.goldenCookie.spawn; return function() { popup = webkitNotifications.createNotification('img/goldCookie.png', 'Cookie Clicker', 'A wild golden cookie appeared!'); popup.show(); setTimeout(function(){ popup.cancel(); }, '10000'); spawn(); }; })(); // source: Cookie Clicker Subreddit

Play Beep Sound when Golden Cookie Spawns (Disabled Cheat)

To make it so that a beeping sound is played whenever a golden/red cookie spawns, use:

var alerted = false; setInterval(function () { if (Game.goldenCookie.time == 0) { if (alerted) return; alerted = true; var audio = new Audio("http://www.soundjay.com/button/beep-1.wav"); audio.volume = 0.7; audio.play(); } else { alerted = false; } }, 100);


Auto-Buying Scripts

For instructions on using these scripts, refer to above.

Build Script X

Build Script X is a placeholder name to differentiate it from the other scripts. The creator(s) should change it accordingly, but who wants to sit in that debate? Build Script X is a great placeholder name anyway. Fancy.
The script automatically buys the most effective item only in terms of cookies per second and price. It also tells you how long it'll take until it buys, based on your CPS. (Doesn't buy upgrades nor take manual clicks, especially golden cookie clicks, into consideration)
The original description above have been disputed as follows:

  • Certain upgrades are not taken into consideration in the calculations, although this may now be fixed.
  • The script also allows for toggling the automatic buy function by pressing the A key.
  • The script uses a proven formula (which includes your CPS rate) to calculate the order of buildings to be bought.

Link to source code: http://pastebin.com/raw.php?i=V3ZkT6j2

Build Script Y

This script is an improvement of Build Script X, it buys the most effective buildings or upgrades automatically and tells you details about it in the news bar. This script calculates the effectiveness of each building and each upgrades using the same formula as Build Script X. This script voluntarily ignores the Bingo Center because otherwise it would spam the screen with "research has begun" and bring you to the grandmapocalypse.
Executing this code may cause lag on some machines, when the cookie count is high.
Link to source code: http://pastebin.com/raw.php?i=Nd3Ms8Zy

Build Script Y***

This script is an "improvement" of Build Script Y, after a quick passage to Y* and Y**. It performs exactly the same operation as the Build Script Y, except that it lags even less.
Build Script Y* removed the recurrent call to the calculation of the best item to buy from the Y script in order to remove the lag caused by the constant calculation.
Link to source code: http://pastebin.com/raw.php?i=N8g0TZ6P
Note: If the script is activated at the start of a brand new game, you will immediately get the first 7 of the CpS achievements. Removing the achievements using the method shown here technically does work but you will get them again almost instantly. Also, if it's activated after buying the Bingo Center or when One mind is available to be bought, it will spam "research has begun" and start the grandmapocalypse. This applies to both Y and Y***.

Build Script Z Beta 0.94

This script present the same build mechanism as Build Script Y, but it adds the possibility to keep 20 or 140 minutes (depending if you have the last golden cookie upgrade or not) worth of production, enabling the 'Lucky' effect to give you tons of cookies. Option is activated by default and can be removed by pressing 'G'.
Note that after buying an item, it won't have a full 140 minutes stock because of the production of the new building. But it is the optimized way.
There are currently 1 known problems : - On small screen the text indicating the new feature status is hidden
Link to source code: http://pastebin.com/raw.php?i=vjLKNs0c

Reindeer Related

To auto click reindeers, use this

setInterval(function() { if (Game.seasonPopup.life > 0) { Game.seasonPopup.click(); } }, 500);

to spawn a reindeer, use the below cheat. (earns cheated cookies taste awful achievement)

Game.seasonPopup.spawn();

or you can use this one. (doesn't earn cheated cookies taste awful achievement)

Game.seasonPopup.time = Game.seasonPopup.maxTime;

References

The IDs for every achievement and upgrade are in the tables below.

Upgrade Table
ID Name
0 Reinforced index finger
1 Carpal tunnel prevention cream
2 Ambidextrous
3 Thousand fingers
4 Million fingers
5 Billion fingers
6 Trillion fingers
7 Forwards from grandma
8 Steel-plated rolling pins
9 Lubricated dentures
10 Cheap hoes
11 Fertilizer
12 Cookie trees
13 Sturdier conveyor belts
14 Child labor
15 Sweatshop
16 Sugar gas
17 Megadrill
18 Ultradrill
19 Vanilla nebulae
20 Wormholes
21 Frequent flyer
22 Antimony
23 Essence of dough
24 True chocolate
25 Ancient tablet
26 Insane oatling workers
27 Soul bond
28 Flux capacitors
29 Time paradox resolver
30 Quantum conundrum
31 Kitten helpers
32 Kitten workers
33 Oatmeal raisin cookies
34 Peanut butter cookies
35 Plain cookies
36 Coconut cookies
37 White chocolate cookies
38 Macadamia nut cookies
39 Double-chip cookies
40 Sugar cookies
41 White chocolate macadamia nut cookies
42 All-chocolate cookies
43 Quadrillion fingers
44 Prune juice
45 Genetically-modified cookies
46 Radium reactors
47 Ultimadrill
48 Warp drive
49 Ambrosia
50 Sanity dance
51 Causality enforcer
52 Lucky day
53 Serendipity
54 Kitten engineers
55 Dark chocolate-coated cookies
56 White chocolate-coated cookies
57 Farmer grandmas
58 Worker grandmas
59 Miner grandmas
60 Cosmic grandmas
61 Transmuted grandmas
62 Altered grandmas
63 Grandmas' grandmas
64 Bingo center/Research facility
65 Specialized chocolate chips
66 Designer cocoa beans
67 Ritual rolling pins
68 Underworld ovens
69 One mind
70 Exotic nuts
71 Communal brainsweep
72 Arcane sugar
73 Elder Pact
74 Elder Pledge
75 Plastic mouse
76 Iron mouse
77 Titanium mouse
78 Adamantium mouse
79 Ultrascience
80 Eclipse cookies
81 Zebra cookies
82 Quintillion fingers
83 Gold hoard
84 Elder Covenant
85 Revoke Elder Covenant
86 Get lucky
87 Sacrificial rolling pins
88 Snickerdoodles
89 Stroopwafels
90 Macaroons
91 Neuromancy
92 Empire biscuits
93 British tea biscuits
94 Chocolate british tea biscuits
95 Round british tea biscuits
96 Round chocolate british tea biscuits
97 Round british tea biscuits with heart motif
98 Round chocolate british tea biscuits with heart motif
99 Sugar bosons
100 String theory
101 Large macaron collider
102 Big bang bake
103 Antigrandmas
104 Madeleines
105 Palmiers
106 Palets
107 Sablés
108 Kitten overseers
109 Sextillion fingers
110 Double-thick glasses
111 Gingerbread scarecrows
112 Recombobulators
113 H-bomb mining
114 Chocolate monoliths
115 Aqua crustulae
116 Brane transplant
117 Yestermorrow comparators
118 Reverse cyclotrons
119 Unobtainium mouse
120 Caramoas
121 Sagalongs
122 Shortfoils
123 Win mints
124 Perfect idling
125 Fig gluttons
126 Loreols
127 Jaffa cakes
128 Grease's cups
129 Heavenly chip secret
130 Heavenly cookie stand
131 Heavenly bakery
132 Heavenly confectionery
133 Heavenly key
134 Skull cookies
135 Ghost cookies
136 Bat cookies
137 Slime cookies
138 Pumpkin cookies
139 Eyeball cookies
140 Spider cookies
141 Persistent memory
142 Wrinkle doormat
143 Christmas tree biscuits
144 Snowflake biscuits
145 Snowman biscuits
146 Holly biscuits
147 Candy cane biscuits
148 Bell biscuits
149 Present biscuits
150 Gingerbread men
151 Gingerbread trees
152 A festive hat
153 Increased merriness
154 Improved jolliness
155 A lump of coal
156 An itchy sweater
157 Reindeer baking grounds
158 Weighted sleighs
159 Ho ho ho-flavored frosting
160 Season savings
161 Toy Workshop
162 Naughty list
163 Santa's bottomless bag
164 Santa's helpers
165 Santa's legacy
166 Santa's milk and cookies
167 Reindeer season
168 Santa's dominion
169 Pure heart biscuits
170 Ardent heart biscuits
171 Sour heart biscuits
172 Weeping heart biscuits
173 Golden heart biscuits
174 Eternal heart biscuits
175 Gem pilish
176 9th color
177 Chocolate light
178 Grainbow
179 Pure cosmetic light
180 Rainbow grandmas
181 Season switcher
182 Festive biscuit
183 Ghostly biscuit
184 Lovesick biscuit
185 Fool's biscuit
Achievement Table
ID Name
0 Wake and bake
1 Making some dough
2 So baked right now
3 Fledgling bakery
4 Affluent bakery
5 World-famous bakery
6 Cosmic bakery
7 Galactic bakery
8 Universal bakery
9 Timeless bakery
10 Infinite bakery
11 Immortal bakery
12 You can stop now
13 Cookies all the way down
14 Overdose
15 How?
16 Casual baking
17 Hardcore baking
18 Steady tasty stream
19 Cookie monster
20 Mass producer
21 Cookie vortex
22 Cookie pulsar
23 Cookie quasar
24 A world filled with cookies
25 Let's never bake again
26 Sacrifice
27 Oblivion
28 From scratch
29 Neverclick
30 Clicktastic
31 Clickathlon
32 Clickolympics
33 Clickorama
34 Click
35 Double-click
36 Mouse wheel
37 Of Mice and Men
38 The Digital
39 Just wrong
40 Grandma's cookies
41 Sloppy kisses
42 Retirement home
43 My first farm
44 Reap what you sow
45 Farm ill
46 Production chain
47 Industrial revolution
48 Global warming
49 You know the drill
50 Excavation site
51 Hollow the planet
52 Expedition
53 Galactic highway
54 Far far away
55 Transmutation
56 Transmogrification
57 Gold member
58 A whole new world
59 Now you're thinking
60 Dimensional shift
61 Time warp
62 Alternate timeline
63 Rewriting history
64 One with everything
65 Mathematician
66 Base 10
67 Golden cookie
68 Lucky cookie
69 A stroke of luck
70 Cheated cookies taste awful
71 Uncanny clicker
72 Builder
73 Architect
74 Enhancer
75 Augmenter
76 Cookie-dunker
77 Fortune
78 True Neverclick
79 Elder nap
80 Elder slumber
81 Elder
82 Elder calm
83 Engineer
84 Leprechaun
85 Black cat's paw
86 Nihilism
87 Antibatter
88 Quirky quarks
89 It does matter!
90 Upgrader
91 Centennial
92 Hardcore
93 Speed baking I
94 Speed baking II
95 Speed baking III
96 Getting even with the oven
97 Now this is pod-smashing
98 Chirped out
99 Follow the white rabbit
100 Clickasmic
101 Friend of the ancients
102 Ruler of the ancients
103 Wholesome
104 Just plain lucky
105 Itchscratcher
106 Wrinklesquisher
107 Moistburster
108 Spooky cookies
109 Coming to town
110 All Hail Santa
111 Let it snow
112 Oh deer
113 Sleigh of hand
114 Reindeer Sleigher
115 Perfect Agriculture
116 Ultimate Automation
117 Can you dig it
118 Type II civilization
119 Gild wars
120 Brain split
121 Time duke
122 Molecular maestro
123 Lone photon
124 Dazzling glimmer
125 Blinding flash
126 Unending glow
127 Lord of constructs
128 Lord of Progress
129 Bicentannial
130 Lovely cookies
131 Centennial and a half
132 Tiny Cookie
133 You win a cookie
134 Click delegator
135 Gushing grannies
136 I hate manure
137 The incredible machine
138 Never Dig Down
139 And beyond
140 Magnus Opus
141 With starange eons
142 Spacetime jigamaroo
143 Supermassive
144 Praise the sun

Start a Discussion Discussions about Cheating

Around Wikia's network

Random Wiki