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

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

  1. // ==UserScript==
  2. // @name 超星学习通考试解除禁止复制、禁止粘贴最新版
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description 🔥超星学习通考试解除禁止复制、禁止粘贴🔥
  6. // @author CHENL
  7. // @include *chaoxing.com/exam/*
  8. // @include *chaoxing.com/mooc2/exam/*
  9. // @include *mooc1.chaoxing.com/exam-ans/exam/*
  10. // @include *mooc1.chaoxing.com/exam-ans/exam/test/*
  11. // @include *mooc1.chaoxing.com/exam-ans/mooc2/exam/
  12. // @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
  13. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  14. // @grant none
  15. // ==/UserScript==
  16. (function() {
  17. 'use strict';
  18. $(function() {
  19. setTimeout(()=>{
  20. $("body").removeAttr("onselectstart");
  21. $("html").css("user-select", "unset");
  22. UE.EventBase.prototype.fireEvent = function() {
  23. return null
  24. };
  25. },
  26. 1000);
  27. if(window.location.href.includes("newMooc=true")){
  28. $("<div style='background: #86b430;display:inline;border: solid 1px #6f8e30;color: #FFF;padding: 2px 10px;cursor: pointer;' onclick='copyContentNew(event)'>复制题目</div>").insertAfter($(".colorShallow"))
  29. }else{
  30. $("<div style='background: #86b430;display:inline;border: solid 1px #6f8e30;color: #FFF;padding: 2px 10px;cursor: pointer;' onclick='copyContentOld(event)'>复制题目</div>").insertAfter($(".Cy_TItle").find("p"))
  31. }
  32. window.copyContentOld = function(event) {
  33. setTimeout(()=>{
  34. var range = document.createRange();
  35. var selection = window.getSelection();
  36. selection.removeAllRanges();
  37. range.selectNodeContents($(event.srcElement.parentNode).find("p")[0]);
  38. selection.addRange(range);
  39. document.execCommand('copy');
  40. selection.removeAllRanges();
  41. let tips = $("<span style='color:red'>复制成功</span>").appendTo($(event.srcElement.parentNode));
  42. setTimeout(()=>{
  43. tips.remove();
  44. },
  45. 1000)
  46. },
  47. 1000)
  48. }
  49. window.copyContentNew = function(event) {
  50. setTimeout(()=>{
  51. var range = document.createRange();
  52. var selection = window.getSelection();
  53. selection.removeAllRanges();
  54. range.selectNodeContents($(event.srcElement.nextSibling)[0]);
  55. selection.addRange(range);
  56. document.execCommand('copy');
  57. selection.removeAllRanges();
  58. let tips = $("<span style='color:red'>复制成功</span>").insertAfter($(event.srcElement));
  59. setTimeout(()=>{
  60. tips.remove();
  61. },1000)
  62. },1000)
  63. }
  64. })
  65. })();

QingJ © 2025

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