您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
通过ID精准点击下载缓慢按钮
当前为
// ==UserScript== // @name NexusMods 自动下载 // @namespace https://github.com/Jeffrey131313/nexus-auto-download/ // @version 0.2 // @description 通过ID精准点击下载缓慢按钮 // @author Jeffrey131313 // @match https://www.nexusmods.com/*/mods/*?tab=files* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const checkInterval = setInterval(() => { let targetBtn = document.getElementById('slowDownloadButton'); if (targetBtn) { console.log('检测到下载缓慢按钮,开始点击'); targetBtn.click(); clearInterval(checkInterval); setTimeout(() => { if (document.getElementById('fastDownloadButton')) { console.log('下载按钮依然存在,可能点击未成功'); } }, 2000); } }, 500); setTimeout(() => { clearInterval(checkInterval); console.log('超过20秒未找到按钮,停止检测'); }, 20000); })();