拼题A(Pintia)反制防止粘贴

随便瞎写的, 好好学习

// ==UserScript==
// @name         拼题A(Pintia)反制防止粘贴
// @namespace    http://tampermonkey.net/
// @homepageURL  https://github.com/uf-hy/Pintia_ForceAllowPaste
// @version      1.01
// @description  随便瞎写的, 好好学习
// @author       uhfy
// @match        https://pintia.cn/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=https://pintia.cn
// @grant        none
// @license MIT
// ==/UserScript==

(function () {
    var _addEventListener = EventTarget.prototype.addEventListener;
    EventTarget.prototype.addEventListener = function (type, listener, useCapture) {
        if (type === "paste") return;//我tm直接防止粘贴事件监听器注册,桀桀
        _addEventListener.apply(this, arguments);
    }
})();