您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Spams the submit button every 1 seconds until the forum post submits
// ==UserScript== // @name 60 Second Rule // @version 1.0 // @description Spams the submit button every 1 seconds until the forum post submits // @match *://scratch.mit.edu/* // @namespace https://greasyfork.org/users/208839 // ==/UserScript== if(document.getElementsByClassName("errorlist").length == 1){ if(document.getElementsByClassName("errorlist")[0].children[0].innerHTML == "Sorry, you have to wait 60 seconds between posts."){ window.n = window.setInterval(function(){document.getElementsByName("AddPostForm")[0].click();}, 1000); var g = document.createElement("BUTTON"); g.innerHTML = "Cancel Userscript"; g.addEventListener("click", function(){ g.width = 0; g.height = 0; window.clearInterval(window.n); }); document.getElementsByClassName("errorlist")[0].children[0].appendChild(g); } }