Get True link

Script to baypass most short link!! this script to auto decode short link when you got redirect link. save your time, save your money. any request / error put it in feedback

当前为 2019-11-29 提交的版本,查看 最新版本

// ==UserScript==
// @name         Get True link
// @namespace    https://github.com/MeGaNeKoS/skip-short-link
// @version      1.4.3
// @description  Script to baypass most short link!! this script to auto decode short link when you got redirect link. save your time, save your money. any request / error put it in feedback
// @description  you can try on this web https://www.juragan-anime.net/series/boruto-naruto-next-generations-sub-indo/ https://anoboy.video/2019/11/boruto-episode-133/

// @author       MeGaNeKo(めがねこ)
// @match        *://*/*
// @exclude      *//*uploaded.net/*
// @exclude      *//*mail.google.com/*
// @exclude      *//*okedrive.com/*
// @grant        none
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// ==/UserScript==

var trigger = 0;
var myVar = setInterval(myTimer, 1000);
function myTimer() {
    trigger++;
    console.log(trigger);
    decode();
    if(trigger > 60){clearInterval(myVar);}
}
function decode(){
    $('a').each(function(){
        var aaa = this.href;
        var aab = decodeURIComponent(aaa.toString());
        var cp1 = aab.includes('aHR0');
        var cp2 = aab.includes('http');
        if (cp1 == true){
            try {
                var bba = aab.split("aHR0")[0];
                var bbb = aab.split(bba)[1];
                var bbc = bbb.split(/[\W_]+/g)[0];
                var bbd = atob(bbc);
                var bbe = bbd.replace(/([_=:;&\-\/\.\?\d\w]+(\d|\w))/g,'');
                var bbf = bbd.replace(bbe,'');
                $(this).attr("href", bbf);
            }catch(err) {
                $(this).attr("href", aaa);
            }
        }else if (cp2 == true){
            var cca = aab.split("http")[2];
            if (aab.includes(cca) == true){
                try {
                    var ccb = aab.split("http")[1];
                    var ccc = aab.split(ccb)[1];
                    if (aab.includes("google.com") == true){
                        $(this).attr("href", ccc);
                    }else{
                        var ccd = ccc.split(/[^A-Za-z0-9_.:/\\-]/g)[0];
                        $(this).attr("href", ccd);
                    }
                }catch(err) {
                    $(this).attr("href", aaa);
                }
            }
        }
    });
}

QingJ © 2025

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