Cookie Clicker

Cookie Clicker is a game where you...click a cookie. Despite its simplicity, it's very addictive and has recently became quite popular.

Unfinished Menu
Typing:

Game.ShowMenu('main');

into the Javascript console opens up a small menu showing some buttons among a small comment, mentioning how this menu still isn't finished.


 * The "Menu" button opens up the regular main menu for things like manual saving, soft resets, and options.
 * "Stats" opens up the stats menu.
 * "Updates" shows the updates menu.
 * "Quit" doesn't do anything. This is likely due to the fact this is a browser-based game.
 * "Resume" goes back to the menu that shows your item's stats.

Debug Mode
Typing:

Game.RuinTheFun;

into the Javascript console will give you 999,999,999,999,999,999 (a little under 1 quintillion) cookies, and give you all upgrades and achievements.

Unused Upgrades
To unlock the unused upgrades, type the following into the Javascript console, replacing NAME with the upgrade's name (if the upgrade has apostrophes in its name, make sure to add a backslash before each apostrophe):

Game.Unlock("NAME")

Commented Upgrades
All of these upgrades are commented out, accompanied with the message "//I really should release these someday". None of them are implemented and have no effect when obtained.

Plain milk
Plain milk Unlocks plain milk, available in the menu. Cost: 120,000,000,000 cookies

Should allow plain milk to be available in the menu, but doesn't. Uses a blank icon instead of the plain milk icon.

Chocolate milk
Chocolate milk Unlocks chocolate milk, available in the menu. Cost: 120,000,000,000 cookies

Should allow chocolate milk to be available in the menu, but doesn't. Uses a blank icon instead of the unused chocolate milk icon.

Raspberry milk
Raspberry milk Unlocks raspberry milk, available in the menu. Cost: 120,000,000,000 cookies

Should allow raspberry milk to be available in the menu, but doesn't. Uses a blank icon instead of the unused raspberry milk icon.

Orange juice
Orange juice Unlocks orange juice, available in the menu. Cost: 120,000,000,000 cookies

Should allow orange juice to be available in the menu, but doesn't. Uses a blank icon. There doesn't seem to be an icon that would fit this upgrade, as orange juice is a fairly new addition to the game.

Ain't got milk
Ain't got milk Unlocks no milk please, available in the menu. Cost: 120,000,000,000 cookies

Should allow "no milk please" to be available in the menu, but doesn't. Uses the icon for "Blue background". Like orange juice, there doesn't seem to be an icon that would fit this upgrade. It also seems pointless, as milk can already be turned off without upgrades.

Blue background
Blue background Unlocks the blue background, available in the menu. Cost: 120,000,000,000 cookies

Should allow the blue background to be available in the menu, but doesn't. Uses the icon for "Specialized chocolate chips" instead of the unused blue background icon.

Red background
Red background Unlocks the red background, available in the menu. Cost: 120,000,000,000 cookies

Should allow the red background to be available in the menu, but doesn't. Even if it was capable of loading the red background, the graphics for it don't exist. Uses the icon for "Designer cocoa beans" instead of the unused red background icon.

White background
White background Unlocks the white background, available in the menu. Cost: 120,000,000,000 cookies

Should allow the white background to be available in the menu, but doesn't. Even if it was capable of loading the white background, the graphics for it don't exist. Uses the icon for "Ritual rolling pins" instead of the unused white background icon.

Black background
Black background Unlocks the black background, available in the menu. Cost: 120,000,000,000 cookies

Should allow the black background to be available in the menu, but doesn't. Even if it was capable of loading the black background, the graphics for it don't exist. Uses the icon for "Underworld ovens" instead of the unused black background icon.

Golden switch
Golden switch Unlocks the Golden switch, available in the menu. When active, the Golden switch grants you a passive CpS boost, but prevents golden cookies from spawning. Cost: 77,777,777,777 cookies

Should add the option to turn off golden cookies in the menu and increase your CpS, but doesn't do either.

Ultrascience
Ultrascience Research takes only 5 seconds. YEAH, SCIENCE! Cost: 7 cookies

Makes research take only 5 seconds.

Gold hoard
Gold hoard Golden cookies appear really often. That's entirely too many. Cost: 7 cookies

Makes golden cookies appear very frequently.

