// ==UserScript== // @name 学习通多端使用 // @namespace toycon // @version 1.0 // @description 由 unrival 的【超星学习通小助手】更改而来,对于我个人来说,只需要用到多端使用功能,所以进行了精简。 // @author toycon // @run-at document-end // @storageName unrivalxxt // @match *://*.chaoxing.com/* // @match *://*.edu.cn/* // @match *://*.nbdlib.cn/* // @match *://*.hnsyu.net/* // @match *://*.ac.cn/* // @icon http://pan-yz.chaoxing.com/favicon.ico // @grant unsafeWindow // @grant GM_xmlhttpRequest // @grant GM_setValue // @grant GM_getValue // @grant GM_addValueChangeListener // @grant GM_info // @connect mooc1-1.chaoxing.com // @connect mooc1.chaoxing.com // @connect mooc1-2.chaoxing.com // @connect passport2-api.chaoxing.com // @connect 117.72.91.182 // @connect cx.icodef.com // @license GPL-3.0-or-later // @original-script https://scriptcat.org/script-show-page/878/ // @original-author unrival // @original-license GPL-3.0-or-later // ==/UserScript== (() => { var disableMonitor = 1; var getQueryVariable = (variable) => { let q = _l.search.substring(1), v = q.split("&"), r = false; for (let i = 0, l = v.length; i < l; i++) { let p = v[i].split("="); p[0] == variable && (r = p[1]); } return r; }, _w = unsafeWindow, _l = _w.location; _w.confirm = (msg) => { return true; }; setInterval(function () { _w.confirm = (msg) => { return true; }; }, 2000); if (disableMonitor == 1) { _w.appendChild = _w.Element.prototype.appendChild; _w.Element.prototype.appendChild = function () { try { if (arguments[0].src.indexOf("detect.chaoxing.com") > 0) { return; } } catch (e) {} _w.appendChild.apply(this, arguments); }; } _w.jump = false; })();