您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Simple Script to Disable right-click blockers on Most websites With Simple Protection
// ==UserScript== // @name Disable Right-Click Blocker Everywhere // @version 0.2 // @description Simple Script to Disable right-click blockers on Most websites With Simple Protection // @author Elfhuo, ChatGPT // @match *://*/* // @grant none // @namespace https://greasyfork.org/users/1293519 // ==/UserScript== (function() { 'use strict'; function checkRightClickBlocker() { if (window.oncontextmenu !== null) { window.oncontextmenu = null; } } checkRightClickBlocker(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { checkRightClickBlocker(); }); }); observer.observe(document.body, { childList: true, subtree: true }); })();