Greasy Fork 还支持 简体中文。

Clicking Bad Auto-Clicker

Automagically presses buy/sell buttons on clicking bad!

  1. // ==UserScript==
  2. // @name Clicking Bad Auto-Clicker
  3. // @namespace http://jslifesim.tk
  4. // @version 1.0
  5. // @description Automagically presses buy/sell buttons on clicking bad!
  6. // @author andrew65952
  7. // @match http://clickingbad.nullism.com/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. message("Clicking Bad Hacks Loaded! H-Cookies, J-Stop Cookies, I-Sell, K-Stop Sell");
  15. window.addEventListener("keydown", hacker, false);
  16. var autocook;
  17. var autosell;
  18. function hacker(e) {
  19. if (e.keyCode == "72") {
  20. autocook = setInterval(function() {
  21. document.getElementById("make_btn").click();
  22. },1000/200);
  23. message("Auto-Cook: Active");
  24. } else if (e.keyCode == "74") {
  25. if (typeof autocook !== undefined) {
  26. clearInterval(autocook);
  27. message("Auto-Cook: Unactive");
  28. }
  29. } else if (e.keyCode == "73") {
  30. autosell = setInterval(function() {
  31. document.getElementById("sell_btn").click();
  32. }, 1000/200);
  33. message("Auto-Sell: Active");
  34. } else if (e.keyCode == "75") {
  35. if (typeof autosell !== undefined) {
  36. clearInterval(autosell);
  37. message("Auto-Sell: Unactive");
  38. }
  39. }
  40. }
  41. })();