您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动点击书籍页面中的 "show external downloads"(Automatically click "show external downloads" on Anna's Archive pages)
当前为
// ==UserScript== // @name 自动展开“安娜的档案”外部下载列表 // @namespace http://tampermonkey.net/ // @version 1.4 // @description 自动点击书籍页面中的 "show external downloads"(Automatically click "show external downloads" on Anna's Archive pages) // @author GPT-4o // @match https://*.annas-archive.*/md5/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Function to click the "show external downloads" button function clickShowExternalDownloads() { const button = document.querySelector('a.js-show-external-button'); if (button) { button.click(); } else { console.log('Button not found.'); } } // Retry mechanism to ensure the button is clicked even if the page takes time to load function retryClick(retries, delay) { if (retries <= 0) return; setTimeout(function() { clickShowExternalDownloads(); retryClick(retries - 1, delay); }, delay); } // Wait for the page to load completely before executing the function window.addEventListener('load', function() { retryClick(10, 100); // Try 10 times with a 0.1-second interval }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址