// ==UserScript== // @name 超星学习通考试解除禁止复制、禁止粘贴 // @namespace http://tampermonkey.net/ // @version 0.15 // @description 🔥超星学习通考试解除禁止复制、禁止粘贴🔥 // @author CHENL // @include https://*chaoxing.com/exam/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; $(function() { setTimeout(()=>{ UE.EventBase.prototype.fireEvent = function() { return null }; $("body").removeAttr("onselectstart"); $("html").css("user-select", "unset"); }, 1000); if(window.location.href.includes("newMooc=true")){ $("
复制题目
").insertAfter($(".colorShallow")) }else{ $("
复制题目
").insertAfter($(".Cy_TItle").find("p")) } window.copyContentOld = function() { setTimeout(()=>{ var range = document.createRange(); var selection = window.getSelection(); selection.removeAllRanges(); range.selectNodeContents($(".Cy_TItle").find("p")[0]); selection.addRange(range); document.execCommand('copy'); selection.removeAllRanges(); let tips = $("复制成功").appendTo($(".Cy_TItle").find("div[class='clearfix']")); setTimeout(()=>{ tips.remove(); }, 1000) }, 1000) } window.copyContentNew = function() { setTimeout(()=>{ var range = document.createRange(); var selection = window.getSelection(); selection.removeAllRanges(); range.selectNodeContents($(".mark_name").find("p")[0]); selection.addRange(range); document.execCommand('copy'); selection.removeAllRanges(); let tips = $("复制成功").appendTo($(".colorShallow")); setTimeout(()=>{ tips.remove(); },1000) },1000) } }) })();