学习通考试移除背景水印

通过删除水印元素的方式,移除学习通考试时个人信息(姓名、学号/工号)水印。请注意:本脚本仅供学习交流,严紧通过本脚本实行任何违反考试纪律的行为,脚本请于下载后的24小时内删除。

  1. // ==UserScript==
  2. // @name 学习通考试移除背景水印
  3. // @name:en SuperStar: Remove exam identifier mask
  4. // @namespace https://github.com/lcandy2
  5. // @version 1.2
  6. // @license MIT
  7. // @description 通过删除水印元素的方式,移除学习通考试时个人信息(姓名、学号/工号)水印。请注意:本脚本仅供学习交流,严紧通过本脚本实行任何违反考试纪律的行为,脚本请于下载后的24小时内删除。
  8. // @description:en Remove exam identifier mask (including name and ID) of the SuperStar exam page. NOTICE: This script is for learning and communication purposes only. You will NOT do any academic misconduct using this script. Please delete the script within 24 hours after downloading.
  9. // @author Lcandy
  10. // @homepage https://github.com/lcandy2/user.js
  11. // @match *://*.chaoxing.com/exam*
  12. // @run-at document-end
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. function removeMask() {
  18. let elements = document.getElementsByClassName('mask_div');
  19. for (let i = 0; i < elements.length; i++) {
  20. elements[i].style.display = 'none';
  21. }
  22. }
  23.  
  24. // remove mask after page fully loaded
  25. if (document.readyState === 'complete') {
  26. removeMask();
  27. } else {
  28. document.addEventListener('readystatechange', () => {
  29. if (document.readyState === 'complete') {
  30. removeMask();
  31. }
  32. });
  33. }
  34. })();

QingJ © 2025

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