ADlink Bypass by : SAMRAT

Bypass Adlink

当前为 2024-09-21 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         ADlink Bypass by : SAMRAT
// @homepageURL  https://discord.gg/HwfEf224h
// @namespace    fluxus_bypass
// @description  Bypass Adlink
// @author       SAMRAT
// @match        *://*/*
// @license      SAMRAT
// @icon         https://cdn.discordapp.com/attachments/1270008634180370452/1284110158175146005/458088204_2297085623974752_1364441149326360095_n.jpg?ex=66e57047&is=66e41ec7&hm=c4c687d4ec4eae8f911eb2ef41497b29154f9c87f02112d289b8939f870cd58d&
// @grant        GM_xmlhttpRequest
// @run-at       document-start
// @version      0.0.2
// ==/UserScript==
 
(function() {
    'use strict';

    // Fetch the current page URL
    const currentUrl = window.location.href;

    // API URLs
    const apiUrls = [
        `https://api.bypass.vip/bypass?url=${encodeURIComponent(currentUrl)}`,
        `https://dlr.kys.gay/api/free/bypass?url=${encodeURIComponent(currentUrl)}`
    ];

    // Function to handle API response
    function handleApiResponse(response) {
        if (response.status === 200) {
            const jsonResponse = JSON.parse(response.responseText);
            if (jsonResponse.status === "success" && jsonResponse.result) {
                const redirectUrl = jsonResponse.result;

                // Check if the redirect URL is valid
                if (redirectUrl.startsWith("http://") || redirectUrl.startsWith("https://")) {
                    // Show success banner
                    showSuccessBanner(redirectUrl);

                    // Auto-redirect to the bypassed URL after 3 seconds
                    setTimeout(() => {
                        window.location.replace(redirectUrl);
                    }, 3000);
                }
            }
        }
    }

    // Create and show a success banner
    function showSuccessBanner(redirectUrl) {
        const banner = document.createElement('div');
        banner.style.position = 'fixed';
        banner.style.top = '0';
        banner.style.left = '0';
        banner.style.width = '100%';
        banner.style.backgroundColor = '#4CAF50';
        banner.style.color = 'white';
        banner.style.padding = '10px';
        banner.style.fontSize = '18px';
        banner.style.zIndex = '10000';
        banner.style.textAlign = 'center';
        banner.style.fontFamily = 'Arial, sans-serif';
        banner.innerHTML = `Success! Full bypass achieved. Redirecting to: <a href="${redirectUrl}" style="color: yellow; text-decoration: underline;">${redirectUrl}</a>`;
        document.body.appendChild(banner);
    }

    // Send parallel requests to both APIs and process the fastest response
    apiUrls.forEach(apiUrl => {
        GM_xmlhttpRequest({
            method: "GET",
            url: apiUrl,
            onload: handleApiResponse,
            onerror: function() {
                console.error("An error occurred during the API request to " + apiUrl);
            }
        });
    });
})();