☰

Speedy-Links Full Auto: BypassLinks

Fully automatic speedy-links bypasser

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, Greasemonkey alebo Violentmonkey.

Na inštaláciu tohto skriptu budete musieť nainštalovať rozšírenie, ako je napríklad Tampermonkey alebo Violentmonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, % alebo Violentmonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey alebo Userscripts.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie, ako napríklad Tampermonkey.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie správcu používateľských skriptov.

(Už mám správcu používateľských skriptov, nechajte ma ho nainštalovať!)

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

(Už mám správcu používateľských štýlov, nechajte ma ho nainštalovať!)

// ==UserScript==
// @name         Speedy-Links Full Auto: BypassLinks
// @namespace    local
// @version      2.3
// @description  Fully automatic speedy-links bypasser
// @author       crystallurgy
// @match        *://speedy-links.com/*
// @match        *://www.speedy-links.com/*
// @match        *://*.speedy-links.com/*
// @match        *://bypass-links.com/*
// @match        *://www.bypass-links.com/*
// @run-at       document-end
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    // ========== Liquid Glass Notification ==========
    function showLiquidGlass(text = "You're being directed to the website") {
        // Remove existing if any
        const old = document.getElementById('liquid-glass-toast');
        if (old) old.remove();

        const toast = document.createElement('div');
        toast.id = 'liquid-glass-toast';
        toast.innerHTML = `
            <div class="lg-content">
                <div class="lg-spinner"></div>
                <div class="lg-text-wrap">
                    <span class="lg-text">${text}</span>
                    <span class="lg-credit">made by roxy</span>
                </div>
            </div>
        `;

        // Styles
        const style = document.createElement('style');
        style.textContent = `
            #liquid-glass-toast {
                position: fixed;
                top: 24px;
                right: 24px;
                z-index: 2147483647;
                pointer-events: none;
                animation: lg-slide-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            }

            .lg-content {
                display: flex;
                align-items: center;
                gap: 14px;
                padding: 16px 22px;
                border-radius: 24px;
                background: rgba(255, 255, 255, 0.18);
                backdrop-filter: blur(24px) saturate(180%);
                -webkit-backdrop-filter: blur(24px) saturate(180%);
                border: 1px solid rgba(255, 255, 255, 0.35);
                box-shadow:
                    0 8px 32px rgba(0, 0, 0, 0.18),
                    inset 0 1px 0 rgba(255, 255, 255, 0.45);
                color: #111;
                font-family: "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
                min-width: 240px;
                max-width: 340px;
            }

            .lg-text-wrap {
                display: flex;
                flex-direction: column;
                gap: 2px;
            }

            .lg-text {
                font-size: 15px;
                font-weight: 700;
                letter-spacing: -0.015em;
                line-height: 1.25;
                word-break: break-word;
            }

            .lg-credit {
                font-size: 11px;
                font-weight: 600;
                opacity: 0.65;
                letter-spacing: 0.02em;
            }

            .lg-spinner {
                width: 16px;
                height: 16px;
                border: 2px solid rgba(0, 0, 0, 0.15);
                border-top-color: rgba(0, 0, 0, 0.65);
                border-radius: 50%;
                animation: lg-spin 0.75s linear infinite;
                flex-shrink: 0;
            }

            @keyframes lg-slide-in {
                from {
                    opacity: 0;
                    transform: translateY(-18px) scale(0.94);
                }
                to {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
            }

            @keyframes lg-spin {
                to { transform: rotate(360deg); }
            }

            /* Dark mode friendly */
            @media (prefers-color-scheme: dark) {
                .lg-content {
                    background: rgba(30, 30, 30, 0.55);
                    border: 1px solid rgba(255, 255, 255, 0.12);
                    color: #f5f5f7;
                    box-shadow:
                        0 8px 32px rgba(0, 0, 0, 0.45),
                        inset 0 1px 0 rgba(255, 255, 255, 0.08);
                }
                .lg-spinner {
                    border-color: rgba(255, 255, 255, 0.15);
                    border-top-color: rgba(255, 255, 255, 0.75);
                }
            }
        `;

        document.documentElement.appendChild(style);
        document.documentElement.appendChild(toast);

        // Auto remove after 4.5s
        setTimeout(() => {
            toast.style.transition = 'opacity 0.4s ease, transform 0.4s ease';
            toast.style.opacity = '0';
            toast.style.transform = 'translateY(-12px) scale(0.96)';
            setTimeout(() => toast.remove(), 420);
        }, 4500);
    }

    // ========== Main Logic ==========
    const host = location.hostname;

    // PART 1: Speedy-Links → BypassLinks
    if (host.includes('speedy-links.com')) {
        if (window.top !== window.self) return;

        showLiquidGlass("You're being directed to the website");

        setTimeout(() => {
            const target = `https://bypass-links.com/?url=${encodeURIComponent(location.href)}`;
            location.replace(target);
        }, 700);
        return;
    }

    // PART 2: On BypassLinks
    if (host.includes('bypass-links.com')) {
        showLiquidGlass("Unlocking link…");

        const waitFor = (selector, timeout = 15000) => {
            return new Promise((resolve) => {
                const start = Date.now();
                const timer = setInterval(() => {
                    const el = document.querySelector(selector);
                    if (el) {
                        clearInterval(timer);
                        resolve(el);
                    } else if (Date.now() - start > timeout) {
                        clearInterval(timer);
                        resolve(null);
                    }
                }, 180);
            });
        };

        (async () => {
            const input = await waitFor('input[type="text"], input[placeholder*="http"], input');
            if (input) {
                const params = new URLSearchParams(location.search);
                const urlFromQuery = params.get('url') || params.get('link') || params.get('q');
                if (urlFromQuery && !input.value) {
                    input.value = urlFromQuery;
                    input.dispatchEvent(new Event('input', { bubbles: true }));
                    input.dispatchEvent(new Event('change', { bubbles: true }));
                }
            }

            const allButtons = [...document.querySelectorAll('button, [role="button"], a')];
            const bypassButton = allButtons.find(btn =>
                /bypass\s*now/i.test(btn.textContent || '')
            );

            if (bypassButton) {
                setTimeout(() => bypassButton.click(), 350);
            }

            const checkResult = setInterval(() => {
                const openBtn = [...document.querySelectorAll('button, a')].find(el =>
                    /open\s*destination/i.test(el.textContent || '')
                );

                if (openBtn) {
                    clearInterval(checkResult);
                    showLiquidGlass("Opening destination…");
                    setTimeout(() => openBtn.click(), 400);
                    return;
                }

                const resultLink = document.querySelector('a[href*="mega.nz"], a[href^="http"]');
                if (resultLink && resultLink.href && !resultLink.href.includes('bypass-links')) {
                    clearInterval(checkResult);
                    showLiquidGlass("Opening destination…");
                    setTimeout(() => {
                        location.href = resultLink.href;
                    }, 400);
                }
            }, 350);

            setTimeout(() => clearInterval(checkResult), 25000);
        })();
    }
})();