您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically clicks the "Slow download" button on Nexus Mods file pages.
// ==UserScript== // @name Nexus Mods Auto Slow Download // @namespace http://tampermonkey.net/ // @version 1.0 // @description Automatically clicks the "Slow download" button on Nexus Mods file pages. // @author NewsGuyTor // @match https://www.nexusmods.com/*/mods/*?tab=files* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const MAX_ATTEMPTS = 10; const RETRY_DELAY = 500; let attemptCount = 0; function clickSlowDownload() { const slowDownloadButton = document.getElementById('slowDownloadButton'); if (slowDownloadButton) { console.log('Found Slow Download button, clicking...'); slowDownloadButton.click(); } else if (attemptCount < MAX_ATTEMPTS) { attemptCount++; setTimeout(clickSlowDownload, RETRY_DELAY); } else { console.log('Slow Download button not found after maximum attempts'); } } if (document.readyState === 'complete' || document.readyState === 'interactive') { clickSlowDownload(); } else { window.addEventListener('load', clickSlowDownload); } })();