coca 解除不能选中(复制)

coca 解除不能选中(复制)1

// ==UserScript==
// @name         coca 解除不能选中(复制)
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  coca 解除不能选中(复制)1
// @author       You
// @match        https://www.english-corpora.org/coca/
// @icon         https://www.google.com/s2/favicons?domain=english-corpora.org
// @grant        none
// @license      GPL-3.0 License
// ==/UserScript==

function disen_sel() {
    debugger
    document.getElementsByName("x1")[0].contentWindow.document.onselectstart = new Function("return true")
    document.getElementsByName("x2")[0].contentWindow.document.onselectstart = new Function("return true")
    document.getElementsByName("x3")[0].contentWindow.document.onselectstart = new Function("return true")
    document.getElementsByName("x4")[0].contentWindow.document.onselectstart = new Function("return true")
}

(function() {
    'use strict';
    loader =()=>{return false;}
    setInterval(disen_sel, 1000);
    //Your code here ...
})();