monkey bruh

cookie clicker autoclicker

  1. // ==UserScript==
  2. // @name monkey bruh
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description cookie clicker autoclicker
  6. // @author You
  7. // @match https://orteil.dashnet.org/cookieclicker/
  8. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. // Create <a> element and style it with the option class then put it by the big cookie
  16. var clickerButton = document.createElement("A");
  17. clickerButton.innerHTML = "Turn on clicker";
  18. document.getElementById("bigCookie").appendChild(clickerButton);
  19. clickerButton.classList.add("option");
  20. // declaring the bool
  21. var flag = false;
  22. var flag2 = 0
  23. //input variable declaration
  24. var speed = "";
  25. var goldenCookie = 0
  26. // runs function when the button is clicked
  27. clickerButton.addEventListener("click", function() {
  28. if (clickerButton.innerHTML === "Turn on clicker") {
  29. speed = prompt("Click every how many miliseconds?");
  30. //changes text
  31. clickerButton.innerHTML = "Turn off clicker";
  32. //turns switch on
  33. flag = true;
  34. }
  35. else {
  36. clickerButton.innerHTML = "Turn on clicker";
  37. //turns switch off
  38. flag = false;
  39. }
  40. // run another function
  41. clickCookie();
  42. });
  43. function clickCookie() {
  44. // activates every 3 miliseconds
  45. setInterval(function() {
  46. // checks if switch is on
  47. if (flag) {
  48. // gets the big ccokie by id and simulates a click on it
  49. document.getElementById("bigCookie").click()
  50. }
  51. }, Number(speed));
  52. };
  53. })();

QingJ © 2025

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