您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
合工大考试启用复制
当前为
// ==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;', '*'); } })();