Greasy Fork

Greasy Fork is available in English.

解除禁止复制和粘贴限制(全网页通用)

破解所有网站的禁止粘贴功能,没错,是所有网站,什么学习通什么pta啥的都统统破解!!使用方法:安装完毕后打开目标网页,就可以正常使用了。然后没了,有疑问或者反馈都可以发我邮箱啊:[email protected]

当前为 2024-11-05 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         解除禁止复制和粘贴限制(全网页通用)
// @namespace    http://jiangning_sama/pojie_cpoy.net/
// @version      6.66.7
// @description  破解所有网站的禁止粘贴功能,没错,是所有网站,什么学习通什么pta啥的都统统破解!!使用方法:安装完毕后打开目标网页,就可以正常使用了。然后没了,有疑问或者反馈都可以发我邮箱啊:[email protected]
// @author       江宁sama
// @match        *://*/*   // 匹配所有网站
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    setTimeout(() => {
        document.body.removeAttribute('onselectstart');
        document.body.style.userSelect = 'auto';
        document.documentElement.style.userSelect = 'auto';
        document.querySelectorAll('input, textarea').forEach((el) => {
            el.removeAttribute('onpaste');
            el.removeAttribute('oncopy');
            el.removeAttribute('oncut');
            el.onpaste = null;
            el.oncopy = null;
            el.oncut = null;
        });
        const eventTypes = ['copy', 'cut', 'paste', 'contextmenu', 'selectstart'];
        eventTypes.forEach((eventType) => {
            document.addEventListener(eventType, (e) => e.stopPropagation(), true);
        });

        console.log("已解除页面的禁止复制和粘贴限制");
    }, 1000);
})();