您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically clicks the 'Auto' toggle on 4chan threads if it's not already checked.
// ==UserScript== // @name 4chan Auto Toggle // @namespace http://tampermonkey.net/ // @version 0.1 // @description Automatically clicks the 'Auto' toggle on 4chan threads if it's not already checked. // @author loki1488 // @match https://boards.4chan.org/*/thread/* // @connect 4chan.org // @license MIT // ==/UserScript== (function() { 'use strict'; function waitForElement(selector, callback) { var el = document.querySelector(selector); if (el) { callback(el); } else { setTimeout(function() { waitForElement(selector, callback); }, 100); } } waitForElement('input[data-cmd="auto"]', function(autoInput) { if (!autoInput.checked) { autoInput.click(); } }); })();