Advertisement
Davster10

Cookie Clicker Cheat

May 29th, 2015
2,643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. /**
  2. * Auto Cookie Clicker
  3. * Auto click cookies and golden cookies in the Cookie Clicker
  4. * game found here: http://orteil.dashnet.org/cookieclicker/
  5. */
  6.  
  7.  
  8. /**
  9. * How to in Chrome:
  10. * Open the browers and navigate to http://orteil.dashnet.org/cookieclicker/
  11. * then pressCTRL + SHIFT + J to open the developer console. Copy and paste the
  12. * code between the "Auto Clicker" tags and press enter and the auto clicker will begin clicking. To stop
  13. * the auto clicker, simply close your browers tab or refresh the page.
  14. */
  15.  
  16. /* ******************** Auto Clicker ******************** */
  17.  
  18. function clickId(id) {
  19. var element = document.getElementById(id);
  20. if(element !== undefined) {
  21. doEvent(element, "click");
  22. }
  23. window.setTimeout(clickId, 25, id);
  24. }
  25.  
  26. function doEvent(element, type) {
  27. trigger = document.createEvent('HTMLEvents');
  28. trigger.initEvent(type, true, true);
  29. element.dispatchEvent(trigger);
  30. }
  31.  
  32. window.setTimeout(clickId, 25, "bigCookie");
  33. window.setTimeout(clickId, 25, "goldenCookie");
  34.  
  35. /* ****************** End Auto Clicker ****************** */
  36.  
  37. /**
  38. * More Cheats:
  39. * There are of course many ways to cheat in a javascript based game. Simply open
  40. * the developer console and enter any of the following lines of code.
  41. */
  42.  
  43.  
  44. /* Change your Mouse Cookies Per Second (MCPS) */
  45. Game.computedMouseCps=123456789;
  46.  
  47. /* Change your Cookies Per Second (CPS) */
  48. Game.cookiesPs=123456789
  49.  
  50. /* Spawn a Golden Cookie */
  51. Game.goldenCookie.delay= 0;
  52. Game.goldenCookie.life=0;
  53. Game.goldenCookie.spawn();
  54.  
  55. /* Add cookies to your current cookie supply */
  56. Game.cookies= Game.cookies + 1000000000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement