master file of Random Button Clicker

Clicks a button at random intervals

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/494462/1373515/master%20file%20of%20Random%20Button%20Clicker.js

  1. // ==UserScript==
  2. // @name master file of Random Button Clicker
  3. // @namespace https://gf.qytechs.cn/master-file-random-button-clicker
  4. // @version 3.0
  5. // @description Clicks a button at random intervals
  6. // @license MIT
  7. // @match https://*.*.com/*
  8. // @grant none
  9. // @downloadURL https://update.gf.qytechs.cn/
  10. // @updateURL https://update.gf.qytechs.cn/
  11. // ==/UserScript==
  12.  
  13. function getRandomInt(min, max) {
  14. min = Math.ceil(min);
  15. max = Math.floor(max);
  16. return Math.floor(Math.random() * (max - min) + min);
  17. }
  18.  
  19. function doSomething() {
  20. var button = document.querySelector('[aria-label="Next"]');
  21. button.click();
  22. }
  23.  
  24. (function loop() {
  25. var rand = getRandomInt(35000, 45000);
  26. console.log(rand);
  27. setTimeout(function() {
  28. doSomething();
  29. loop();
  30. }, rand);
  31. }());

QingJ © 2025

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