· 6 years ago · May 02, 2019, 12:36 PM
1cookie clicker hacks
2Press Ctrl+Shift+I and simply type... (F12 for IE or Ctrl+Shift+K for Firefox )
3
4Game.cookies=however many you want.
5
6This gives you "Cheated cookies taste awful" if the number you put is bigger than the total number of cookies baked.
7
8If you don't want "Cheated cookies taste awful" whatever you type use
9
10The Game.Earn code doesn't work and will end up with you have to refresh the page and maybe lose a little bit of progress
11
12
13Using an autoclicker
14http://www.softpedia.com/progDownload/Random-Mouse-Clicker-Download-170028.html
15
16Generating yourself a single golden cookie Game.goldenCookie.spawn();
17
18Automatically generating a clicking a large number of golden cookies for(var i=0;i<HOWMANYDOYOUWANT;i++){Game.goldenCookie.life = 1; Game.goldenCookie.click()}
19
20Giving yourself an Elder Frenzy Game.frenzy=Game.fps*6;
21Game.frenzyPower=666;
22Game.recalculateGains=1;
23
24Giving yourself a quintillion cookies (gives you the cheater achievement). Game.cookies=1000000000000000000;
25
26ruining the fun (gives you the cheater achievement) Game.RuinTheFun();
27
28Easy methodEdit
29Create 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.
30 javascript: (function () {
31 var jsCode = document.createElement('script');
32 jsCode.setAttribute('src', 'https://gist.github.com/pBun/6394697/raw/ad46ee8ee246294ea253cc77480da88f24999095/Cookie+Clicker+Bookmarklet+%28unminified%29');
33 document.body.appendChild(jsCode);
34 }());
35Browser-specific console instruction[1]Edit
36These are instructions to bring up the console in different browsers. The console is where you put your codes into effect.
37Chrome
38
39Press CTRL + SHIFT + J to open the "Console" tab of the Developer Tools.
40Alternative method:
41Press either CTRL + SHIFT + I or F12 to open the Developer Tools.
42Press ESC (or click on "Show console" in the bottom right corner) to slide the console up.
43Note: 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.
44Safari
45Press CTRL + ALT + I to open the Web Inspector.
46See Chrome's step 2. (Chrome and Safari have pretty much identical dev tools.)
47Note: Step 1 only works if the "Show Develop menu in menu bar" check box in the Advanced tab of the Preferences menu is checked!
48IE9
49Press F12 to open the developer tools.
50Click the "Console" tab.
51Firefox
52Press CTRL + SHIFT + K to open the Web console.
53Or, if Firebug is installed (recommended):
54Press F12 to open Firebug.
55Click on the "Console" tab.
56Opera
57Press CTRL + SHIFT + I to open Dragonfly.
58Click on the "Console" tab.
59End Cheats
60To end any active cheats, simply refresh the page.
61
62
63Add 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.
64
65Gain a number of Golden Cookies
66Game.goldenClicks = 50;
67Note that clicks must then be manually incremented with the following code to earn achievements:
68Game.goldenCookie.click();
69Spawn Golden Cookie
70Where "15" is seconds visible. Must enable the normal Golden Cookie clicker.
71Game.goldenCookie.life = 15;
72Another Golden Cookie spawn
73Game.goldenCookie.spawn();
74Set Cookie output rate
75Note: will self correct when new buildings/upgrades are bought.
76Game.cookiesPs = 999999999;
77Enable every upgrade
78Game.UpgradesById.forEach(function(i) {if (i.bought === 0) { Game.cookies +=i.basePrice; i.buy(); }})
79Next upgrade from Bingo Center available instantly (After Bingo Center/Research Facility purchased)
80setInterval(function(){Game.researchT=0;}, 0);
81Golden Cookies appear instantly
82setInterval(function(){Game.goldenCookie.delay=0;}, 0);
83Elder pledge period setter (Time until next elder pledge, after purchasing Elder Pact upgrade)
84Game.pledgeT=time;
85
86Unlock any achievement
87
88Example:
89Game.Win('Mathematician');
90Game.Win('Base 10');
91Game.Win('Uncanny clicker');
92Unlock all achievements
93javascript:(function(){for(var i=0;i<Game.AchievementsN;
94i++){Game.Win(Game.AchievementsById[i].name);}})();
95Remove any achievements
96Replace "i" with the ID of the achievement.
97
98var me=Game.AchievementsById[i];
99me.won=0;
100Remove all achievements
101for (var i in Game.AchievementsById)
102 {
103 var me=Game.AchievementsById[i];
104 me.won=0;
105 }
106A list of every achievement and their IDs are located at the bottom of the page.
107Automatically click Golden Cookies
108
109Will automatically click them when they appear. Does not affect the appearance rate (use golden cookie auto-clicker for that).
110setInterval(function() {if(Game.goldenCookie.life > 0)Game.goldenCookie.click();}, 100);
111Automatically click Red Cookies without Some Special Effect
112Only work when you can get Red Cookies. Same as "Automatically click Golden Cookies", but no Clot, Cookie Chain, Elder Frenzy and Clicking Frenzy anymore.
113setInterval(function() {if(Game.goldenCookie.life > 0){Game.goldenCookie.wrath=0;Game.goldenCookie.click()}}, 100);
114Auto-click cookie
115Replace "time" with a number in milliseconds (1/1000 second).
11660000 = 60 seconds (for those who aren't into numbers)
117setInterval(function() {Game.ClickCookie();}, time);
118Infinity Golden Cookie Clicker
119setInterval(function(){Game.goldenCookie.click();}, 10);
120Auto-click cookie Variant
121The 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
122
123setTimeout(heartbeat,1);
124function heartbeat(){
125 eventFire(document.querySelector('#bigCookie'),'click');
126 setTimeout(heartbeat,1);
127}
128function eventFire(el, etype){
129 if (el.fireEvent) {
130 (el.fireEvent('on' + etype));
131 } else {
132 var evObj = document.createEvent('Events');
133 evObj.initEvent(etype, true, false);
134 el.dispatchEvent(evObj);
135 }
136}
137Infinite Golden Cookie Clicker Variant
138The 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.
139
140setTimeout(heartbeat,1);
141function heartbeat(){
142 eventFire(document.querySelector('#goldenCookie'),'click');
143 setTimeout(heartbeat,1);
144}
145function eventFire(el, etype){
146 if (el.fireEvent) {
147 (el.fireEvent('on' + etype));
148 } else {
149 var evObj = document.createEvent('Events');
150 evObj.initEvent(etype, true, false);
151 el.dispatchEvent(evObj);
152 }
153}
154Show Golden Cookie delay in Title bar
155setInterval(function() {
156 document.title='(' + Math.floor(Game.goldenCookie.delay / Game.fps) + ' s) '+Beautify(Game.cookies)+' '+(Game.cookies==1?'cookie':'cookies');
157}, Math.floor(500/Game.fps));
158
159Infinity Golden Cookie Spawns
160
161This will spawn and click one golden cookie per second.
162
163setInterval(function() {if(Game.goldenCookie.life === 0) {Game.goldenCookie.spawn();Game.goldenCookie.wrath=0;Game.goldenCookie.click()}}, 1000);
164
165Optimal Build Script
166
167Automatically buys the most effective item in terms of cookies per second and price. Also tells you how long it'll take until it buys, based on your CPS. (Doesn't take manual clicks into consideration)
168
169var interval = 250;
170
171var cookieBot = setInterval(function() {
172 Game.ObjectsById[optimalBuilding()].buy();
173}, interval);
174
175
176function optimalBuilding() {
177 cpc = Number.MAX_VALUE;
178 var x = 0;
179 for(i = Game.ObjectsById.length-1; i >= 0; i--){
180 var me = Game.ObjectsById[i];
181 var cpc2 = me.price *(Game.cookiesPs + me.storedCps) / me.storedCps;
182 if (cpc2 < cpc) {
183 cpc = cpc2;
184 x = i;
185 }
186 }
187
188 var time = (Math.round(Game.ObjectsById[x].price) - Game.cookies) / Game.cookiesPs;
189 time = time < 0 ? 0 : Beautify(time);
190
191 var txt = "Buying " + Game.ObjectsById[x].name + " for " +
192 Beautify(Math.round(Game.ObjectsById[x].price)) + " at " + Beautify(Math.round(Game.ObjectsById[x].price / Game.ObjectsById[x].storedCps)) +
193 " cookies per CPS!" + "<br>This will take " + time + " seconds without manually clicking.";
194
195 Game.Ticker = txt;
196 return x;
197}
198
199Automatically buy upgrades and shop items
200
201Buys best object and upgrades first, loops.
202setInterval(function() {
203 for(i=Game.UpgradesInStore.length-1; i >= 0; i--){
204 Game.UpgradesInStore[i].buy();
205 }
206 for(i=Game.ObjectsById.length-1; i >= 0; i--){
207 Game.ObjectsById[i].buy();
208 }
209}, 100);
210Alternative CheatEdit
211There exists a alternative method to hacking in cookies.
212First of all you need to export your save.
213
214Now, let's cheat. Go to Base64 decode and enter the save there. It will say something like:
215
2161.03||1377793875789|11111|0;0;0;0;0;0;-1;-1;0|0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;|0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;0,0;|0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;
217
218
219=�
220
221You can edit all the numbers EXCEPT the current version number ex: 1.03 and dont edit the symbols.
222After you've modified the save go to Base64 encoder, encode it and import your save to the game
223
224CookieClickerPrice userscript (another optimal building order script)Edit
225CookieClickerPrice is a userscript that shows the amortisation of procucts.
226ReferencesEdit
227↑ Instructions copied from StackExchange.
228Base64 decoder and Base64 encoder
229Achievement Table:
230ID Name
2310 Wake and bake
2321 Making some dough
2332 So baked right now
2343 Fledgling bakery
2354 Affluent bakery
2365 World-famous bakery
2376 Cosmic bakery
2387 Galactic bakery
2398 Universal bakery
2409 Timeless bakery
24110 Infinite bakery
24211 Immortal bakery
24312 You can stop now
24413 Cookies all the way down
24514 Overdose
24615 How?
24716 Casual baking
24817 Hardcore baking
24918 Steady tasty stream
25019 Cookie monster
25120 Mass producer
25221 Cookie vortex
25322 Cookie pulsar
25423 Cookie quasar
25524 A world filled with cookies
25625 Let's never bake again
25726 Sacrifice
25827 Oblivion
25928 From scratch
26029 Neverclick
26130 Clicktastic
26231 Clickathlon
26332 Clickolympics
26433 Clickorama
26534 Click
26635 Double-click
26736 Mouse wheel
26837 Of Mise and Men
26938 The Digital
27039 Just wrong
27140 Grandma's cookies
27241 Sloppy kisses
27342 Retirement home
27443 My first farm
27544 Reap what you sow
27645 Farm ill
27746 Production chain
27847 Industrial revolution
27948 Global warming
28049 You know the drill
28150 Excavation site
28251 Hollow the planet
28352 Expedition
28453 Galactic highway
28554 Far far away
28655 Transmutation
28756 Transmogrification
28857 Gold member
28958 A whole new world
29059 Now you're thinking
29160 Dimensional shift
29261 Time warp
29362 Alternate timeline
29463 Rewriting history
29564 One with everything
29665 Mathematician
29766 Base 10
29867 Golden cookie
29968 Lucky cookie
30069 A stroke of luck
30170 Cheated cookies taste awful
30271 Uncanny clicker
30372 Builder
30473 Architect
30574 Enhancer
30675 Augmenter
30776 Cookie-dunker
30877 Leprechaun
30978 True Neverclick
31079 Elder nap
31180 Elder slumber
31281 Elder
31382 Elder calm
314
315Categories:
316Add category
317Showing 25 most recent
318286 comments
319Anonymous User
320Log in?
321
322
323123456Next
324
325If you make it so you have NaN (or infinite) cookies it seems you can't go back. Just a warning.
326
3277 hours ago by A Wikia contributor Reply
328
329Yes I have the same problem. I don't want infinite cookies anymore but it won't go away.
330
331I tried refreshing the page but it doesn't work. :/
332
3336 hours ago by A Wikia contributor
334
335not even if you use
336
337Game.cookies=0
338
3394 hours ago by A Wikia contributor
340
341Your precious cheats have been saved.
342
343But they won't be able to stop the grandmapocalypse.
344
3457 hours ago by A Wikia contributor Reply
346
347setInterval(function () {Game.elderWrath=0;}, 1000)
348
349
350
351U mad?
352
3537 hours ago by A Wikia contributor
354
355Wow, someone really does not like cheating...
356
3577 hours ago by A Wikia contributor Reply
358
359This is pretty much why I save all the scripts in a txt file on my computer due to all the twats deleting everything off this page.
360
361It would be a good idea for the rest of you to do the same.
362
3638 hours ago by A Wikia contributor Reply
364
365instead just undo the changes, the history is here for that kinda things
366
3677 hours ago by A Wikia contributor
368
369Anyone can contribute to a wikia, just click "undo" when you see a griefed page and you'll be the hero of the day.
370
3717 hours ago by Fegazeus
372
373reminder that destroying information is worse than cheating
374
3758 hours ago by A Wikia contributor Reply
376
377OMG.. http://cookieclicker.wikia.com/wiki/Cheating?action=history
378
3798 hours ago by A Wikia contributor Reply
380
381thanks man
382
3838 hours ago by A Wikia contributor
384
385Fixed it for you...
386
3878 hours ago by A Wikia contributor
388
389I want to reset the prices of all buildings without selling everything. How do I do so?
390
3918 hours ago by Racecarlock Reply
392
393Wat Happend it says LOL WRONG IDEA
394
3958 hours ago by A Wikia contributor Reply
396
397I fixed it by undoing the change that deleted everything.
398
3998 hours ago by A Wikia contributor
400
401Where did the infinite cookie script go? Had to reset, and it'd be useful as hell.
402
4039 hours ago by A Wikia contributor Reply
404
405very nice :) I added the IDs of all achievements, if anyone knows how to add them to a spoiler tag, please do so.
406
40710 hours ago by A Wikia contributor Reply
408
409....so basically just exactly their names then? lol
410
4114 hours ago by A Wikia contributor
412
413Added a visual timer on the optimal building script. :D
414
41510 hours ago by A Wikia contributor Reply
416
417Automatically buy upgrades and shop items
418
419Buys best object and upgrades first, loops.
420setInterval(function() {
421 for(i=Game.UpgradesInStore.length-1; i >= 0; i--){
422 Game.UpgradesInStore[i].buy();
423 }
424 for(i=Game.ObjectsById.length-1; i >= 0; i--){
425 Game.ObjectsById[i].buy();
426 }
427}, 100);
428
429Seriously? Is there no moderator in this wiki...
430
43113 hours ago by RhodoKnight Reply
432
433^That.
434
43510 hours ago by ItsBloonTasty
436
437wuzzit doo?
438
4394 hours ago by A Wikia contributor
440
441http://pastebin.com/kzmMa7kf
442
443Original script for the autoclicker, that I created.
444
44513 hours ago by A Wikia contributor Reply
446
447is there a way to get rid of the milk that is slowly taking over my screen? O-O
448
44914 hours ago by A Wikia contributor Reply
450
451yes. go to settings and turn off milk
452
453
454
455is there a way to add only a specific upgrade with cheats rather than all of them?
456
45713 hours ago by A Wikia contributor
458
459@2nd guy no, quit asking. or start trying to guess the upgrade's id
460
461@ first guy you can't reverse the milk tide, only hide it. and you'll still accrue it.
462
4634 hours ago by A Wikia contributor
464
465Is there a way to remove the Infinity Golden Cookie Spawns?
466
46714 hours ago by A Wikia contributor Reply
468
469I typed Game.Earn(10000000000) and I get 10000000000 cookies added to my current amount of cookies (even if it said undefined in the console) I tried Game.cookies=1000000000 and my cookies had been set to 1000000000 if you don't type numbers it won't work, geez guys...
470
47116 hours ago by A Wikia contributor Reply
472
473I tried and i went from 600,000,000,000 cookies to fucking 0 -_- be more specific, Game.cookiesPs=(a higher number than your own) if you do Game.cookies=whatever, you lose all your cookies.
474
47519 hours ago by A Wikia contributor Reply
476
477I'm on Chrome and everytime I go into the console to cheat, it says whatever I type is not defined. For example typing Game.Earn(1000000) says Game not defined. Is there any way to get around this.
478
47923 hours ago by A Wikia contributor Reply
480
481Maybe it's case-sensitive...
482
48310 hours ago by ItsBloonTasty
484
485I want to change the time machine price to 1. Which command would do so?
486
4871 day ago by Racecarlock Reply
488
489Game.priceincrease=0
490
4911 hour ago by A Wikia contributor
492
493Is there a way of getting rid of the RuinTheGame cheat by exporting/importing the save? Which "1" do I turn to "0" after decoding?
494
4951 day ago by A Wikia contributor Reply
496
497The RuinTheFun cheat is not really reversible, since it gives you all achivements and upgrades and maxes your cookies.
498
499You could manually go about reversing the upgrades but that's probably counter-intuitive.
500
5011 day ago by A Wikia contributor
502
503well how to manually reverse upgrades?
504
50513 hours ago by A Wikia contributor
506
507It's a shame that cleaning up the vandalism removed my little modification to the autobuy script; it works much better if you account for that buying worse cost/CpS items might get you enough cookies to buy the better items sooner than you could have otherwise. I mean, why would you wait six months with a single cursor to buy a portal when buying two cursors instead of one would make it take only three months? An extreme example, sure, but the fix is simple.
508
509
510
511I'm only worried that it would get lost in the mess, or that it'd get attributed to this Tommi character.
512
5131 day ago by A Wikia contributor Reply
514
515That shouldn't be hard to find. Wait a tick - I'll try to re-add it.
516
5171 day ago by A Wikia contributor
518
519Annnd done! :)
520
5211 day ago by A Wikia contributor
522
523Thanks. I actually did a little algebra and figured out that it'd be pretty easy to rank them such that items would be bought first if it'd speed up the buying of the second item more than the cost of the first item. And I don't really care who it's attributed to. :P
524
5251 day ago by A Wikia contributor
526
527awwww....its gone? but I kinda liked that demented rant about religion being the source of cheating in videogames
528
5291 day ago by A Wikia contributor Reply
530
531I've just asked the admin of the site, Betaclay to put a lock on this page. I'm sorry everyone, if you want to make an edit; you'll have to put it in the Cheating:Suggestions Page.
532
533Thank You.
534
5351 day ago by RaisusTheFlammie Reply
536
537how to get one specific upgrade and not ALL of them?
538
5391 day ago by A Wikia contributor Reply
540
541for instance I may want to play with golden hoard without giving myself grandma's grandma
542
5431 day ago by A Wikia contributor
544
545seems like some cheats are gone (e.g. Ruin the fun end game cheat), anyone do a check?
546
5471 day ago by A Wikia contributor Reply
548
549That one's simply Game.RuinTheFun(); in console. :P
550
5511 day ago by A Wikia contributor
552123456Next
553
554
555
556
557Advertisement | Your ad here
558Photos
559
560 Add a Photo
561307PHOTOS ON THIS WIKI
562
563
564
565
566
567
568
569
570
571
572
573See all photos
574See all photos >
575Recent Wiki Activity
5761.0 Update
577edited by A Wikia contributor 1 hour ago
578Update History
579edited by CubeS 1 hour ago
580Wiki Content
581edited by Grandma9to9to9to9andahalf 1 hour ago
582Farm
583edited by Grandma9to9to9to9andahalf 1 hour ago
584See more >