Earnlink Bypass

Automatically decrypt and redirect for earnlink.io

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Earnlink Bypass
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Automatically decrypt and redirect for earnlink.io
// @author       Minoa
// @license MIT
// @match        https://www.earnlink.io/*
// @require      https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to get URL parameters
    function getUrlParam(name) {
        const results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
        return results ? results[1] : null;
    }

    // AES crypto object
    var aesCrypto = {};
    !function(t) {
        "use strict";
        t.formatter = {
            prefix: "",
            stringify: function(t) {
                var r = this.prefix;
                return r += t.salt.toString(),
                r += t.ciphertext.toString();
            },
            parse: function(t) {
                var r = CryptoJS.lib.CipherParams.create({})
                  , e = this.prefix.length;
                return 0 !== t.indexOf(this.prefix) ? r : (r.ciphertext = CryptoJS.enc.Hex.parse(t.substring(16 + e)),
                r.salt = CryptoJS.enc.Hex.parse(t.substring(e, 16 + e)),
                r);
            }
        },
        t.encrypt = function(r, e) {
            try {
                return CryptoJS.AES.encrypt(r, e, {
                    format: t.formatter
                }).toString();
            } catch (n) {
                return "";
            }
        }
        ,
        t.decrypt = function(r, e) {
            try {
                var n = CryptoJS.AES.decrypt(r, e, {
                    format: t.formatter
                });
                return n.toString(CryptoJS.enc.Utf8);
            } catch (i) {
                return "";
            }
        }
    }(aesCrypto);

    // Get the encrypted parameter from the URL
    var encryptedParam = getUrlParam('o');
    if (encryptedParam) {
        // Decrypt the parameter
        var realUrl = aesCrypto.decrypt(convertstr(encryptedParam), convertstr('root'));
        // Redirect to the decrypted URL
        window.location.href = realUrl;
    }

    // Helper function to convert a string (example implementation, adapt as needed)
    function convertstr(str) {
        // Implement your conversion logic here if needed
        return str;
    }
})();