Cookie Clicker Ultimate Adder 🍪🍬🏆

Add cookies, sugar lumps, unlock achievements, and more with this advanced GUI for Cookie Clicker! 🍪🍬

  1. // ==UserScript==
  2. // @name Cookie Clicker Ultimate Adder 🍪🍬🏆
  3. // @namespace https://www.cookieclicker.com/
  4. // @version 1.3
  5. // @description Add cookies, sugar lumps, unlock achievements, and more with this advanced GUI for Cookie Clicker! 🍪🍬
  6. // @author RDNA
  7. // @match *://orteil.dashnet.org/cookieclicker/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Create the GUI window
  15. let guiWindow = document.createElement('div');
  16. guiWindow.style.position = 'fixed';
  17. guiWindow.style.top = '50px';
  18. guiWindow.style.left = '50px';
  19. guiWindow.style.width = '300px';
  20. guiWindow.style.height = 'auto';
  21. guiWindow.style.backgroundColor = '#333';
  22. guiWindow.style.border = '2px solid #555';
  23. guiWindow.style.color = 'white';
  24. guiWindow.style.padding = '15px';
  25. guiWindow.style.zIndex = '9999';
  26. guiWindow.style.fontFamily = 'Arial, sans-serif';
  27. guiWindow.style.borderRadius = '8px';
  28. guiWindow.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.3)';
  29. guiWindow.id = 'cookieGUI';
  30.  
  31. // Title
  32. let title = document.createElement('h2');
  33. title.innerText = '🍪 Cookie Clicker Ultimate Adder';
  34. title.style.marginTop = '0';
  35. title.style.marginBottom = '10px';
  36. title.style.textAlign = 'center';
  37. title.style.color = '#ffd700';
  38. guiWindow.appendChild(title);
  39.  
  40. // Input for number of cookies
  41. let cookieInput = document.createElement('input');
  42. cookieInput.type = 'number';
  43. cookieInput.id = 'cookieAmount';
  44. cookieInput.placeholder = 'Enter number of cookies';
  45. cookieInput.style.width = '100%';
  46. cookieInput.style.padding = '10px';
  47. cookieInput.style.marginBottom = '10px';
  48. cookieInput.style.borderRadius = '5px';
  49. cookieInput.style.border = '1px solid #888';
  50. guiWindow.appendChild(cookieInput);
  51.  
  52. // Add cookies button
  53. let addButton = document.createElement('button');
  54. addButton.innerText = 'Add Cookies 🍪';
  55. addButton.style.width = '100%';
  56. addButton.style.padding = '10px';
  57. addButton.style.backgroundColor = '#28a745';
  58. addButton.style.color = 'white';
  59. addButton.style.border = 'none';
  60. addButton.style.borderRadius = '5px';
  61. addButton.style.cursor = 'pointer';
  62. addButton.onclick = function() {
  63. let amount = parseInt(document.getElementById('cookieAmount').value, 10);
  64. if (!isNaN(amount) && amount > 0) {
  65. Game.cookies = Game.cookies + amount;
  66. alert(`${amount} cookies added! 🍪`);
  67. } else {
  68. alert('🚨 Please enter a valid number. 🚨');
  69. }
  70. };
  71. guiWindow.appendChild(addButton);
  72.  
  73. // Input for sugar lumps
  74. let lumpInput = document.createElement('input');
  75. lumpInput.type = 'number';
  76. lumpInput.id = 'lumpAmount';
  77. lumpInput.placeholder = 'Enter number of sugar lumps';
  78. lumpInput.style.width = '100%';
  79. lumpInput.style.padding = '10px';
  80. lumpInput.style.marginBottom = '10px';
  81. lumpInput.style.borderRadius = '5px';
  82. lumpInput.style.border = '1px solid #888';
  83. guiWindow.appendChild(lumpInput);
  84.  
  85. // Add lumps button
  86. let addLumpButton = document.createElement('button');
  87. addLumpButton.innerText = 'Add Sugar Lumps 🍬';
  88. addLumpButton.style.width = '100%';
  89. addLumpButton.style.padding = '10px';
  90. addLumpButton.style.backgroundColor = '#ff69b4';
  91. addLumpButton.style.color = 'white';
  92. addLumpButton.style.border = 'none';
  93. addLumpButton.style.borderRadius = '5px';
  94. addLumpButton.style.cursor = 'pointer';
  95. addLumpButton.onclick = function() {
  96. let lumps = parseInt(document.getElementById('lumpAmount').value, 10);
  97. if (!isNaN(lumps) && lumps > 0) {
  98. Game.lumps = Game.lumps + lumps;
  99. alert(`${lumps} sugar lumps added! 🍬`);
  100. } else {
  101. alert('🚨 Please enter a valid number. 🚨');
  102. }
  103. };
  104. guiWindow.appendChild(addLumpButton);
  105.  
  106. // Unlock all achievements button
  107. let unlockAchButton = document.createElement('button');
  108. unlockAchButton.innerText = 'Unlock All Achievements 🏆';
  109. unlockAchButton.style.width = '100%';
  110. unlockAchButton.style.padding = '10px';
  111. unlockAchButton.style.backgroundColor = '#007bff';
  112. unlockAchButton.style.color = 'white';
  113. unlockAchButton.style.border = 'none';
  114. unlockAchButton.style.borderRadius = '5px';
  115. unlockAchButton.style.cursor = 'pointer';
  116. unlockAchButton.style.marginTop = '10px';
  117. unlockAchButton.onclick = function() {
  118. for (let i in Game.Achievements) {
  119. Game.Achievements[i].unlock();
  120. }
  121. alert('All achievements unlocked! 🏆');
  122. };
  123. guiWindow.appendChild(unlockAchButton);
  124.  
  125. // Close button
  126. let closeButton = document.createElement('button');
  127. closeButton.innerText = 'Close ❌';
  128. closeButton.style.width = '100%';
  129. closeButton.style.padding = '10px';
  130. closeButton.style.backgroundColor = '#dc3545';
  131. closeButton.style.color = 'white';
  132. closeButton.style.border = 'none';
  133. closeButton.style.borderRadius = '5px';
  134. closeButton.style.cursor = 'pointer';
  135. closeButton.style.marginTop = '10px';
  136. closeButton.onclick = function() {
  137. document.body.removeChild(guiWindow);
  138. };
  139. guiWindow.appendChild(closeButton);
  140.  
  141. // Append the window to the body
  142. document.body.appendChild(guiWindow);
  143.  
  144. // Make the window draggable
  145. guiWindow.onmousedown = function(event) {
  146. let shiftX = event.clientX - guiWindow.getBoundingClientRect().left;
  147. let shiftY = event.clientY - guiWindow.getBoundingClientRect().top;
  148.  
  149. function moveAt(pageX, pageY) {
  150. guiWindow.style.left = pageX - shiftX + 'px';
  151. guiWindow.style.top = pageY - shiftY + 'px';
  152. }
  153.  
  154. function onMouseMove(event) {
  155. moveAt(event.pageX, event.pageY);
  156. }
  157.  
  158. document.addEventListener('mousemove', onMouseMove);
  159.  
  160. guiWindow.onmouseup = function() {
  161. document.removeEventListener('mousemove', onMouseMove);
  162. guiWindow.onmouseup = null;
  163. };
  164. };
  165.  
  166. guiWindow.ondragstart = function() {
  167. return false;
  168. };
  169. })();

QingJ © 2025

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