Anna's Archive Instant Redirect

Instantly bypasses the 'slow download' waiting page on Anna's Archive by redirecting to the main download gateway.

Ekde 2025/06/20. Vidu La ĝisdata versio.

// ==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.');
    }
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。