您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Clicks on all elements with the class "spoiler-button" or manually closes them via the menu command
// ==UserScript== // @name EPVP - Click All Spoiler Button! // @namespace github.com/opemvbs // @version 1.4 // @description Clicks on all elements with the class "spoiler-button" or manually closes them via the menu command // @author Nawhki // @match *://www.elitepvpers.com/* // @grant GM_registerMenuCommand // @license MIT // ==/UserScript== (function() { 'use strict'; function clickAllSpoilerButtons() { const spoilerButtons = document.querySelectorAll('.spoiler-button'); spoilerButtons.forEach(button => { button.click(); }); } // Register the menu command to manually click all spoiler buttons GM_registerMenuCommand('Manually click all spoiler buttons', clickAllSpoilerButtons); // Automatically click spoiler buttons on page load clickAllSpoilerButtons(); })();