Neuromancy
Neuromancy Can toggle upgrades on and off at will in the stats menu. Can also come in handy to unsee things that can't be unseen. Cost: 7 cookies

Allows you to toggle upgrades on and off by clicking on them in the stats menu.

Perfect idling
Perfect idling You keep producing cookies even while the game is closed. It's the most beautiful thing i've ever seen.

Exactly what it sounds like. This bakes cookies while the game is closed.

Wrinkler doormat
Wrinkler doormat Wrinklers spawn much more frequently. You're such a pushover.

Also exactly what it sounds like, Wrinklers spawn very often.

Cheated cookies taste awful
Cheated cookies taste awful Hack in some cookies.

Can only be obtained by cheating to get more cookies or to spawn a golden cookie. Can be obtained without hacking in cookies by entering the following into the Javascript console:

Game.Win(Game.AchievementsById[70].name)

Galactus' Reprimand
Galactus' Reprimand Reset your game with 1 quintillion coo- okay no I'm yanking your chain

The more incomplete of the 2 unused achievements. It's highly likely this was never to be used.

Imperfect Cookie


A creepy version of the big cookie, internally called Imperfect Cookie. Could be seen in versions before 1.038 by typing the following into the Javascript console:

Game.addClass("elderWrath")

Hilariously enough, you can actually get this to appear via cheating. If you disable any normal golden cookie effects like Lucky and Frenzy, this will show up instead as a bit of a placeholder. However, this effect will go away after a couple moments. The best way to see this is using cheat menus, like CookieCheat.

Marshmallows


Graphics for three colors of marshmallows, possibly intended for a future update.

Swords and Clubs


Unused graphics for swords and clubs. Possibly to be used in the dungeon update.

Unused Button
//' '+Game.WriteButton('autosave','autosaveButton','Autosave ON','Autosave OFF')+' '+

At the end of the code for the menu, there is code for an autosave button, likely commented out because there isn't much of a reason for turning it off. When the two slashes are removed, the button will appear and function as expected.

Unused Statistics
Game.cookiesSucked: Keeps track of how many cookies you've lost to the Wrinklers. Game.missedGoldenClicks: Keeps track of how many Golden Cookies you missed. This was in the game, but got removed due to players complaining that it was "messing with their OCD". Game.backgroundType: It should keep track of which background color you are using, but doesn't due to the graphics not being implemented yet. It's always set to -1.

//(Game.cookiesSucked>0?' Withered : '+Beautify(Game.cookiesSucked)+' cookies ':'')+ //' (Missed golden cookies : '+Beautify(Game.missedGoldenClicks)+') '+

There is code for displaying the amount of cookies lost to Wrinklers and missed Golden Cookies on the Stats menu, but unfortunately it's commented out.

News ticker
News : local cookie manufacturer becomes luckiest being alive!

Should appear in the news ticker after buying the upgrade Serendipity, but doesn't due to the game mistakenly checking for an achievement instead of an upgrade named Serendipity.

Code Comments
As with most HTML5 games, there are a lot of comments in the game's code. However, there are a few interesting ones worth mentioning.

Cookie Clicker's Cookies
//guess what we'e using to save the game? //that's right //we're using cookies //yeah I went there //we storin dis for 5 years, people //mmh stale cookies

Within the code for storing cookies, there are some comments poking fun at the irony of Cookie Clicker using cookies. However, the Valentines Day update made the saves saved in local storage, making this no longer relevant.

Grandma Upgrades
Farmer grandmas: //I remember the first time I saw her, amidst the cookie crops. Worker grandmas: //Her eyes like a burning furnace; my heart like a racing engine. Miner grandmas: //It was as if she could pierce through me, burrow at my deepest. Cosmic grandmas: //In that moment, the universe felt empty, save for just her and me. Transmuted grandmas: //I could feel it growing in me. Changing me... making me something else, something better. Altered grandmas: //There was no way she was of this world. Her very mind was... alien, pervasive; a distortion of the real thing. Grandma's grandmas: //She was not what I had first assumed; she was from another time, another eon altogether. Antigrandmas: //And with her hair... sparkling like starlight... she whispered something.

After the code for each grandma upgrade, there is a commented out message, likely from the grandma's husband. These messages were removed somewhere in between versions 1.0.375-1.0.382.