Cookie Clicker Hack

Infinity cookies, infinity chips, autoclicker, autocookies (you should have 1 cookie).

  1. // ==UserScript==
  2. // @name Cookie Clicker Hack
  3. // @namespace -
  4. // @version 0.1
  5. // @description Infinity cookies, infinity chips, autoclicker, autocookies (you should have 1 cookie).
  6. // @author Nudo#3310
  7. // @match *://orteil.dashnet.org/cookieclicker/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=dashnet.org
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. setTimeout(() => {
  13. (function() {
  14. const Script = {}
  15.  
  16. Script.togglers = {
  17. autoClicker: false,
  18. addCookies: false,
  19. infinityCookies: false,
  20. infinityChips: false
  21. }
  22.  
  23. Script.elements = {
  24. bigCookie: document.getElementById("bigCookie"),
  25. topBar: document.getElementById("topBar")
  26. }
  27.  
  28. Script.clearTopBar = function() {
  29. this.elements.topBar.innerHTML = ""
  30. }
  31.  
  32. Script.clearTopBar()
  33.  
  34. Script.addButtonToTopBar = function(text, callback) {
  35. const container = document.createElement("div")
  36. const b = document.createElement("b")
  37.  
  38. b.style.fontWeight = "bold"
  39. container.style.cursor = "pointer"
  40.  
  41. b.innerHTML = text
  42.  
  43. container.appendChild(b)
  44.  
  45. this.elements.topBar.appendChild(container)
  46.  
  47. container.addEventListener("click", () => {
  48. callback(b)
  49. })
  50. }
  51.  
  52. Script.clickToCookie = function() {
  53. window.Game.ClickCookie()
  54. }
  55.  
  56. Script.addCookies = function() {
  57. window.Game.cookies += window.Game.cookies * 2
  58. }
  59.  
  60. Script.infinityCookies = function() {
  61. window.Game.cookies = Number.MAX_VALUE
  62. }
  63.  
  64. Script.infinityChips = function() {
  65. window.Game.heavenlyChips = Number.MAX_VALUE
  66. }
  67.  
  68. Script.addButtonToTopBar("Auto Clicker", (b) => {
  69. Script.togglers.autoClicker = !Script.togglers.autoClicker
  70.  
  71. if (Script.togglers.autoClicker) {
  72. b.style.color = "#fff"
  73.  
  74. Script.autoClickerInterval = setInterval(() => {
  75. Script.clickToCookie()
  76. })
  77. } else if (Script.autoClickerInterval) {
  78. b.style.color = ""
  79.  
  80. clearInterval(Script.autoClickerInterval)
  81. }
  82. })
  83.  
  84. Script.addButtonToTopBar("Add Cookies", (b) => {
  85. Script.togglers.addCookies = !Script.togglers.addCookies
  86.  
  87. if (Script.togglers.addCookies) {
  88. b.style.color = "#fff"
  89.  
  90. Script.addCookiesInterval = setInterval(() => {
  91. Script.addCookies()
  92. })
  93. } else if (Script.addCookiesInterval) {
  94. b.style.color = ""
  95.  
  96. clearInterval(Script.addCookiesInterval)
  97. }
  98. })
  99.  
  100. Script.addButtonToTopBar("Infinity Cookies", (b) => {
  101. Script.togglers.infinityCookies = !Script.togglers.infinityCookies
  102.  
  103. if (Script.togglers.infinityCookies) {
  104. b.style.color = "#fff"
  105.  
  106. Script.infinityCookiesInterval = setInterval(() => {
  107. Script.infinityCookies()
  108. })
  109. } else if (Script.infinityCookiesInterval) {
  110. b.style.color = ""
  111.  
  112. clearInterval(Script.infinityCookiesInterval)
  113. }
  114. })
  115.  
  116. Script.addButtonToTopBar("Infinity Chips", (b) => {
  117. Script.togglers.infinityChips = !Script.togglers.infinityChips
  118.  
  119. if (Script.togglers.infinityChips) {
  120. b.style.color = "#fff"
  121.  
  122. Script.infinityChipsInterval = setInterval(() => {
  123. Script.infinityChips()
  124. })
  125. } else if (Script.infinityChipsInterval) {
  126. b.style.color = ""
  127.  
  128. clearInterval(Script.infinityChipsInterval)
  129. }
  130. })
  131. })()
  132. }, 5000)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址