Greasy Fork is available in English.
Clicks a button at random intervals
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/494462/1373515/master%20file%20of%20Random%20Button%20Clicker.js
// ==UserScript==
// @name master file of Random Button Clicker
// @namespace http://greasyfork.icu/master-file-random-button-clicker
// @version 3.0
// @description Clicks a button at random intervals
// @license MIT
// @match https://*.*.com/*
// @grant none
// @downloadURL https://update.greasyfork.icu/
// @updateURL https://update.greasyfork.icu/
// ==/UserScript==
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min) + min);
}
function doSomething() {
var button = document.querySelector('[aria-label="Next"]');
button.click();
}
(function loop() {
var rand = getRandomInt(35000, 45000);
console.log(rand);
setTimeout(function() {
doSomething();
loop();
}, rand);
}());