Greasy Fork 支持简体中文。

Disable Right-Click Blocker Everywhere

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 });
})();