Greasy Fork is available in English.
合工大考试启用复制
当前为
// ==UserScript==
// @name 合工大启用复制
// @namespace https://wyq.icu/
// @version 0.0.1
// @description 合工大考试启用复制
// @author wangyuqi
// @match *://learning.wencaischool.net/openlearning/exam/portal/exam.jsp?exam_id=*&type=work&content_id=*&type=work&is_make_up=undefined
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
// Your code here...
var iframe = document.getElementById('cboxIframe'); // 替换为实际的iframe ID
if (iframe) {
// 在iframe中执行 JavaScript 代码
var iframeWindow = iframe.contentWindow;
iframeWindow.postMessage('document.onkeydown = null;', '*');
iframeWindow.postMessage('document.onselectstart = null;', '*');
iframeWindow.postMessage('document.oncopy = null;', '*');
iframeWindow.postMessage('document.oncut = null;', '*');
iframeWindow.postMessage('document.onpaste = null;', '*');
iframeWindow.postMessage('document.getElementById("tblDataList").onselectstart = null;', '*');
}
})();