Bypass Modiji Team SPY (Chrome Only)

Automatically bypass Modiji URL links (Optimized for Chrome)

目前為 2024-12-28 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Bypass Modiji Team SPY (Chrome Only)
// @namespace    CHROME Scripts
// @version      1.1.2
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_addStyle
// @grant        GM_xmlhttpRequest
// @grant        window.onurlchange
// @grant        GM_registerMenuCommand
// @icon         https://lh3.googleusercontent.com/-HPcn7AqepNg/AAAAAAAAAAI/AAAAAAAAAAA/ALKGfknb1BkQiq-8_KUVOYcNAJ4swKivDQ/photo.jp
// @description  Automatically bypass Modiji URL links (Optimized for Chrome)
// @homepageURL  https://t.me/team_spy_pro
// @supportURL   https://t.me/team_spy_pro
// @include      /^https:\/\/[^\/]+\/safe\.php\?link=https:\/\/modijiurl\.com\/[^\/]+\/\?mid=.*$/
// @include      /^https:\/\/modijiurl\.com\/[^\/]+\/\?mid=.*$/
// @run-at       document-start
// @noframes
// ==/UserScript==

(function () {
    'use strict';

    const url = window.location.href;

    // Function to redirect to a given URL
    const redirect = (finalUrl) => window.location.assign(finalUrl);

    // Check if the current browser is Chrome
    const browserIsChrome = () => /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);

    // Main logic
    if (/^https:\/\/[^\/]+\/safe\.php\?link=https:\/\/modijiurl\.com\/[^\/]+\/\?mid=.*$/.test(url) && browserIsChrome()) {
        // Redirect to the decoded link
        redirect(url.split('?link=')[1]);
    } else if (/^https:\/\/modijiurl\.com\/[^\/]+\/\?mid=.*$/.test(url)) {
        // Redirect if #getLinkButton is not disabled
        const intervalId = setInterval(() => {
            const linkButton = document.querySelector('#getLinkButton:not(.disabled)');
            if (linkButton && !linkButton.href.includes('/undefined')) {
                clearInterval(intervalId);
                setTimeout(() => redirect(linkButton.href), 500);
            }
        }, 500);
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址