🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

解除禁止复制、禁止粘贴

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

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

You will need to install an extension such as Tampermonkey to install this script.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name        解除禁止复制、禁止粘贴
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  超星学习通考试解除禁止复制、禁止粘贴
// @author       aa
// @license MIT
// @include     *chaoxing.com/exam/*
// @include     *chaoxing.com/mooc2/exam/*
// @include     *mooc1.chaoxing.com/exam-ans/exam/*
// @include     *mooc1.chaoxing.com/exam-ans/exam/test/*
// @include     *mooc1.chaoxing.com/exam-ans/mooc2/exam/
// @include     *mooc1.chaoxing.com/exam-ans/mooc2/exam/preview?courseId=229081651&classId=64612512&start=3&cpi=200377496&examRelationId=2714034&examRelationAnswerId=78773427&newMooc=true&openc=9d6f9771587efb255aec1d5c2fc7b8f1&monitorStatus=0&monitorOp=-1&remainTimeParam=5817&relationAnswerLastUpdateTime=1670910158332&enc=1246b551f790f39265919071e3a73c85
// @grant        none
// ==/UserScript==
(function() {
    'use strict';
    $(function() {
         setTimeout(()=>{
            $("body").removeAttr("onselectstart");
            $("html").css("user-select", "unset");
            UE.EventBase.prototype.fireEvent = function() {
                return null
            };
        },
        1000);
        window.copyContentOld = function(event) {
            setTimeout(()=>{
                var range = document.createRange();
                var selection = window.getSelection();
                selection.removeAllRanges();
                range.selectNodeContents($(event.srcElement.parentNode).find("p")[0]);
                selection.addRange(range);
                document.execCommand('copy');
                selection.removeAllRanges();
                setTimeout(()=>{
                    tips.remove();
                },
                1000)
            },
            1000)
        }
        window.copyContentNew = function(event) {
            setTimeout(()=>{
                var range = document.createRange();
                var selection = window.getSelection();
                selection.removeAllRanges();
                range.selectNodeContents($(event.srcElement.nextSibling)[0]);
                selection.addRange(range);
                document.execCommand('copy');
                selection.removeAllRanges();
                insertAfter($(event.srcElement));
                setTimeout(()=>{
                    tips.remove();
                },1000)
            },1000)
        }
    })
})();