Greasy Fork

Ethos MBoost Bypasser

Bypasses MBoost links using the Ethos API

目前为 2024-03-23 提交的版本。查看 最新版本

// ==UserScript==
// @name         Ethos MBoost Bypasser
// @namespace    http://tampermonkey.net
// @version      1.0
// @description  Bypasses MBoost links using the Ethos API
// @author       Shehajeez
// @match        https://mboost.me/a/*
// @grant        GM_xmlhttpRequest
// ==/UserScript==

(function() {
    'use strict';

    var currenturl = window.location.href;

    GM_xmlhttpRequest({
        method: "GET",
        url: "https://ethos-testing.vercel.app/api/mboost/bypass?link=" + currenturl,
        onload: function(response) {
            var data = JSON.parse(response.responseText);
            if (data.success && data.bypassed_link) {
                window.location.href = data.bypassed_link;
            } else {
                console.error("failed to get bypassed link.");
            }
        }
    });
})();