Bypass some spanish link shorteners

Bypass some shorteners

目前为 2023-03-24 提交的版本。查看 最新版本

// ==UserScript==
// @name         Bypass some spanish link shorteners
// @version      1.3
// @description  Bypass some shorteners
// @author       Rust1667
// @match        https://url2.acortalinks.net/#*
// @match        https://pedrangas.adfly.pro/#*
// @match        https://down.acortaz.eu/#*
// @run-at       document-start
// @namespace https://gf.qytechs.cn/users/980489
// ==/UserScript==

function base64Decode(input) {
    return atob(input);
}

function tripleBase64Decode(encodedURL) {
    let decodedOnce = base64Decode(encodedURL);
    let decodedTwice = base64Decode(decodedOnce);
    let finalDecodedURL = base64Decode(decodedTwice);
    return finalDecodedURL;
}

function base64DecodesUntilItGetsALink(str) {
  let decodedStr = base64Decode(str);
  if (decodedStr.startsWith('http')) {
    return decodedStr;
  } else {
    return base64DecodesUntilItGetsALink(decodedStr);
  }
}

function getDecodedURL() {
  var currentURL = window.location.href;
  if ( currentURL.match("url2.acortalinks.net/#") != null) {
    var encodedURL = currentURL.replace('https://url2.acortalinks.net/#', '');
    var decodedURL = base64DecodesUntilItGetsALink(encodedURL);
  }
  if ( currentURL.match("pedrangas.adfly.pro/#") != null) {
    var encodedURL = currentURL.replace('https://pedrangas.adfly.pro/#', '');
    var decodedURL = tripleBase64Decode(encodedURL);
  }
  if ( currentURL.match("down.acortaz.eu/#") != null) {
    var encodedURL = currentURL.replace('https://down.acortaz.eu/#', '');
    var decodedURL = base64Decode(encodedURL);
  }
  return decodedURL
}

window.location.replace( getDecodedURL() );

QingJ © 2025

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