NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name ChaoXingAllowPaste // @namespace https://openuserjs.org/user/mikecoding // @version 0.3 // @description 允许泛雅超星学习通考试粘贴 // @author mikecoding // @match *://*.chaoxing.com/exam/test/reVersionTestStartNew* // @copyright 2020, mikecoding (https://openuserjs.org/users/mikecoding) // @grant unsafeWindow // @license MIT // ==/UserScript== (function () { 'use strict'; unsafeWindow.allPaste = 1; unsafeWindow.allowPaste = 1; window.setTimeout(function () { if (document.getElementsByTagName("textarea").length) { for (var i of document.getElementsByTagName("textarea")) UE.getEditor(i.id, { 'pasteplain': true }).__allListeners.beforepaste.splice(0, 1) } }, 100); })();