您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script prevents redirection to the verification page on Douban. | 防止豆瓣跳转到手机号码验证页。 | 防止豆瓣跳轉到手機號碼驗證頁。
// ==UserScript== // @name Douban Stop Verification Page Redirect // @namespace https://github.com/fixicelo/userscripts // @version 1.0.0 // @description This script prevents redirection to the verification page on Douban. | 防止豆瓣跳转到手机号码验证页。 | 防止豆瓣跳轉到手機號碼驗證頁。 // @author fixicelo // @match *://*.douban.com/* // @grant none // @run-at document-start // ==/UserScript== (function () { "use strict"; // Override `window._USER_ABNORMAL` Object.defineProperty(window, "_USER_ABNORMAL", { value: null, }); // Block the script that triggers abnormal account verification const BLOCKED_SCRIPT = "abnormal_account.js"; const observer = new MutationObserver((mutations) => { for (const { addedNodes } of mutations) { for (const node of addedNodes) { if ( node.nodeType === Node.ELEMENT_NODE && node.tagName === "SCRIPT" && node.src.includes(BLOCKED_SCRIPT) ) { console.debug("Bypassed script:", node.src); node.remove(); observer.disconnect(); return; } }; }; }); observer.observe(document.documentElement, { childList: true, subtree: true, }); })();