Greasy Fork is available in English.
alpharede
当前为
// ==UserScript==
// @name alpharede - Bypass
// @namespace alpharede
// @version 2.2
// @description alpharede
// @author Nick (Nickupdates@telegram)
// @match *://*/*
// @grant none
// @license MIT
// @run-at document-start
// ==/UserScript==
(function () {
'use strict';
function extractDestination(text) {
try {
if (text.includes("destination")) {
const clean = text.replace(/\\+"/g, '"');
const match = clean.match(/destination["']?\s*:\s*["']([^"']+)["']/);
if (match && match[1]) {
return match[1];
}
}
} catch (e) {}
return null;
}
function run() {
const scripts = document.querySelectorAll("script");
for (let i = 0; i < scripts.length; i++) {
const text = scripts[i].textContent || "";
if (!text || text.length < 50) continue;
const url = extractDestination(text);
if (url) {
window.location.replace(url);
return true;
}
}
return false;
}
if (run()) return;
const observer = new MutationObserver(() => {
if (run()) observer.disconnect();
});
observer.observe(document.documentElement, {
childList: true,
subtree: true
});
setTimeout(() => observer.disconnect(), 10000);
})();