// ==UserScript== // @name 清除雨课堂做题痕迹 // @namespace http://tampermonkey.net/ // @version 3.1.2.RELEASE // @description 清除雨课堂试卷做题痕迹(仅UI变更,不涉及雨课堂后台数据),便于复习。支持黑暗模式、日光模式(需更新到V3.0.0.RELEASE及以上版本)。支持吃菇子的“手气不错”模式(需更新到V3.1.0.RELEASE及以上版本) // @author 冰镇杨梅瑞纳冰YYDS // @match https://examination.xuetangx.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=xuetangx.com // @grant none // @license DONT FUCKING CARE // @downloadURL none // ==/UserScript== (function() { 'use strict'; var checkDiv = document.createElement("div"); var rightAnswer; var button; var isClicked = 0; checkDiv.setAttribute("id","test"); document.body.appendChild(checkDiv); var testBlock = document.getElementById("test"); testBlock.style.height="auto"; testBlock.style.width="auto"; testBlock.style.position="fixed"; testBlock.style.top=0; testBlock.style.right=0; testBlock.style.zindex=1000; testBlock.innerHTML+='


' // Your code here... window.Night = function(){ var mainbackground = document.getElementsByClassName("exam-main"); mainbackground[0].style.backgroundColor="black"; mainbackground[0].style.backgroundColor="black"; mainbackground[0].style.transitionDuration="1s"; mainbackground = document.getElementsByClassName("header-content"); mainbackground[0].style.backgroundColor="black"; mainbackground[0].style.transitionDuration="1s"; mainbackground = document.getElementsByClassName("exam-aside"); mainbackground[0].style.backgroundColor="black"; mainbackground[0].style.transitionDuration="1s"; mainbackground = document.getElementsByClassName("exam-main--body"); mainbackground[0].style.backgroundColor="#0c0d0d"; mainbackground[0].style.color="#d4d4d4"; mainbackground[0].style.transitionDuration="1s"; mainbackground = document.getElementsByClassName("item-footer"); for(let i=0;i1){ for(let v=0;v

显示答案

'; } } var myTextAnswer = document.getElementsByClassName("subject-answer"); for(let i=0;i