// ==UserScript== // @name cqcet_eucaly // @namespace http://tampermonkey.net/ // @version 0.2 // @description cqcet优化使用脚本 // @author eucaly // @include *://*.cqcet.edu.cn/* // @grant unsafeWindow // @grant GM_getValue // @grant GM_setValue // @grant GM_xmlhttpRequest // @license AGPL-3.0 //脚本的授权许可信息 // @icon http://120.79.93.22:81/?explorer/share/fileDownload&shareID=7k9fJPmA&path=%7BshareItemLink%3A7k9fJPmA%7D%2F&s=agTHI //脚本的图标(显示在脚本列表里) // @downloadURL https://update.greasyfork.icu/scripts/436045/cqcet_eucaly.user.js // @updateURL https://update.greasyfork.icu/scripts/436045/cqcet_eucaly.meta.js // ==/UserScript== (() => { 'use strict'; let _self = unsafeWindow; function skipPg() {//跳过登录防诈骗 function removePg() { if (document.querySelector('.layui-layer-page')) { console.log(_self); _self.layer.close(1); _self.clearInterval(removeInterval); _self.layer.msg('跳过成功'); } }; var removeInterval = _self.setInterval(removePg, 200); } async function jp() {//教评 let isDo = false; function getYearAndWeek() { GM_xmlhttpRequest({ method: "get", url: 'http://ossc.cqcet.edu.cn/xg/teaching/student/xskb', onload: function (res) { if (res.status === 200) { let xnxq = /