// ==UserScript== // @name Auto Click Show External Downloads - 自动展开“安娜的档案”外部下载列表 // @namespace http://tampermonkey.net/ // @version 1.0 // @description Automatically click "show external downloads" on Anna's Archive pages (打开“安娜的档案”书籍页面时自动展开外部下载列表) // @author 55 // @match https://zh.annas-archive.org/md5/* // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; // Function to click the "show external downloads" button function clickShowExternalDownloads() { const button = document.querySelector('a.text-sm[onclick*="js-show-external"]'); if (button) { button.click(); console.log('Clicked "show external downloads" button.'); } else { console.log('Button not found.'); } } // Wait for the page to load completely before executing the function window.addEventListener('load', clickShowExternalDownloads); })();