azahet / Instant-hack.io No redirect Protection

// ==UserScript==
// @icon         https://i.imgur.com/7ogHbT8.png
// @name         Instant-hack.io No redirect Protection
// @namespace    https://instant-hack.io/*
// @version      0.1
// @description  Un userscript qui permet de ne pas passer par le proxy de redirection de Instant-hack.io
// @author       Oxide
// @match        https://instant-hack.io/*
// @grant        none
// @updateURL https://openuserjs.org/meta/azahet/Instant-hack.io_No_redirect_Protection.meta.js
// ==/UserScript==

(function() {
    'use strict';
    $(document).ready(function() {
        $(".externalLink").each(function() {
            $(this).attr("href", decode($(this).attr("data-proxy-href")).split("?")[1].split("&")[0].split("=")[1]);
        });
    });

    function decode(encoded) {
        return decodeURIComponent(encoded.replace(/\+/g, " "));
    }
})();