LeechTop – Skip Countdown & Bypass limit

Remove the 70s delay on leechtop.com download pages

Από την 27/11/2025. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         LeechTop – Skip Countdown & Bypass limit
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Remove the 70s delay on leechtop.com download pages
// @author       ShadowLin21
// @match        https://leechtop.com/*
// @run-at       document-start
// @grant        none
// @license      GPL-3.0-or-later
// ==/UserScript==

(function() {
    'use strict';

    function clearAllCookies() {
        const cookieString = document.cookie;
        if (!cookieString) return;

        const cookies = cookieString.split(';');

        const domains = [location.hostname];
        const parts = location.hostname.split('.');
        if (parts.length > 2) {
            domains.push(parts.slice(-2).join('.'));
        }

        cookies.forEach(c => {
            const eq = c.indexOf('=');
            const name = (eq > -1 ? c.substr(0, eq) : c).trim();

            domains.forEach(domain => {
                document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=' + domain;
            });

            document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/';
        });
    }

    clearAllCookies();

    function unlockButton() {
        const btn = document.querySelector('a.go-download-direct');
        if (!btn) return false;

        if (!btn.classList.contains('zing-disabled')) return true;

        btn.classList.remove('zing-disabled');

        const secSpan = btn.querySelector('.sec-count');
        if (secSpan) secSpan.remove();

        btn.textContent = 'Download Now';

        return true;
    }

    function initUnlock() {
        let tries = 0;
        const maxTries = 50;
        const interval = 200;

        const timer = setInterval(() => {
            tries++;
            if (unlockButton() || tries >= maxTries) {
                clearInterval(timer);
            }
        }, interval);
    }

    if (document.readyState === 'complete' || document.readyState === 'interactive') {
        initUnlock();
    } else {
        window.addEventListener('DOMContentLoaded', initUnlock);
    }
})();