神秘代码,功能自行探索。
使用violentmonkey,在设置里勾选
同步 page 模式
使用tampermonkey,在设置里 Content Script API 选择
UserScripts API Dynamic
// ==UserScript==
// @name Mysterious Code
// @namespace Yater
// @match https://linux.do/*
// @grant unsafeWindow
// @version 0.5
// @author yater
// @run-at document-start
// @description Mysterious Code
// ==/UserScript==
(function (){
new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.type === "childList") {
if (mutation.target.nodeName !== "HEAD") return;
mutation.addedNodes.forEach((node) => {
if (node.nodeName !== "SCRIPT") return;
if (node.hasAttribute("defer") && node.hasAttribute("nonce") && node.getAttribute("data-theme-id") === "1") node.removeAttribute("src");
if (node.hasAttribute("disable-devtool-auto") && node.hasAttribute("nonce") && node.getAttribute("disable-menu") === "false") node.removeAttribute("src");
});
}
});
}).observe(document, { childList: true, subtree: true });
if (!unsafeWindow.onloadTurnstileCallback) {
unsafeWindow.onloadTurnstileCallback = () => {
unsafeWindow?.turnstile?.render(atob('I2Zvb3Rub3RlLXRvb2x0aXA='), { callback:()=>{}, sitekey: atob('MHg0QUFBQUFBQWMyQlFqUEVtczl0S2xN') });
}
}
})();