danielminer2

cookie clicker hack

Sep 4th, 2013
80,581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.37 KB | None | 0 0
  1. cookie clicker hacks
  2. Press Ctrl+Shift+I and simply type... (F12 for IE or Ctrl+Shift+K for Firefox )
  3.  
  4. Game.cookies=however many you want.
  5.  
  6. This gives you "Cheated cookies taste awful" if the number you put is bigger than the total number of cookies baked.
  7.  
  8. If you don't want "Cheated cookies taste awful" whatever you type use
  9.  
  10. The 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.  
  13. Using an autoclicker
  14. http://www.softpedia.com/progDownload/Random-Mouse-Clicker-Download-170028.html
  15.  
  16. Generating yourself a single golden cookie Game.goldenCookie.spawn();
  17.  
  18. Automatically generating a clicking a large number of golden cookies for(var i=0;i<HOWMANYDOYOUWANT;i++){Game.goldenCookie.life = 1; Game.goldenCookie.click()}
  19.  
  20. Giving yourself an Elder Frenzy Game.frenzy=Game.fps*6;
  21. Game.frenzyPower=666;
  22. Game.recalculateGains=1;
  23.  
  24. Giving yourself a quintillion cookies (gives you the cheater achievement). Game.cookies=1000000000000000000;
  25.  
  26. ruining the fun (gives you the cheater achievement) Game.RuinTheFun();
  27.  
  28. Easy methodEdit
  29. 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.
  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. }());
  35. Browser-specific console instruction[1]Edit
  36. These are instructions to bring up the console in different browsers. The console is where you put your codes into effect.
  37. Chrome
  38.  
  39. Press CTRL + SHIFT + J to open the "Console" tab of the Developer Tools.
  40. Alternative method:
  41. Press either CTRL + SHIFT + I or F12 to open the Developer Tools.
  42. Press ESC (or click on "Show console" in the bottom right corner) to slide the console up.
  43. 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.
  44. Safari
  45. Press CTRL + ALT + I to open the Web Inspector.
  46. See Chrome's step 2. (Chrome and Safari have pretty much identical dev tools.)
  47. 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!
  48. IE9
  49. Press F12 to open the developer tools.
  50. Click the "Console" tab.
  51. Firefox
  52. Press CTRL + SHIFT + K to open the Web console.
  53. Or, if Firebug is installed (recommended):
  54. Press F12 to open Firebug.
  55. Click on the "Console" tab.
  56. Opera
  57. Press CTRL + SHIFT + I to open Dragonfly.
  58. Click on the "Console" tab.
  59. End Cheats
  60. To end any active cheats, simply refresh the page.
  61.  
  62.  
  63. 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.
  64.  
  65. Gain a number of Golden Cookies
  66. Game.goldenClicks = 50;
  67. Note that clicks must then be manually incremented with the following code to earn achievements:
  68. Game.goldenCookie.click();
  69. Spawn Golden Cookie
  70. Where "15" is seconds visible. Must enable the normal Golden Cookie clicker.
  71. Game.goldenCookie.life = 15;
  72. Another Golden Cookie spawn
  73. Game.goldenCookie.spawn();
  74. Set Cookie output rate
  75. Note: will self correct when new buildings/upgrades are bought.
  76. Game.cookiesPs = 999999999;
  77. Enable every upgrade
  78. Game.UpgradesById.forEach(function(i) {if (i.bought === 0) { Game.cookies +=i.basePrice; i.buy(); }})
  79. Next upgrade from Bingo Center available instantly (After Bingo Center/Research Facility purchased)
  80. setInterval(function(){Game.researchT=0;}, 0);
  81. Golden Cookies appear instantly
  82. setInterval(function(){Game.goldenCookie.delay=0;}, 0);
  83. Elder pledge period setter (Time until next elder pledge, after purchasing Elder Pact upgrade)
  84. Game.pledgeT=time;
  85.  
  86. Unlock any achievement
  87.  
  88. Example:
  89. Game.Win('Mathematician');
  90. Game.Win('Base 10');
  91. Game.Win('Uncanny clicker');
  92. Unlock all achievements
  93. javascript:(function(){for(var i=0;i<Game.AchievementsN;
  94. i++){Game.Win(Game.AchievementsById[i].name);}})();
  95. Remove any achievements
  96. Replace "i" with the ID of the achievement.
  97.  
  98. var me=Game.AchievementsById[i];
  99. me.won=0;
  100. Remove all achievements
  101. for (var i in Game.AchievementsById)
  102. {
  103. var me=Game.AchievementsById[i];
  104. me.won=0;
  105. }
  106. A list of every achievement and their IDs are located at the bottom of the page.
  107. Automatically click Golden Cookies
  108.  
  109. Will automatically click them when they appear. Does not affect the appearance rate (use golden cookie auto-clicker for that).
  110. setInterval(function() {if(Game.goldenCookie.life > 0)Game.goldenCookie.click();}, 100);
  111. Automatically click Red Cookies without Some Special Effect
  112. Only work when you can get Red Cookies. Same as "Automatically click Golden Cookies", but no Clot, Cookie Chain, Elder Frenzy and Clicking Frenzy anymore.
  113. setInterval(function() {if(Game.goldenCookie.life > 0){Game.goldenCookie.wrath=0;Game.goldenCookie.click()}}, 100);
  114. Auto-click cookie
  115. Replace "time" with a number in milliseconds (1/1000 second).
  116. 60000 = 60 seconds (for those who aren't into numbers)
  117. setInterval(function() {Game.ClickCookie();}, time);
  118. Infinity Golden Cookie Clicker
  119. setInterval(function(){Game.goldenCookie.click();}, 10);
  120. Auto-click cookie Variant
  121. 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
  122.  
  123. setTimeout(heartbeat,1);
  124. function heartbeat(){
  125. eventFire(document.querySelector('#bigCookie'),'click');
  126. setTimeout(heartbeat,1);
  127. }
  128. function 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. }
  137. Infinite Golden Cookie Clicker Variant
  138. 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.
  139.  
  140. setTimeout(heartbeat,1);
  141. function heartbeat(){
  142. eventFire(document.querySelector('#goldenCookie'),'click');
  143. setTimeout(heartbeat,1);
  144. }
  145. function 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. }
  154. Show Golden Cookie delay in Title bar
  155. setInterval(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.  
  159. Infinity Golden Cookie Spawns
  160.  
  161. This will spawn and click one golden cookie per second.
  162.  
  163. setInterval(function() {if(Game.goldenCookie.life === 0) {Game.goldenCookie.spawn();Game.goldenCookie.wrath=0;Game.goldenCookie.click()}}, 1000);
  164.  
  165. Optimal Build Script
  166.  
  167. Automatically 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.  
  169. var interval = 250;
  170.  
  171. var cookieBot = setInterval(function() {
  172. Game.ObjectsById[optimalBuilding()].buy();
  173. }, interval);
  174.  
  175.  
  176. function 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.  
  199. Automatically buy upgrades and shop items
  200.  
  201. Buys best object and upgrades first, loops.
  202. setInterval(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);
  210. Alternative CheatEdit
  211. There exists a alternative method to hacking in cookies.
  212. First of all you need to export your save.
  213.  
  214. Now, let's cheat. Go to Base64 decode and enter the save there. It will say something like:
  215.  
  216. 1.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.  
  221. You can edit all the numbers EXCEPT the current version number ex: 1.03 and dont edit the symbols.
  222. After you've modified the save go to Base64 encoder, encode it and import your save to the game
  223.  
  224. CookieClickerPrice userscript (another optimal building order script)Edit
  225. CookieClickerPrice is a userscript that shows the amortisation of procucts.
  226. ReferencesEdit
  227. ↑ Instructions copied from StackExchange.
  228. Base64 decoder and Base64 encoder
  229. Achievement Table:
  230. ID Name
  231. 0 Wake and bake
  232. 1 Making some dough
  233. 2 So baked right now
  234. 3 Fledgling bakery
  235. 4 Affluent bakery
  236. 5 World-famous bakery
  237. 6 Cosmic bakery
  238. 7 Galactic bakery
  239. 8 Universal bakery
  240. 9 Timeless bakery
  241. 10 Infinite bakery
  242. 11 Immortal bakery
  243. 12 You can stop now
  244. 13 Cookies all the way down
  245. 14 Overdose
  246. 15 How?
  247. 16 Casual baking
  248. 17 Hardcore baking
  249. 18 Steady tasty stream
  250. 19 Cookie monster
  251. 20 Mass producer
  252. 21 Cookie vortex
  253. 22 Cookie pulsar
  254. 23 Cookie quasar
  255. 24 A world filled with cookies
  256. 25 Let's never bake again
  257. 26 Sacrifice
  258. 27 Oblivion
  259. 28 From scratch
  260. 29 Neverclick
  261. 30 Clicktastic
  262. 31 Clickathlon
  263. 32 Clickolympics
  264. 33 Clickorama
  265. 34 Click
  266. 35 Double-click
  267. 36 Mouse wheel
  268. 37 Of Mise and Men
  269. 38 The Digital
  270. 39 Just wrong
  271. 40 Grandma's cookies
  272. 41 Sloppy kisses
  273. 42 Retirement home
  274. 43 My first farm
  275. 44 Reap what you sow
  276. 45 Farm ill
  277. 46 Production chain
  278. 47 Industrial revolution
  279. 48 Global warming
  280. 49 You know the drill
  281. 50 Excavation site
  282. 51 Hollow the planet
  283. 52 Expedition
  284. 53 Galactic highway
  285. 54 Far far away
  286. 55 Transmutation
  287. 56 Transmogrification
  288. 57 Gold member
  289. 58 A whole new world
  290. 59 Now you're thinking
  291. 60 Dimensional shift
  292. 61 Time warp
  293. 62 Alternate timeline
  294. 63 Rewriting history
  295. 64 One with everything
  296. 65 Mathematician
  297. 66 Base 10
  298. 67 Golden cookie
  299. 68 Lucky cookie
  300. 69 A stroke of luck
  301. 70 Cheated cookies taste awful
  302. 71 Uncanny clicker
  303. 72 Builder
  304. 73 Architect
  305. 74 Enhancer
  306. 75 Augmenter
  307. 76 Cookie-dunker
  308. 77 Leprechaun
  309. 78 True Neverclick
  310. 79 Elder nap
  311. 80 Elder slumber
  312. 81 Elder
  313. 82 Elder calm
  314.  
  315. Categories:
  316. Add category
  317. Showing 25 most recent
  318. 286 comments
  319. Anonymous User
  320. Log in?
  321.  
  322.  
  323. 123456Next
  324.  
  325. If you make it so you have NaN (or infinite) cookies it seems you can't go back. Just a warning.
  326.  
  327. 7 hours ago by A Wikia contributor Reply
  328.  
  329. Yes I have the same problem. I don't want infinite cookies anymore but it won't go away.
  330.  
  331. I tried refreshing the page but it doesn't work. :/
  332.  
  333. 6 hours ago by A Wikia contributor
  334.  
  335. not even if you use
  336.  
  337. Game.cookies=0
  338.  
  339. 4 hours ago by A Wikia contributor
  340.  
  341. Your precious cheats have been saved.
  342.  
  343. But they won't be able to stop the grandmapocalypse.
  344.  
  345. 7 hours ago by A Wikia contributor Reply
  346.  
  347. setInterval(function () {Game.elderWrath=0;}, 1000)
  348.  
  349.  
  350.  
  351. U mad?
  352.  
  353. 7 hours ago by A Wikia contributor
  354.  
  355. Wow, someone really does not like cheating...
  356.  
  357. 7 hours ago by A Wikia contributor Reply
  358.  
  359. This 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.  
  361. It would be a good idea for the rest of you to do the same.
  362.  
  363. 8 hours ago by A Wikia contributor Reply
  364.  
  365. instead just undo the changes, the history is here for that kinda things
  366.  
  367. 7 hours ago by A Wikia contributor
  368.  
  369. Anyone can contribute to a wikia, just click "undo" when you see a griefed page and you'll be the hero of the day.
  370.  
  371. 7 hours ago by Fegazeus
  372.  
  373. reminder that destroying information is worse than cheating
  374.  
  375. 8 hours ago by A Wikia contributor Reply
  376.  
  377. OMG.. http://cookieclicker.wikia.com/wiki/Cheating?action=history
  378.  
  379. 8 hours ago by A Wikia contributor Reply
  380.  
  381. thanks man
  382.  
  383. 8 hours ago by A Wikia contributor
  384.  
  385. Fixed it for you...
  386.  
  387. 8 hours ago by A Wikia contributor
  388.  
  389. I want to reset the prices of all buildings without selling everything. How do I do so?
  390.  
  391. 8 hours ago by Racecarlock Reply
  392.  
  393. Wat Happend it says LOL WRONG IDEA
  394.  
  395. 8 hours ago by A Wikia contributor Reply
  396.  
  397. I fixed it by undoing the change that deleted everything.
  398.  
  399. 8 hours ago by A Wikia contributor
  400.  
  401. Where did the infinite cookie script go? Had to reset, and it'd be useful as hell.
  402.  
  403. 9 hours ago by A Wikia contributor Reply
  404.  
  405. very nice :) I added the IDs of all achievements, if anyone knows how to add them to a spoiler tag, please do so.
  406.  
  407. 10 hours ago by A Wikia contributor Reply
  408.  
  409. ....so basically just exactly their names then? lol
  410.  
  411. 4 hours ago by A Wikia contributor
  412.  
  413. Added a visual timer on the optimal building script. :D
  414.  
  415. 10 hours ago by A Wikia contributor Reply
  416.  
  417. Automatically buy upgrades and shop items
  418.  
  419. Buys best object and upgrades first, loops.
  420. setInterval(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.  
  429. Seriously? Is there no moderator in this wiki...
  430.  
  431. 13 hours ago by RhodoKnight Reply
  432.  
  433. ^That.
  434.  
  435. 10 hours ago by ItsBloonTasty
  436.  
  437. wuzzit doo?
  438.  
  439. 4 hours ago by A Wikia contributor
  440.  
  441. http://pastebin.com/kzmMa7kf
  442.  
  443. Original script for the autoclicker, that I created.
  444.  
  445. 13 hours ago by A Wikia contributor Reply
  446.  
  447. is there a way to get rid of the milk that is slowly taking over my screen? O-O
  448.  
  449. 14 hours ago by A Wikia contributor Reply
  450.  
  451. yes. go to settings and turn off milk
  452.  
  453.  
  454.  
  455. is there a way to add only a specific upgrade with cheats rather than all of them?
  456.  
  457. 13 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.  
  463. 4 hours ago by A Wikia contributor
  464.  
  465. Is there a way to remove the Infinity Golden Cookie Spawns?
  466.  
  467. 14 hours ago by A Wikia contributor Reply
  468.  
  469. I 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.  
  471. 16 hours ago by A Wikia contributor Reply
  472.  
  473. I 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.  
  475. 19 hours ago by A Wikia contributor Reply
  476.  
  477. I'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.  
  479. 23 hours ago by A Wikia contributor Reply
  480.  
  481. Maybe it's case-sensitive...
  482.  
  483. 10 hours ago by ItsBloonTasty
  484.  
  485. I want to change the time machine price to 1. Which command would do so?
  486.  
  487. 1 day ago by Racecarlock Reply
  488.  
  489. Game.priceincrease=0
  490.  
  491. 1 hour ago by A Wikia contributor
  492.  
  493. Is 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.  
  495. 1 day ago by A Wikia contributor Reply
  496.  
  497. The RuinTheFun cheat is not really reversible, since it gives you all achivements and upgrades and maxes your cookies.
  498.  
  499. You could manually go about reversing the upgrades but that's probably counter-intuitive.
  500.  
  501. 1 day ago by A Wikia contributor
  502.  
  503. well how to manually reverse upgrades?
  504.  
  505. 13 hours ago by A Wikia contributor
  506.  
  507. It'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.  
  511. I'm only worried that it would get lost in the mess, or that it'd get attributed to this Tommi character.
  512.  
  513. 1 day ago by A Wikia contributor Reply
  514.  
  515. That shouldn't be hard to find. Wait a tick - I'll try to re-add it.
  516.  
  517. 1 day ago by A Wikia contributor
  518.  
  519. Annnd done! :)
  520.  
  521. 1 day ago by A Wikia contributor
  522.  
  523. Thanks. 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.  
  525. 1 day ago by A Wikia contributor
  526.  
  527. awwww....its gone? but I kinda liked that demented rant about religion being the source of cheating in videogames
  528.  
  529. 1 day ago by A Wikia contributor Reply
  530.  
  531. I'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.  
  533. Thank You.
  534.  
  535. 1 day ago by RaisusTheFlammie Reply
  536.  
  537. how to get one specific upgrade and not ALL of them?
  538.  
  539. 1 day ago by A Wikia contributor Reply
  540.  
  541. for instance I may want to play with golden hoard without giving myself grandma's grandma
  542.  
  543. 1 day ago by A Wikia contributor
  544.  
  545. seems like some cheats are gone (e.g. Ruin the fun end game cheat), anyone do a check?
  546.  
  547. 1 day ago by A Wikia contributor Reply
  548.  
  549. That one's simply Game.RuinTheFun(); in console. :P
  550.  
  551. 1 day ago by A Wikia contributor
  552. 123456Next
  553.  
  554.  
  555.  
  556.  
  557. Advertisement | Your ad here
  558. Photos
  559.  
  560. Add a Photo
  561. 307PHOTOS ON THIS WIKI
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573. See all photos
  574. See all photos >
  575. Recent Wiki Activity
  576. 1.0 Update
  577. edited by A Wikia contributor 1 hour ago
  578. Update History
  579. edited by CubeS 1 hour ago
  580. Wiki Content
  581. edited by Grandma9to9to9to9andahalf 1 hour ago
  582. Farm
  583. edited by Grandma9to9to9to9andahalf 1 hour ago
  584. See more >
Add Comment
Please, Sign In to add comment