How To Disable wp-copyprotect

// ==UserScript==
// @name         Disable wp-copyprotect and Enable Text Selection
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Disable wp-copyprotect's copy protection features (right-click, mousedown, text selection)
// @author       ChatGPT
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Disable the disableSelection function
    window.disableSelection = function(target) {
        // Do nothing (disable it)
    };

    // Enable text selection
    document.body.style.userSelect = 'auto';

    // For Firefox
    document.body.style.MozUserSelect = 'auto';

    // For Opera
    document.body.onmousedown = null;

    // For IE
    document.body.onselectstart = null;

    // Disable the onmousedown event (disable click event)
    document.onmousedown = null;

    // Disable the oncontextmenu event (enable right-click menu)
    document.oncontextmenu = null;

    // Override the alert function to disable warning messages
    window.alert = function() {};

    console.log('wp-copyprotect features (text selection, right-click, mousedown) have been disabled.');
})();
Edit
Pub: 07 Mar 2025 22:25 UTC
Views: 0