您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Instantly bypasses the 'slow download' waiting page on Anna's Archive by redirecting to the main download gateway.
当前为
// ==UserScript== // @name Anna's Archive Instant Redirect // @namespace http://tampermonkey.net/ // @version 3.0 // @description Instantly bypasses the 'slow download' waiting page on Anna's Archive by redirecting to the main download gateway. // @author @Alberto // @match *://annas-archive.org/slow_download/* // @grant none // @run-at document-start // ==/UserScript== (function() { 'use strict'; // This script runs the moment you land on the "slow_download" page. console.log('Slow download page detected. Performing instant redirect...'); // Get the current URL of the slow download page. // e.g., "https://annas-archive.org/slow_download/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6/...." const currentUrl = window.location.href; // Use a regular expression to find the 32-character MD5 hash, which is the file's unique ID. const md5Regex = /\/slow_download\/([a-fA-F0-9]{32})\//; const match = currentUrl.match(md5Regex); // Check if we found a valid MD5 hash in the URL. if (match && match[1]) { const md5 = match[1]; console.log(`Found file MD5 hash: ${md5}`); // Construct the URL for the main download gateway page. This is the page you'd get AFTER the timer. const redirectUrl = `https://annas-archive.org/md5/${md5}`; console.log(`Redirecting to: ${redirectUrl}`); // Instantly navigate to the real download page, skipping the wait entirely. window.location.href = redirectUrl; } else { // This will only run if the URL structure changes, which is unlikely. console.error('Could not find MD5 hash in the URL. Cannot redirect.'); } })();