超星学习通考试解除禁止复制、禁止粘贴

🔥超星学习通考试解除禁止复制、禁止粘贴🔥

目前為 2021-11-06 提交的版本,檢視 最新版本

// ==UserScript==
// @name        超星学习通考试解除禁止复制、禁止粘贴
// @namespace    http://tampermonkey.net/
// @version      0.13
// @description  🔥超星学习通考试解除禁止复制、禁止粘贴🔥
// @author       CHENL
// @include      https://*chaoxing.com/exam/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==
(function() {
    'use strict';
   setTimeout(()=>{
       UE.EventBase.prototype.fireEvent=function (){return null};
       $("body").removeAttr("onselectstart");
       $("html").css("user-select","unset");
   },2000)
    window.copyContent = function(){
    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=$("<span style='color:red'>复制成功</span>").appendTo($(".Cy_TItle").find("div[class='clearfix']"));
    setTimeout(()=>{
        tips.remove();
    },3000)
}
    $("<div style='background: #86b430;display:inline;border: solid 1px #6f8e30;color: #FFF;padding: 2px 10px;cursor: pointer;' onclick='copyContent()'>复制题目</div>").insertAfter($(".Cy_TItle").find("p"))
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址