desbloquea.me bypass

Bypass desbloquea.me shortlink

目前为 2024-01-10 提交的版本。查看 最新版本

// ==UserScript==
// @name         desbloquea.me bypass
// @version      1.0
// @description  Bypass desbloquea.me shortlink
// @author       Rust1667
// @match        https://desbloquea.me/s.php?i=*
// @run-at       document-start
// @namespace https://gf.qytechs.cn/users/980489
// ==/UserScript==


function base64DecodeNTimes(string, times) {
  let decodedString = string;
  for (let i = 0; i < times; i++) {
    decodedString = atob(decodedString);
  }
  return decodedString;
}

function caesar_Rot13AZ_Decipher(string) {
  const shift = 13
  let decipheredString = '';
  for (let i = 0; i < string.length; i++) {
    let charCode = string.charCodeAt(i);
    // if lowercase
    if (charCode >= 97 && charCode <= 122) {
      decipheredString += String.fromCharCode(((charCode - 97 - shift + 26) % 26) + 97);
    }
    // if uppercase
    else if (charCode >= 65 && charCode <= 90) {
      decipheredString += String.fromCharCode(((charCode - 65 - shift + 26) % 26) + 65);
    }
    // if not a letter
    else {
      decipheredString += string[i];
    }
  }
  return decipheredString;
}

function removeAfterPipe(inputString) {
  const indexOfPipe = inputString.indexOf('|');
  if (indexOfPipe !== -1) {
    return inputString.substring(0, indexOfPipe);
  }
  return inputString;
}

function getDecodedURL() {
  var currentURL = window.location.href;
  var encodedURL = currentURL.replace('https://desbloquea.me/s.php?i=', '');

  var decodedURL = base64DecodeNTimes(encodedURL, 5);
  decodedURL = caesar_Rot13AZ_Decipher(decodedURL);
  decodedURL = removeAfterPipe(decodedURL) //clean URL

  return decodedURL
}

window.location.replace( getDecodedURL() );

QingJ © 2025

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