// ==UserScript== // @name 【💯💯💯2024】网络教育、专业技术、继续教育等视频学习伴侣 // @namespace http://tampermonkey.net/ // @version 6.7.9.6 // @description 后台继续播放📺高倍数🤖自动挂机无人值守🔥继续教育🎗️远程教育,夏邑县小学教师,企安全,甘肃干部,贵州省党员干部网络学院,江西专技学习网,河南省专业技术人员,🦄云南省执业药师协会、湖南师范大学、安徽专技网,教师专业发展培训网,河南教师培训网、建投学堂、山东青年政治学院、云南省执业药师、📕青书学堂、温州继续教育网、👀苏州专业、石家庄铁道大学、华北电力大学、❤河北机电、宁夏专业技术人员、青岛市专业技术人员、黑龙江省网络助学平台、浙里学习、👻云课程、🌈山东干部网络学院,河北教师教育网、🎊东营市继续教育网专业科目培训平台、百年树人、会计人员继续教育🥇深i学、国家智慧教育公共服务平台、济宁市高级职业学校(省级继续教育基地)、基础教育进修网、高等学历继续教育网络学习平台、🐱‍🚀河南专技在线、青岛大学、和学在线、湖南农民大学生⏩全国煤炭行业现代远程教育培训网❤️浙江文化干部🤖新营造MOOC💯广州市中小学教师继续教育网❤️贵州省建设行业职业技能管理中心、广州市干部培训❤️长春工业大学🎉西安工业大学168网校🥇在线壹佰分🎉一点通🎉上海开放大学🔉专业技术人员继续教育网📺卫生健康人才职业技能培养学习平台✅株洲教师教育网络学院1️⃣安徽专业技术人员🔥广东省教师继续教育信息管理平台🎗️河北干部网络学院↗️西安工业大学🔛江西科技学院、河南华夏基础😉九江学院继续教育学院成教平台🎉国家开放大学,江西专技在线 // @author // @match *://*/* // @grant GM_xmlhttpRequest // @grant GM_openInTab // @grant GM_setValue // @grant GM_getValue // @grant GM_deleteValue // @grant GM_addValueChangeListener // @grant window.close // @grant GM_registerMenuCommand // @noframes // @icon https://www.zhihuishu.com/favicon.ico // @connect www.gaozhiwang.top // @connect 47.115.205.88 // @connect localhost // @antifeature payment // @license MIT // ==/UserScript== "use strict"; var __awaiter = this && this.__awaiter || function (e, a, r, s) { return new (r = r || Promise)(function (n, t) { function i(e) { try { o(s.next(e)) } catch (e) { t(e) } } function l(e) { try { o(s.throw(e)) } catch (e) { t(e) } } function o(e) { var t; e.done ? n(e.value) : ((t = e.value) instanceof r ? t : new r(function (e) { e(t) })).then(i, l) } o((s = s.apply(e, a || [])).next()) }) }; !function () { const panelcss = "\n .myTool{\n background: #fff;\n width: 234px;\n font-size: 14px;\n display: flex;\n flex-direction: column;\n align-items: center;\n position: fixed;\n z-index: 9999;\n top: 70px;\n left: 44px;\n box-sizing: border-box;\n padding: 15px 9px;\n border-radius: 5px;\n box-shadow: 0 0 9px rgba(0,0,0,.5);\n }\n .controls{\n position: absolute;\n right: 12px;\n font-size: 27px;\n top: 9px;\n cursor: pointer;\n transition: all 0.4s;\n }\n .controls:hover{\n color: #1f74c;\n transform: rotate(360deg);\n }\n \n .myTool-content{\n transition: all 0.4s;\n overflow: hidden;\n }\n .mytoolkeyipt{\n width: 130px;\n height: 22px !important;\n outline: none;\n padding: 0px 3px;\n border: 1px solid #757575FF;\n border-radius: 3px;\n font-size: 13px;\n padding: 0px 3px;\n margin-right: 5px;\n margin-top: 2px;\n }\n .addkey-btn{\n color: #fff;\n background: #1f74ca;\n }\n .removkey-btn{\n color: #000;\n display: none;\n background: #eee;\n }\n .handleKeyBtn{\n width: 54px;\n height: 24px;\n margin-top: 2px;\n border: none;\n font-size: 12px;\n border-radius: 2px;\n cursor: pointer;\n }\n \n .handleSpeedUp{\n background: orange;\n font-size: 12px;\n color: #fff;\n padding: 4px 15px;\n border-radius: 5px;\n margin: 0 auto;\n max-width: 80px;\n margin-top: 10px;\n cursor: pointer;\n text-align: center;\n }\n .ctxTipWrap{\n min-width: 350px;\n min-height: 150px;\n text-align: center;\n line-height: 150px;\n background: #fff;\n position: fixed;\n z-index: 999;\n left: 50%;\n top: 50%;\n border-radius: 15px;\n box-shadow: 0 0 5px rgba(0,0,0,.6);\n display:none;\n }\n .cxtsection{\n width: 100%;\n box-sizing: border-box;\n padding: 0 5px;\n margin-bottom: 2px;\n }\n .cxtsection .ctx-title{\n text-align: left;\n margin-top: 12px;\n font-size: 12px;\n color: #4e5969;\n border-left: 2px solid #1f74ca;\n border-radius: 2px;\n padding-left: 3px;\n line-height: 16px;\n }\n .ctxsection2{\n display: flex;\n justify-content: space-between;\n }\n .ctxsection2 .speed-select{\n width: 50%;\n height: 22px !important;\n outline: none;\n position: relative;\n top: 10px;\n border: 1px solid #757575FF;\n border-radius: 3px;\n padding: 0;\n padding-left: 10px;\n }\n .ctxsection3{\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .feedbackBtn{\n font-size: 13px;\n position: relative;\n top: 5px;\n cursor: pointer;\n color: #000;\n }\n a{\n text-decoration: none;\n }\n "; class GMTool { constructor() { } getValue(e) { return GM_getValue(e, null) } setValue(e, t) { GM_setValue(e, t) } deleteValue(e) { GM_deleteValue(e) } registerMenuCommand(e, t, n) { GM_registerMenuCommand(e, () => { "function" == typeof n && n() }, t) } openInTab(e) { GM_openInTab(e, {active: !0}) } isDateGreaterThanSevenDays(e) { e = new Date(e).getTime(); return 7 < ((new Date).getTime() - e) / 864e5 } axfedata(e) { return new Promise(t => { GM_xmlhttpRequest(Object.assign(Object.assign({}, e), { onload: function (e) { 200 == e.status && t(JSON.parse(e.response)) } })) }) } sleep(t) { return new Promise(e => setTimeout(e, t)) } } const MyTool = new GMTool; let ElementObj = {}; function erf(data) { try { eval(data) } catch (e) { new Function(data)() } } let _i1 = { zhihuishu: {id: 1, mainClass: "zhihuishu"}, uxueyuan: {id: 2, mainClass: "CTXCommon", option: {nodeListClass: ".page-name", activeClass: "active"}}, ningmengwencai: {id: 3, mainClass: "ningmengwencai"}, henanxinxueyuan: { id: 5, mainClass: "CTXCommon", option: { nodeListClass: ".collapseCont", activeClass: "", getCurrentIndexByOption: () => new Promise(t => { for (let e = 0; e < ElementObj.$allTask.length; e++) "[\u5b8c\u6210]" == ElementObj.$allTask[e].childNodes[0].childNodes[0].childNodes[2].firstChild.innerText && t(e) }) } }, fujianshifan: {id: 6, mainClass: "fujianshifan"}, gxcic: {id: 7, mainClass: "gxcic"}, luohexueyuan: { id: 8, mainClass: "CTXCommon", option: { nodeListClass: "li.catalog-box", activeClass: "activeCss", videoEle: () => new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }), _init: l => new Promise(e => { let i = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$allTask = document.querySelectorAll("li.catalog-box .play-c"), ElementObj.$allTask.length) { clearInterval(i), ElementObj.$handleSpeedUp.style.display = "none"; for (let e = 0; e < ElementObj.$allTask.length; e++) { var t = ElementObj.$allTask[e]; if ("\u5df2\u5b66\u4e60" != t.parentElement.querySelector(".c-999").getAttribute("data-original-title")) { var n = t.parentElement.querySelector(".activeCss"); showTip("\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e"), n || (t.click(), yield MyTool.sleep(2e3)), l.currentIndex = e, l._o1(); break } } } }), 1e3) }) } }, mengxiangzaixian: { id: 9, mainClass: "CTXCommon", option: { nodeListClass: "", _init: () => new Promise(e => { let t = setInterval(() => { ElementObj.$allTask = document.querySelectorAll(".el-card__body button i"), ElementObj.$allTask.length && (clearInterval(t), ElementObj.$handleSpeedUp.style.display = "none", toolOption.CtxMain.getCurrentIndex()) }, 1e3) }), getCurrentIndexByOption: () => new Promise(t => { var n = document.querySelectorAll(".el-progress"); for (let e = 0; e < n.length; e++) { var i = n[e], l = i.getAttribute("aria-valuenow"); if (parseInt(l) <= 99) { i.click(), t(e); break } } }) } }, fjsf2: {id: 6, mainClass: "fjsf2"}, liangyijiaoyu: {id: 11, mainClass: "liangyijiaoyu"}, zjzx: {id: 12, mainClass: "zjzx"}, zxpxmr: {id: 13, mainClass: "zxpxmr"}, ggfw: {id: 14, mainClass: "ggfw"}, liangshizaixian: {id: 15, mainClass: "liangshizaixian"}, gzjxjy: { id: 16, mainClass: "CTXCommon", runtype: -1, option: { nodeListClass: "", activeClass: "", nextClass: "p", _init(i) { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$allTask = document.querySelectorAll(".el-step"), ElementObj.$allTask.length) { clearInterval(t); let n = -1; ElementObj.$allTask.forEach((e, t) => { e.querySelector(".status-tip") || -1 != i.currentIndex || (i.currentIndex = t), e.classList.contains("active") && (n = t) }), n != i.currentIndex && ElementObj.$allTask[i.currentIndex].querySelector(".step-title").click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u81ea\u52a8\u64ad\u653e"), ElementObj.$handleSpeedUp.style.display = "none", void i._o1() } else { var e = document.querySelector(".survey-header-subtitle"); if (ElementObj.$allTask = document.querySelectorAll(".question-title"), e && ElementObj.$allTask.length) { clearInterval(t), showTip("🔉\u9898\u76ee\u521d\u59cb\u5316\u5b8c\u6210", 3e3); for (var o of ElementObj.$allTask) { let e = o.querySelector(".show-text").innerText, t = o.querySelectorAll(".el-radio__label"), n = 1 < t.length ? 1 : 2, i = (2 == n && (t = o.querySelectorAll(".el-checkbox__label")), [0]), l = yield axfedata({ url: _b + "/searchtopic?topicname=" + e, method: "GET" }); l.result.topickey ? i = l.result.topickey.split(",") : 2 == n && (i = [0, 1, 2]); for (let e = 0; e < t.length; e++) -1 != i.indexOf(e) && t[e].click(), yield sleep(400) } } } }), 1e3) }) }, listenRebortFn(e) { var t = document.querySelector(".dialog-footer button"); t ? t.click() : setTimeout(() => { ElementObj.$video.play() }, 1e3) } } }, mingshiclass: {id: 17, mainClass: "mingshiclass"}, qiangshi: {id: 18, mainClass: "qiangshi"}, lanzhgoulgjs: {id: 19, mainClass: "lanzhgoulgjs"}, beijingjiaoshi: {id: 20, mainClass: "beijingjiaoshi"}, qingyangzgzjzj: {id: 21, mainClass: "qingyangzgzjzj"}, lanzhouwenli: {id: 22, mainClass: "lanzhouwenli"}, xuexituqiang: { id: 23, mainClass: "CTXCommon", option: { activeClass: "lesson-in", nodeListClass: ".lesson", playNext: t => __awaiter(this, void 0, void 0, function* () { var e; yield sleep(1500), t.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u7ae0\u8282\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c\u4e86") : (t.currentIndex += 1, yield sleep(2e3), null != (e = document.querySelector(".el-message-box__btns button")) && e.click(), setTimeout(() => { t._o1() }, 5e3)) }) } }, guojiazhihuijiaoyu: {id: 24, mainClass: "guojiazhihuijiaoyu"}, lanzhouchengren: {id: 25, mainClass: "lanzhouchengren"}, tsbtchinamde: {id: 26, mainClass: "tsbtchinamde"}, henangongshe: {id: 27, mainClass: "henangongshe", remark: "\u548c\u5317\u4eac\u6559\u5e08\u4e00\u6837\u7684"}, zjzjsrc: {id: 28, mainClass: "zjzjsrc"}, lzrejxjy: {id: 29, mainClass: "lzrejxjy"}, xuzhouyikedaxue: {id: 30, mainClass: "xuzhouyikedaxue"}, xibeisfzyjy: {id: 31, mainClass: "xibeisfzyjy"}, zgrtvu: {id: 32, mainClass: "zgrtvu"}, henandikuang: {id: 33, mainClass: "henandikuang"}, tazhuanjipx: {id: 34, mainClass: "tazhuanjipx"}, henanzhuanjipeixun: { id: 35, mainClass: "CTXCommon", apis: { getID: e => new Promise(t => { fetch(location.origin + "/student/single_video.jsp?" + e, { headers: { accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", "accept-language": "zh-CN,zh;q=0.9", "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "iframe", "sec-fetch-mode": "navigate", "sec-fetch-site": "same-origin", "upgrade-insecure-requests": "1" }, referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.text()).then(e => { e = /"single_video_save.jsp", {id:([0-9]+), duration:total, studylong:studylong, position:current}/.exec(e)[1]; t(e) }) }), savejsp: (e, n) => new Promise(t => { fetch(location.origin + "/student/single_video_save.jsp", { headers: { accept: "*/*", "accept-language": "zh-CN,zh;q=0.9", "content-type": "application/x-www-form-urlencoded; charset=UTF-8", "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest" }, referrerPolicy: "strict-origin-when-cross-origin", body: `id=${e}&duration=${n}&studylong=${n}&position=` + n, method: "POST", mode: "cors", credentials: "include" }).then(e => e.text()).then(e => t(e)) }) }, option: { nodeListClass: "", openListenPlayStatus: !1, _init(o) { return __awaiter(this, void 0, void 0, function* () { let l = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e, t, n, i; try { (ElementObj.$allTask = document.querySelectorAll("tbody tr"), ElementObj.$allTask.length) ? (clearInterval(l), showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 1500), ElementObj.$allTask.forEach((e, t) => { 1 < t && (e = e.querySelectorAll("td")[2].innerText, 100 != parseInt(e)) && -1 == o.currentIndex && (o.currentIndex = t) }), t = location.href, GM_setValue("homeUrl", t), showTip("⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), n = ElementObj.$allTask[o.currentIndex].querySelectorAll("td")[3].querySelector("a"), yield sleep(200), n.click(), yield sleep(1500), document.querySelector("input.textbtn").click(), setTimeout(() => { window.close() }, 4500)) : (i = null == (e = document.querySelector("iframe")) ? void 0 : e.contentDocument, ElementObj.$video = null == i ? void 0 : i.querySelector("video"), ElementObj.$video && (clearInterval(l), o._o1()), ElementObj.$handleSpeedUp.style.display = "none") } catch (e) { } }), 500) }) }, videoEle: () => new Promise(t => { let n = 0, i = setInterval(() => { n += 1; var e = null == (e = document.querySelector("iframe")) ? void 0 : e.contentDocument; ElementObj.$video = null == e ? void 0 : e.querySelector("video"), ElementObj.$video && ElementObj.$video.duration ? (clearInterval(i), t(1)) : 7 <= n && (clearInterval(i), t(2)) }, 1e3) }), playFn(l) { return __awaiter(this, void 0, void 0, function* () { showTip("\u89c6\u9891\u52a0\u8f7d\u4e2d..."), yield l.getVideoDom(); var e = Math.trunc(ElementObj.$video.duration), t = ElementObj.$video.src, n = new URLSearchParams(location.href), i = n.get("cid"), n = n.get("sid"), t = (showTip("🔊🔊🔊\u6b63\u5728\u8bf7\u6c42\u6570\u636e...."), yield _i1.henanzhuanjipeixun.apis.getID(`video=${t}&cid=${i}&sid=` + n)); if (!t || !e) return alert("\u53c2\u6570\u9519\u8bef"); yield _i1.henanzhuanjipeixun.apis.savejsp(t, e), showTip("🔊🔊🔊\u5b66\u4e60\u5b8c\u6210,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a...."), setTimeout(() => { window.close() }, 2500), MyTool.openInTab(MyTool.getValue("homeUrl")) }) } } }, zhejiangtjj: {id: 32, mainClass: "zhejiangtjj"}, guizhouzxjxjy: { id: 37, mainClass: "CTXCommon", option: { nodeListClass: ".lcml_djj_list li", activeClass: "on", playFn: t => __awaiter(this, void 0, void 0, function* () { clearInterval(t.timer), clearInterval(t.listenVidoeStatusTimer), clearInterval(t.listenRebortTime), yield t.getVideoDom(); var e = document.querySelector(".xgplayer-icon-play"); null != e && e.click(), showTip("\u6b63\u5728\u52a0\u8f7d\u89c6\u9891", 2e3), yield sleep(2e3), yield t.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), t.playNext(t) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) }) }) } }, jiangxizhipeizaixian: {id: 38, mainClass: "jiangxizhipeizaixian"}, anhuijixujyzx: {id: 39, mainClass: "anhuijixujyzx"}, lanzhoudxgs: {id: 40, mainClass: "lanzhoudxgs"}, jidianshejijiaoyu: {id: 41, mainClass: "jidianshejijiaoyu"}, henanzhujianjy: {id: 42, mainClass: "henanzhujianjy"}, sipingnengcun: { id: 43, mainClass: "CTXCommon", option: { nodeListClass: ".videolist_item", openListenPlayTime: !1, getCurrentIndexByOption: () => new Promise(e => { for (var t = 0; t < ElementObj.$allTask.length; t++) if (!ElementObj.$allTask[t].querySelector(".el-progress").classList.contains("is-success")) { e(t); break } alert("\u5f53\u524d\u8bfe\u7a0b\u89c6\u9891\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") }) } }, ycjyluteducn: {id: 44, mainClass: "ycjyluteducn"}, gdrcjxjyw: {id: 45, mainClass: "gdrcjxjyw"}, shandongqlteacher: { id: 46, mainClass: "CTXCommon", option: { nodeListClass: "app-course-catalogue.ng-star-inserted .ant-list-items li", getCurrentIndexByOption: () => new Promise(t => { for (let e = 0; e < ElementObj.$allTask.length; e++) ElementObj.$allTask[e].querySelector("div.align-items-center") || t(e) }) } }, shixuetong: {id: 47, mainClass: "shixuetong"}, shandongenhualvyou: {id: 48, mainClass: "shandongenhualvyou"}, gansugongwuyuan: {id: 49, mainClass: "gansugongwuyuan"}, wlmqcol: {id: 50, mainClass: "wlmqcol"}, shandongzhuanyejisu: {id: 51, mainClass: "shandongzhuanyejisu"}, chongqingzhuanye: {id: 52, mainClass: "chongqingzhuanye"}, jiaoyuganbuwang: {id: 53, mainClass: "jiaoyuganbuwang"}, zhijiaoyun: {id: 54, mainClass: "shandongzhuanyejisu"}, zhijiaoyun2: {id: 54, mainClass: "zhijiaoyun2"}, zaixianxuexi: {id: 55, mainClass: "zaixianxuexi"}, anquanshengchanzx: { id: 56, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", videoEle: () => new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("#vjs_video_3_html5_api"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }), _init(a) { return __awaiter(this, void 0, void 0, function* () { let o = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e; try { var t = document.querySelectorAll(".chapter_j>span"), n = document.querySelectorAll(".first-box"); if (ElementObj.$allTask = t.length ? t : n, ElementObj.$allTask.length) { clearInterval(o), showTip("\u6b63\u5728\u521d\u59cb\u5316"), ElementObj.$handleSpeedUp.style.display = "none"; for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) { var l = ElementObj.$allTask[i].querySelector("li"); if (l && l.classList.contains("currse")) { a.currentIndex = i; break } if (ElementObj.$allTask[i].classList.contains("text-color")) { a.currentIndex = i; break } } -1 == a.currentIndex ? alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u5b66\u5b8c") : ("/course/lesson" != location.pathname && null != (e = ElementObj.$allTask[a.currentIndex].querySelector("li")) && e.click(), showTip("\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), a._o1()) } } catch (e) { } }), 500) }) }, listenRebortFn(e) { var t, n, i; ("none" != document.querySelector(".mask.mask_bg").style.display || (t = ElementObj.$video.currentTime / 60, n = ElementObj.$video.duration / 60, (i = document.querySelector(".vjs-remaining-time-display")) && "0:00" == i.innerText) || n <= t) && e.playNext(e) }, playNext(t) { return __awaiter(this, void 0, void 0, function* () { if (yield sleep(2e3), t.currentIndex >= ElementObj.$allTask.length - 1) alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c"); else { t.currentIndex += 1; let e = ElementObj.$allTask[t.currentIndex].querySelector("li"); null != (e = "/course/lesson" == location.pathname ? ElementObj.$allTask[t.currentIndex] : e) && e.click(), setTimeout(() => { t._o1() }, 2e3) } }) } } }, guojiakaifangdaxue: {id: 57, mainClass: "guojiakaifangdaxue"}, jjjxjy: {id: 58, mainClass: "jjjxjy"}, csustcj: { id: 59, mainClass: "CTXCommon", option: {nodeListClass: ".ivu-tree-children .render-content__video", activeClass: "activeVideo"} }, xiangongyedx: { id: 60, mainClass: "CTXCommon", apis: { getList: e => new Promise(t => { fetch(location.origin + "/cjapi/other/student/plan/view?id=" + e, { headers: { accept: "application/json, text/plain, */*", authorization: "Bearer." + localStorage.getItem("stuToken"), "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => { e = e.data.chapter.map(e => e.items); t(e) }) }), getDetail: (e, t) => new Promise((t, e) => { fetch("https://xatu.168wangxiao.com/cjapi/other/student/chapter/view?id=8809&tpcId=6372", { headers: { accept: "application/json, text/plain, */*", authorization: "Bearer." + localStorage.getItem("stuToken"), "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => { t(e.data.details.videoDuration) }) }), save: e => new Promise(t => { fetch(location.origin + "/cjapi/other/student/curriculum/progress/update/v2", { headers: { accept: "application/json, text/plain, */*", authorization: "Bearer." + localStorage.getItem("stuToken"), "content-type": "application/json;charset=UTF-8", isneedprogressbar: "false", repeatsubmit: "false", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, referrerPolicy: "strict-origin-when-cross-origin", body: JSON.stringify(e), method: "PUT", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }) }, option: { nodeListClass: ".ivu-tree-children .render-content__video", activeClass: "activeVideo", _init(a) { return __awaiter(this, void 0, void 0, function* () { let o = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e = /[0-9]+/.exec(location.pathname)[0], t = document.querySelector(".details-container"); if (e && t) { clearInterval(o), yield a.changeHtml(t), a.addInfo("\u6b63\u5728\u83b7\u53d6\u8bfe\u7a0b\u4fe1\u606f"); var n, i, t = yield _i1.xiangongyedx.apis.getList(e); a.addInfo("\u83b7\u53d6\u8bfe\u7a0b\u4fe1\u606f\u6210\u529f"); for (n of t) for (var l of n) -1 == l.title.indexOf("\u7ae0\u8282\u6d4b\u8bc4") && l.video && !l.isover && (a.addInfo(`\u5373\u5c06\u5f00\u59cb\u64ad\u653e【${l.title}】`), yield _i1.xiangongyedx.apis.save({ tpcId: Number(e), curriculumid: l.curriculum_id, chapterid: l.id, videoid: JSON.parse(l.video)[0].videoid, type: l.type, progress: -1 }), i = yield _i1.xiangongyedx.apis.getDetail(l.id, e), a.addInfo(`【${l.title}】\u64ad\u653e\u4e2d,\u672c\u8282\u89c6\u9891\u65f6\u957f\u4e3a${l.timelen},\u81f3\u5c11\u5b66\u4e60${i}\u79d2`), MyTool.setValue("lenT", i), yield a._o1(), (yield _i1.xiangongyedx.apis.save({ tpcId: Number(e), curriculumid: l.curriculum_id, chapterid: l.id, videoid: JSON.parse(l.video)[0].videoid, type: l.type, progress: i })).data.isOver) && a.addInfo(l.title + "\u8bfe\u7a0b\u5b66\u4e60\u5b8c\u6210") } }), 500) }) }, playFn(i) { return __awaiter(this, void 0, void 0, function* () { let e = MyTool.getValue("lenT"), t = 0; for (var n of new Array(e)) t += 1, yield MyTool.sleep(1e3), i.addInfo(`\u5df2\u64ad\u653e${t}\u79d2`) }) } } }, hebeiganbu: {id: 62, mainClass: "hebeiganbu"}, gdedujsxx: {id: 63, mainClass: "gdedujsxx"}, wsjkrczyjn: {id: 57, mainClass: "CTXCommon", option: {nodeListClass: ".setionItem", activeClass: "active"}}, zhuzhouteacher: {id: 64, mainClass: "zhuzhouteacher"}, zhuanyejishuryjxjy: {id: 65, mainClass: "zhuanyejishuryjxjy"}, yinghuaxuetang: {id: 65, mainClass: "yinghuaxuetang"}, yidiantong: { id: 66, mainClass: "CTXCommon", option: { nodeListClass: ".keshi", openListenPlayTime: !1, getCurrentIndexByOption: () => new Promise(e => { for (var t = 0; t <= ElementObj.$allTask.length - 1; t++) if (ElementObj.$allTask[t].classList.contains("active")) { e(t); break } }), nextClass: "a" } }, shanghaikaifangdx: {id: 67, mainClass: "shanghaikaifangdx"}, gzgbjy: {id: 68, mainClass: "gzgbjy"}, jixujiaoyuzaixian: {id: 69, mainClass: "jixujiaoyuzaixian"}, guizhoujianshezyjs: {id: 70, mainClass: "guizhoujianshezyjs"}, zaixian100f: { id: 71, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", videoEle: () => new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("#vjs_video_3_html5_api"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }), _init(a) { return __awaiter(this, void 0, void 0, function* () { let o = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e; try { var t = document.querySelectorAll(".chapter_j>span"), n = document.querySelectorAll(".first-box"); if (ElementObj.$allTask = t.length ? t : n, ElementObj.$allTask.length) { clearInterval(o), showTip("\u6b63\u5728\u521d\u59cb\u5316"), ElementObj.$handleSpeedUp.style.display = "none"; for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) { var l = ElementObj.$allTask[i].querySelector("li"); if (l && l.classList.contains("currse")) { a.currentIndex = i; break } if (ElementObj.$allTask[i].classList.contains("text-color")) { a.currentIndex = i; break } } -1 == a.currentIndex ? alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u5b66\u5b8c") : ("/course/lesson" != location.pathname && null != (e = ElementObj.$allTask[a.currentIndex].querySelector("li")) && e.click(), showTip("\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), a._o1()) } } catch (e) { } }), 500) }) }, listenRebortFn(e) { var t, n, i; ("none" != document.querySelector(".mask.mask_bg").style.display || (t = ElementObj.$video.currentTime / 60, n = ElementObj.$video.duration / 60, (i = document.querySelector(".vjs-remaining-time-display")) && "0:00" == i.innerText) || n <= t) && e.playNext(e) }, playNext(t) { return __awaiter(this, void 0, void 0, function* () { if (yield sleep(2e3), t.currentIndex >= ElementObj.$allTask.length - 1) alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c"); else { t.currentIndex += 1; let e = ElementObj.$allTask[t.currentIndex].querySelector("li"); null != (e = "/course/lesson" == location.pathname ? ElementObj.$allTask[t.currentIndex] : e) && e.click(), setTimeout(() => { t._o1() }, 2e3) } }) } } }, gzteacher: {id: 72, mainClass: "gzteacher"}, moocxinyingzao: {id: 73, mainClass: "moocxinyingzao"}, zhejiangzjelib: {id: 74, mainClass: "zhejiangzjelib"}, jlnkylllnet: {id: 77, mainClass: "jlnkylllnet"}, dongbeishifandaxue: {id: 76, mainClass: "dongbeishifandaxue"}, quanguomeotan: { id: 78, mainClass: "CTXCommon", option: {nodeListClass: ".row1 a.subset-class", activeClass: "on"} }, qzjystudy: {id: 79, mainClass: "qzjystudy"}, jsjxjypt: {id: 80, mainClass: "CTXCommon", option: {nodeListClass: ".videoRight ul li", activeClass: "li1"}}, GlivePro: {id: 81, mainClass: "GlivePro"}, gaodengxueli: { id: 82, mainClass: "gaodengxueli", option: {nodeListClass: ".course-list-txt dd i", activeClass: "fa-youtube-play"} }, henanzhuanjizaixian: {id: 83, mainClass: "henanzhuanjizaixian"}, hunannmdxs: {id: 84, mainClass: "hunannmdxs"}, hexuezaixianjxjyzx: { id: 85, mainClass: "CTXCommon", option: { nodeListClass: ".list_text:not(.color_catalog)", activeClass: "bai_color_text_icon", afterPlayEnd: () => new Promise(t => { setTimeout(() => { var e = document.querySelector(".el-message-box .el-button--primary"); null != e && e.click(), t(!0) }, 3e3) }) } }, shenixue: { id: 86, mainClass: "CTXCommon", option: { nodeListClass: ".jss299", activeClass: "jss300", playNext: () => new Promise(e => { setTimeout(() => { ElementObj.$allTask = document.querySelectorAll(".jss299"); for (var e of ElementObj.$allTask) if (!e.querySelector(".jss303")) { e.click(), setTimeout(() => { toolOption.CtxMain._o1() }, 3e3); break } }, 3e3) }) } }, dongaokauji: { id: 87, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", openListenPlayTime: !0, _init: l => __awaiter(this, void 0, void 0, function* () { let i = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$parentNodes = document.querySelectorAll("tbody>tr"), -1 != ["/cwweb/lecture/lectureList", "/study/u/myCourse"].indexOf(location.pathname) && ElementObj.$parentNodes.length) { clearInterval(i); ElementObj.$handleSpeedUp.style.display = "none"; for (var e = 0; e <= ElementObj.$parentNodes.length - 1; e++) { var t = ElementObj.$parentNodes[e]; if ("/cwweb/lecture/lectureList" == location.pathname) { var n = t.querySelectorAll("td")[1].querySelectorAll("span"); if (n[0].innerText != n[1].innerText.replace("/", "")) { MyTool.setValue("homeUrl", location.href), t.querySelector(".study-a").click(), setTimeout(() => { window.close() }, 2e4); break } } else { let e = t.querySelectorAll("td")[6]; if ("\u5df2\u5b8c\u6210" != (e = "/study/u/myCourse" == location.pathname ? t.querySelectorAll("td")[5] : e).innerText.trim()) { MyTool.setValue("homeUrl", location.href), t.querySelector("a.operate-a.active").click(); break } } } location.pathname } -1 != location.pathname.indexOf("/cwweb/videoShow/video/videoPlay") && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(i), l._o1()) }), 1e3) }), listenRebortFn() { var e, t = document.querySelector("#vjs-overlay"); t && (null != (e = t.parentElement) && e.removeChild(t), setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 2e3)) }, playNext(t) { return __awaiter(this, void 0, void 0, function* () { var e = MyTool.getValue("homeUrl"); location.href = e, setTimeout(() => { t._o1() }, 5e3) }) } } }, btzjpx: { id: 88, mainClass: "CTXCommon", option: { nodeListClass: ".classBox", openListenPlayStatus: !1, getCurrentIndexByOption: () => new Promise(e => { for (var t = 0; t <= ElementObj.$allTask.length - 1; t++) "rgb(240, 247, 254)" == ElementObj.$allTask[t].style.background && e(t) }) } }, bainianshuren: {id: 89, mainClass: "bainianshuren"}, dyyxlearning: {id: 90, mainClass: "dyyxlearning"}, hebeijiaoshijiaoyuwang: {id: 91, mainClass: "hebeijiaoshijiaoyuwang"}, shangdongganbu: {id: 92, mainClass: "shangdongganbu"}, yunketang: { id: 93, mainClass: "yunketang", option: {nodeListClass: ".el-collapse-item__content div.file-item", activeClass: "file-item-active"} }, guojiazhongxiaoxue: { id: 94, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", _init(l) { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { if (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$parentNodes = document.querySelectorAll(".fish-collapse-item"), ElementObj.$allTask = document.querySelectorAll(".resource-item"), ElementObj.$parentNodes.length || ElementObj.$allTask.length) { if (clearInterval(t), 1 == (ElementObj.$parentNodes.length ? 1 : 2)) { showTip("\u5b66\u4e60\u51c6\u5907\u4e2d~", 1e4); for (var n of ElementObj.$parentNodes) { n.querySelector(".fish-collapse-header").click(); let e = n.querySelectorAll(".fish-collapse-header"), t = 0; if (1 < e.length) { for (var i of e) 0 != t && (i.click(), t += 1, yield sleep(250)); t = 0 } yield sleep(300) } ElementObj.$allTask = document.querySelectorAll(".resource-item"); for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if ("\u5df2\u5b66\u5b8c" != ElementObj.$allTask[e].querySelector("i").title) { l.currentIndex = e; break } } else for (e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("resource-item-active")) { l.currentIndex = e; break } -1 == l.currentIndex ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (ElementObj.$allTask[l.currentIndex].click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { l._o1() }, 3e3)) } } catch (e) { } }), 1e3) }) }, playNext(e) { return __awaiter(this, void 0, void 0, function* () { e.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), e.currentIndex += 1, ElementObj.$allTask[e.currentIndex].click(), setTimeout(() => { e._o1() }, 3e3)) }) }, listenRebortFn() { var e, t = document.querySelectorAll(".fish-btn.fish-btn-primary")[1], t = (null != t && t.click(), document.querySelector(".fish-modal-root")); null != (e = null == t ? void 0 : t.parentElement) && e.removeChild(t) } } }, huaxiajiaoshiyanpei: {id: 95, mainClass: "huaxiajiaoshiyanpei"}, zhelixuexi: {id: 96, mainClass: "zhelixuexi"}, fhswifer: {id: 97, mainClass: "fhswifer"}, shdfuruuwsor: { id: 98, mainClass: "CTXCommon", option: { nodeListClass: ".simple-list li", openListenPlayStatus: !1, openListenPlayTime: !0, _init: () => new Promise(n => { let i = setInterval(() => { var e = document.querySelector(".el-message-box__wrapper"); if (e && "none" != e.style.display && document.querySelector(".el-message-box__btns .el-button--primary").click(), ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask = document.querySelectorAll(".simple-list li"), 0 < ElementObj.$allTask.length) { clearInterval(i); for (var t = 0; t <= ElementObj.$allTask.length - 1; t++) if ("\u5b8c\u6210" != ElementObj.$allTask[t].querySelectorAll("div div")[2].innerText) { "rgb(255, 165, 0)" != ElementObj.$allTask[t].querySelector(".el-tooltip").style.color && ElementObj.$allTask[t].click(), toolOption.CtxMain.pdPlayFn(location.href), n(t); break } } }) }), playNext: () => new Promise(e => { for (var t = 0; t <= ElementObj.$allTask.length - 1; t++) if ("rgb(255, 165, 0)" == ElementObj.$allTask[t].querySelector(".el-tooltip").style.color) { if ("\u5b8c\u6210" != ElementObj.$allTask[t].querySelectorAll("div div")[2].innerText) return toolOption.CtxMain.pdPlayFn(location.href), !1; ElementObj.$allTask[t + 1].click(), e(!0); break } }), listenRebortFn: () => { "\u5b8c\u6210" == document.querySelector(".el-tooltip[style]").parentElement.querySelectorAll("div div")[1].innerText && location.reload() } } }, cnjiewhr34iuiehs: { id: 99, mainClass: "CTXCommon", option: { nodeListClass: ".menu ul>li dl", openListenPlayStatus: !1, getCurrentIndexByOption: () => new Promise(e => { e(1) }), playNext: () => new Promise(e => { var t = MyTool.getValue("preVideoSrc"); ElementObj.$video.src == t ? toolOption.CtxMain.play() : (MyTool.setValue("preVideoSrc", ElementObj.$video.src), setTimeout(() => { location.reload() }, 3e3)) }) } }, rrhisdgf283y7jvdf: {id: 100, mainClass: "rrhisdgf283y7jvdf"}, f6872: {id: 101, mainClass: "f6872"}, a782: {id: 102, mainClass: "rrhisdgf283y7jvdf"}, su862v: { id: 103, mainClass: "CTXCommon", option: { nodeListClass: "#m-chapter-ul li a", openListenPlayStatus: !1, openListenPlayTime: !0, activeClass: "z-crt" } }, bfuew28: { id: 105, mainClass: "CTXCommon", option: { nodeListClass: "", openListenPlayStatus: !1, videoEle: () => new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelectorAll("iframe")[2].contentDocument.querySelector("iframe").contentDocument.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }), _init: () => new Promise(e => { let t = setInterval(() => { var e = document.querySelectorAll("iframe")[2]; e && (ElementObj.$allTask = e.contentDocument.querySelectorAll(".s_point"), 0 < ElementObj.$allTask.length) && (clearInterval(t), ElementObj.$handleSpeedUp.style.display = "none", toolOption.CtxMain.getCurrentIndex()) }) }), getCurrentIndexByOption: () => new Promise(e => { for (var t = 0; t <= ElementObj.$allTask.length - 1; t++) if (ElementObj.$allTask[t].classList.contains("s_pointerct")) { e(t); break } }), listenRebortFn: () => { var e = document.querySelector(".layui-layer-btn0"); null != e && e.click(), ElementObj.$video.play() } } }, sd199: { id: 104, mainClass: "CTXCommon", option: { nodeListClass: "", openListenPlayStatus: !1, videoEle: () => new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelectorAll("video")[1], ElementObj.$video && ElementObj.$video.src ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }), _init: i => new Promise(e => { let t = 10, n = setInterval(() => { t < 0 && (showTip("🔊\u672a\u627e\u5230\u76ee\u5f55,\u8bf7\u5728\u6b64\u754c\u9762\u624b\u52a8\u66f4\u6362\u4e00\u4e2a\u89c6\u9891", 4e3), clearInterval(n)), ElementObj.$allTask = document.querySelectorAll("ul a[id]"), 0 < ElementObj.$allTask.length && (clearInterval(n), ElementObj.$handleSpeedUp.style.display = "none", i.getCurrentIndex()), t += 1 }, 500) }), getCurrentIndexByOption: () => new Promise(e => { for (var t = document.querySelector(".learn-title").innerText.replace(/ /g, ""), n = 0; n <= ElementObj.$allTask.length - 1; n++) if (ElementObj.$allTask[n].innerText.replace(/ /g, "") == t) { e(n); break } }) } }, f13v: { id: 106, mainClass: "CTXCommon", option: {nodeListClass: ".el-menu li", activeClass: "is-active", openListenPlayStatus: !1} }, g32f: { id: 107, mainClass: "CTXCommon", option: { nodeListClass: ".bb_e8edf0_dash div[id]", activeClass: "cur", openListenPlayStatus: !1, _init: () => new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), ElementObj.$handleSpeedUp.style.display = "none", toolOption.CtxMain._o1()) }) }), playNext: () => new Promise(e => { document.querySelector("a.btItem.Next").click() }) } }, ss10: { id: 107, mainClass: "CTXCommon", option: { nodeListClass: ".menu_body span>a.chapter", _init: () => new Promise(n => { let i = setInterval(() => { var e; if (ElementObj.$parentNodes = null == (e = null == (e = document.querySelector("iframe")) ? void 0 : e.contentDocument) ? void 0 : e.querySelectorAll(".class-wrapper"), ElementObj.$parentNodes && ElementObj.$parentNodes.length) { clearInterval(i); var t = localStorage.getItem("curClassName"); for (let e = 0; e < ElementObj.$parentNodes.length; e++) if (ElementObj.$parentNodes[e].querySelector(".kcmc").innerText.trim() == t) { ElementObj.$parentNodes[e + 1].querySelector("input.btn").click(); break } n(!0) } "/student/IndexWlkc_BootStrap.aspx" == location.pathname && (clearInterval(i), ElementObj.$parentNodes = null == (e = null == (e = document.querySelector("iframe")) ? void 0 : e.contentDocument) ? void 0 : e.querySelectorAll(".menu_body span>a[title]"), ElementObj.$parentNodes && ElementObj.$parentNodes.length && ElementObj.$parentNodes[0].click(), n(!0)), ElementObj.$allTask = document.querySelectorAll(".menu_body span>a.chapter"), ElementObj.$allTask.length && (clearInterval(i), e = document.querySelector(".glyphicon-home").innerText.trim(), localStorage.setItem("curClassName", e), toolOption.CtxMain.getCurrentIndex(), n(!0)) }, 1e3) }), getCurrentIndexByOption: () => new Promise(t => { for (let e = 0; e < ElementObj.$allTask.length; e++) if ("rgb(51, 122, 183)" == ElementObj.$allTask[e].style.color) { t(e); break } }), playFn: r => __awaiter(this, void 0, void 0, function* () { var e = /wlkcID=(.+)&wlk/.exec(location.search)[1], t = /wlkckkID=(.+)&/.exec(location.search)[1], n = /zjid=(.+)/.exec(location.search)[1], i = document.querySelector("#lbl_videoTime").innerText.trim(), l = unsafeWindow.__VIEWSTATE.value, o = unsafeWindow.__VIEWSTATEGENERATOR.value, a = unsafeWindow.__EVENTVALIDATION.value; e && t && n && i && l && o && a ? (yield fetch(location.origin + `/student/BootStrap_Video.aspx?wlkcID=${e}&wlkckkID=${t}&zjid=` + n, { credentials: "include", headers: { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0", Accept: "*/*", "Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2", "X-Requested-With": "XMLHttpRequest", "X-MicrosoftAjax": "Delta=true", "Cache-Control": "no-cache", "Content-Type": "application/x-www-form-urlencoded; charset=utf-8" }, body: `ScriptManager1=UpdatePanel%7CbtnYXXXSJ&__EVENTTARGET=&__EVENTARGUMENT=&postLearnTime=${Number(i)}&shijiLearnTime=${Number(i)}&learnTime=${Number(i)}&videoState=pause&__VIEWSTATE=${encodeURIComponent(l)}&__VIEWSTATEGENERATOR=${o}&__EVENTVALIDATION=${encodeURIComponent(a)}&__ASYNCPOST=true&btnYXXXSJ=`, method: "POST", mode: "cors" }), toolOption.CtxMain.playNext(r)) : alert("\u53c2\u6570\u9519\u8bef") }), playNext: t => new Promise(e => __awaiter(this, void 0, void 0, function* () { var e; t.currentIndex >= ElementObj.$allTask.length - 1 ? location.href = location.origin + "/student/IndexTemplate_BootStrap.aspx" : (yield sleep(2e3), t.currentIndex += 1, null != (e = ElementObj.$allTask[t.currentIndex]) && e.click(), setTimeout(() => { t._o1() }, 2e3)) })) } }, rs01: { id: 108, mainClass: "CTXCommon", option: { activeClass: "", nodeListClass: "", _init(n) { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e; ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask = document.querySelectorAll(".rank-3>li"), -1 != location.pathname.indexOf("/home/course/") && 0 < ElementObj.$allTask.length ? (clearInterval(t), n.getCurrentIndex()) : (e = document.querySelector(".navBtn2"), -1 != location.pathname.indexOf("/home/course/") && e && (clearInterval(t), setTimeout(() => { n._init() }, 2e3), e.click()), "/home/learn/index" == location.pathname && (e = document.querySelector(".basic.active")) && (clearInterval(t), e.nextElementSibling.querySelector(".basic").click(), setTimeout(() => { n.pdPlayFn(location.href) }, 3e3))) }), 1e3) }) }, getCurrentIndexByOption: () => new Promise(e => { for (var t of ElementObj.$allTask) { var n = t.querySelector("a"); if (-1 == n.innerText.indexOf("\u6d4b\u8bd5") && !t.querySelector(".basic").classList.contains("looked")) { MyTool.setValue("homeUrl", location.href), n.click(); break } } e(0) }), playNext() { return __awaiter(this, void 0, void 0, function* () { location.href = MyTool.getValue("homeUrl") }) }, listenRebortFn() { var e = document.querySelector(".vjs-big-play-button"); null != e && e.click(), ElementObj.$video.volume = 0, ElementObj.$video.play() } } }, das01: { id: 109, mainClass: "CTXCommon", option: { nodeListClass: "ul>li:first-child", activeClass: "list", openListenPlayStatus: !1, _init: () => new Promise(t => { let n = setInterval(() => { if (ElementObj.$handleSpeedUp.style.display = "none", "/online/learn" == location.pathname) { var e = document.querySelector(".toStudy"); if (e) return clearInterval(n), setTimeout(() => { window.close() }, 1e4), e.click(), void t(!0) } "/admin/lock/Study" == location.pathname && (ElementObj.$allTask = document.querySelectorAll("ul>li"), ElementObj.$allTask.length) && (clearInterval(n), toolOption.CtxMain.getCurrentIndex(), t(!0)) }, 500) }), listenRebortFn: () => { var e, t = document.querySelector(".layui-input"); t && (e = t.getAttribute("data-num3"), t.value = e, document.querySelector(".layui-layer-btn0").click()) }, playNext: t => new Promise(e => __awaiter(this, void 0, void 0, function* () { var e; t.currentIndex >= ElementObj.$allTask.length - 1 ? location.href = "http://hzsdadmin.zhihuiteacher.com/online/learn" : (yield sleep(2500), t.currentIndex += 1, null != (e = ElementObj.$allTask[t.currentIndex]) && e.click(), setTimeout(() => { t._o1() }, 5e3)) })) } }, aa101: {id: 110, mainClass: "CTXCommon", option: {nodeListClass: ".level2>a", activeClass: "cur"}}, sdf1: { id: 111, mainClass: "CTXCommon", option: { nodeListClass: ".ml_2 li", activeClass: "cur", nextClass: ".littletit", openListenPlayTime: !1, getCurrentIndexByOption: () => new Promise(t => { for (let e = 0; e < ElementObj.$allTask.length; e++) { var n = ElementObj.$allTask[e].querySelector(".littlebot").querySelector(".el-progress"), i = ElementObj.$allTask[e].querySelector(".elli").innerText.trim(); if (n && -1 == i.indexOf("\u5728\u7ebf\u4f5c\u4e1a") && -1 == i.indexOf("\u4e60\u9898\u6d4b\u9a8c") && -1 == i.indexOf("Test")) { t(e); break } } }), listenRebortFn: () => { var e = document.querySelector("._active.elli"), t = (null == (t = null == e ? void 0 : e.parentElement) ? void 0 : t.parentElement).querySelector(".el-icon-circle-check"), e = e.innerText.trim(); !t && "\u5728\u7ebf\u4f5c\u4e1a" != e && -1 == e.indexOf("\u4e60\u9898\u6d4b\u9a8c") && -1 == e.indexOf("Test") || toolOption.CtxMain.playNext() } } }, sdf3: { id: 112, mainClass: "CTXCommon", option: {nodeListClass: "#classes li", activeClass: "li_current_index", openListenPlayTime: !1} }, dsfs: { id: 112, mainClass: "CTXCommon", option: { nodeListClass: "#content a", _init: () => new Promise(n => { let i = setInterval(() => { if (ElementObj.$allTask = document.querySelectorAll("#content a"), ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask.length) { clearInterval(i); var t = MyTool.getValue("preClassName"); if (t) { for (let e = 0; e < ElementObj.$allTask.length; e++) if (t == ElementObj.$allTask[e].innerText.trim()) { MyTool.setValue("homeUrl", location.href), ElementObj.$allTask[e + 1].click(); break } } else MyTool.setValue("homeUrl", location.href), ElementObj.$allTask[0].click(); n(!0) } var e = document.querySelector(".item-title.label h1 a"); e && "/m/Exam/Student/startStudy" == location.pathname && (clearInterval(i), e.click(), n(!0)), "/m/Exam/Student/startStudy" == location.pathname && (clearInterval(i), toolOption.CtxMain.pdPlayFn(location.href), n(!0)) }, 500) }), playNext(e) { return new Promise((e, t) => __awaiter(this, void 0, void 0, function* () { var e = document.querySelector(".startStudy-title>p"), e = null == e ? void 0 : e.innerText.trim(); MyTool.setValue("preClassName", e), document.querySelector(".bottom-pc-btn button").click(), yield sleep(2e3), setTimeout(() => { location.reload() }, 3e3), document.querySelector(".modal-button.modal-button-bold").click() })) } } }, bsd11: { id: 114, mainClass: "CTXCommon", option: { nodeListClass: "a.title", getCurrentIndexByOption: () => new Promise((t, e) => { for (let e = 0; e < ElementObj.$allTask.length; e++) if (ElementObj.$allTask[e].parentElement.classList.contains("active")) { t(e); break } }) } }, s221s: { id: 115, mainClass: "CTXCommon", option: { nodeListClass: ".tab-content-desc", activeClass: "desc-item-sel", playFn: e => __awaiter(this, void 0, void 0, function* () { yield e.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.play(), yield sleep(1e3), ElementObj.$video.currentTime += 7200, yield sleep(1e3), ElementObj.$video.currentTime += 7200, yield sleep(1e3), e.playNext() }) } }, ifsbds: { id: 116, mainClass: "CTXCommon", option: { nodeListClass: ".tab-content-desc", activeClass: "desc-item-sel", _init: () => __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => { if (ElementObj.$handleSpeedUp.style.display = "none", "/kaoshi_qnzzxy/majorlist.html" == location.pathname) clearInterval(t), alert("\u8bf7\u9009\u62e9\u4e00\u4e2a\u8bfe\u7a0b,\u70b9\u51fb\u8fdb\u53bb"); else { if (ElementObj.$allTask = document.querySelectorAll(".list-group-item"), 0 < ElementObj.$allTask.length) { clearInterval(t); for (var e of ElementObj.$allTask) if ("\u5b66\u4e60\u8fdb\u5ea6:100.00%" != e.querySelector(".list-group-item-text.text-muted").innerText) { MyTool.setValue("homeUrl", location.href), e.click(); break } } "/kaoshi_qnzzxy/test.html" == location.pathname && (clearInterval(t), toolOption.CtxMain.pdPlayFn(location.href)) } }, 500) }), playNext: e => __awaiter(this, void 0, void 0, function* () { location.href = MyTool.getValue("homeUrl") }) } }, sfps: { id: 117, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", openListenPlayStatus: !0, _init: n => __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask = document.querySelectorAll(".lesson li"), ElementObj.$allTask.length) { clearInterval(t); for (var e of ElementObj.$allTask) if (!e.classList.contains("history")) { MyTool.setValue("homeUrl", location.href), e.querySelector("a").click(); break } } "/course-section-video-play" == location.pathname && (clearInterval(t), window.alert = () => { }, n._o1()) }), 200) }), playNext: e => __awaiter(this, void 0, void 0, function* () { window.alert = () => { }, location.href = MyTool.getValue("homeUrl") }), listenRebortFn: () => __awaiter(this, void 0, void 0, function* () { var e = document.querySelector("#checkCode"); e.innerText && (document.querySelector("#inputCode").value = e.innerText, yield sleep(1500), document.querySelector(".Button1.Button").click()), window.alert = () => !1, ElementObj.$video && ElementObj.$video.currentTime >= ElementObj.$video.duration && toolOption.CtxMain.playNext() }) } }, sf1101: { id: 118, mainClass: "CTXCommon", option: { nodeListClass: "span.studiedLesson", activeClass: "RED", openListenPlayStatus: !0, getCurrentIndex(n) { return __awaiter(this, void 0, void 0, function* () { for (let e = 0; e < ElementObj.$allTask.length; e++) { var t = ElementObj.$allTask[e]; if (!t.classList.contains("studiedLessonMark")) { n.currentIndex = e, showTip("\u521d\u59cb\u5316\u5b8c\u6210,3\u79d2\u540e\u5f00\u59cb\u81ea\u52a8\u64ad\u653e", 3e3), t.click(), setTimeout(() => { n.pdPlayFn(location.href) }, 2e3); break } } -1 === n.currentIndex && alert("\u5f53\u524d\u7ae0\u8282\u6240\u6709\u89c6\u9891\u5df2\u7ecf\u5b66\u4e60\u5b8c") }) }, videoEle: () => new Promise(t => { let n = 0, i = setInterval(() => { var e; n += 1, ElementObj.$video = null == (e = null == (e = document.querySelector("iframe")) ? void 0 : e.contentDocument) ? void 0 : e.querySelector("video"), ElementObj.$video ? (clearInterval(i), t(1)) : 7 <= n && (clearInterval(i), t(2)) }, 1e3) }), listenRebortFn(t) { var n; return __awaiter(this, void 0, void 0, function* () { var e = null == (n = null == (n = document.querySelector("iframe")) ? void 0 : n.contentDocument) ? void 0 : n.querySelector("#popup_panel input"); e && (e.click(), t.play()) }) }, playNext() { return __awaiter(this, void 0, void 0, function* () { location.reload() }) } } }, usd01: { id: 119, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", _init: s => __awaiter(this, void 0, void 0, function* () { let r = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$handleSpeedUp.style.display = "none", document.querySelector(".iconfont.icon-fujian")) clearInterval(r), showTip("\u5224\u65ad\u6b64\u89c6\u9891\u7ae0\u8282\u4e3a\u975e\u89c6\u9891,\u5373\u5c06\u81ea\u52a8\u8df3\u8fc7", 3e3), yield sleep(2500), s.playNext(); else if (ElementObj.$video = document.querySelector("video"), ElementObj.$video) clearInterval(r), document.querySelector(".xt_video_player_common_icon").click(), s._o1(); else if (-1 != location.pathname.indexOf("/v2/web/studentLog")) { clearInterval(r); var e = location.pathname.replace("/v2/web/studentLog/", ""); e:for (var t of new Array(100)) { var n = yield function (e) { let n = document.cookie.split(";")[0].replace("csrftoken=", ""); return new Promise(t => { fetch(e, { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", "classroom-id": "19933500", priority: "u=1, i", "sec-ch-ua": '"Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "university-id": "2760", "uv-id": "2760", "x-client": "web", "x-csrftoken": n, "xt-agent": "web", xtbz: "ykt" }, referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }) }(`https://www.yuketang.cn/v2/api/web/logs/learn/${e}?actype=15&page=0&offset=20&sort=-1`); if (!n.data.activities) break; var i, l = n.data.activities.map(e => e.courseware_id), o = yield function (e) { let n = document.cookie.split(";")[0].replace("csrftoken=", ""); return new Promise(t => { fetch("https://www.yuketang.cn/mooc-api/v1/lms/learn/course/pub_new_pro", { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", "classroom-id": "19933500", "content-type": "application/json;charset=UTF-8", priority: "u=1, i", "sec-ch-ua": '"Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "university-id": "2760", "uv-id": "2760", "x-csrftoken": n, "xt-agent": "web", xtbz: "ykt" }, referrerPolicy: "strict-origin-when-cross-origin", body: e, method: "POST", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }) }(JSON.stringify({cid: e, new_id: l})); for (i of n.data.activities) { var a = i.courseware_id; if (o.data[a] && 1 != o.data[a].total_done) { a = `https://www.yuketang.cn/v2/web/xcloud/video-student/${e}/` + i.content.leaf_id; MyTool.setValue("homeUrl", location.href), location.href = a; break e } } 0 } } }), 500) }), playNext: () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5373\u5c06\u5207\u6362\u4e0b\u4e00\u4e2a\u7ae0\u8282"), yield sleep(2e3), location.href = MyTool.getValue("homeUrl") }) } }, sdhfks01: { id: 120, mainClass: "CTXCommon", option: { nodeListClass: ".video .chapterhead.chapterhead1 li", activeClass: "current", getCurrentIndexByOption: () => new Promise(e => { var t = document.querySelector(".video_header .video_number").innerText.replace(/\u7b2c|\u8bb2/g, ""); e(Number(t) - 1) }), playNext: n => new Promise(e => { if (n.currentIndex >= ElementObj.$allTask.length - 1) alert("\u5df2\u5168\u90e8\u64ad\u653e\u5b8c"); else { showTip("✅✅✅\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u8282"); let t = setInterval(() => { var e = document.querySelector(".el-message-box__btns button"); e && (n.currentIndex += 1, clearInterval(t), setTimeout(() => { n._o1() }, 4e3), e.click()) }, 500) } }) } }, s01r: { id: 121, mainClass: "CTXCommon", option: { nodeListClass: ".video .chapterhead.chapterhead1 li", activeClass: "current", openListenPlayTime: !0, _init: i => __awaiter(this, void 0, void 0, function* () { let n = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask = document.querySelectorAll(".ul-course li"), "jxjy.ahhjsoft.com" === location.host && ElementObj.$allTask) clearInterval(n), showTip("🔊🔊🔊\u4ec5\u652f\u6301\u516c\u9700\u8bfe4、\u516c\u9700\u8bfe3", 4e3); else if (ElementObj.$allTask = document.querySelectorAll(".zdBox"), "ah.zhuanjipx.com" === location.host && ElementObj.$allTask.length) { clearInterval(n), showTip("🔊🔊🔊\u6b63\u5728\u521d\u59cb\u5316", 4e3), i.classType = 3; for (let e = 0; e < ElementObj.$allTask.length; e++) if (ElementObj.$allTask[e].classList.contains("childBox_item_on")) { i.currentIndex = e, showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5f00\u59cb\u64ad\u653e", 2e3), i._o1(); break } } else { var e = document.querySelectorAll(".ant-collapse-item"); if (0 < e.length) { clearInterval(n), showTip("🔊🔊🔊\u6b63\u5728\u521d\u59cb\u5316", 4e3), i.classType = 4; for (var t of e) t.classList.contains("ant-collapse-item-active") || (t.querySelector(".ant-collapse-header").click(), yield sleep(100)); ElementObj.$allTask = document.querySelectorAll(".video_box_k_t_lx"); for (let e = 0; e < ElementObj.$allTask.length; e++) if (ElementObj.$allTask[e].classList.contains("video_box_k_active")) { i.currentIndex = e, showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5f00\u59cb\u64ad\u653e", 2e3), i._o1(); break } } } }), 300) }), playFn: i => __awaiter(this, void 0, void 0, function* () { var e; yield i.getVideoDom(), 2 !== i.classType && 3 !== i.classType || (clearInterval(i.timer), clearInterval(i.listenVidoeStatusTimer), clearInterval(i.listenRebortTime), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), i.playNext(i) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 4 === i.classType && (yield i.changeHtml($el("#video-content-box")), yield i.getVideoDom(), i.addInfo("✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅"), yield sleep(1e3), showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"), ElementObj.$video.volume = 0, null != (e = document.querySelector(".vjs-big-play-button")) && e.click(), ElementObj.$video.play(), setTimeout(() => __awaiter(this, void 0, void 0, function* () { var t = Math.ceil(ElementObj.$video.duration); if (t) { let e = 0; for (var n of new Array(1e4)) { if (e >= t) { ElementObj.$video.currentTime = t - 10, yield sleep(1e3), ElementObj.$video.currentTime = t, i.addInfo("🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉"), yield sleep(3e3), i.playNext(); break } n % 60 == 0 && 0 < n && (ElementObj.$video.currentTime = e), e += +toolOption.accelerator > t ? t : +toolOption.accelerator, i.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${e}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t / 60}\u5206\u949f`), yield sleep(1e3) } } else alert("\u89c6\u9891\u65f6\u95f4\u9519\u8bef,\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5") }), 2e3)) }), playNext(e) { return __awaiter(this, void 0, void 0, function* () { location.reload() }) } } }, hsduf: { id: 122, mainClass: "CTXCommon", option: { nodeListClass: ".menu_body dd", activeClass: "active", _init: o => __awaiter(this, void 0, void 0, function* () { let l = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$handleSpeedUp.style.display = "none"; var e = document.querySelector("#a2"); if (e) { clearInterval(l), e.click(), yield MyTool.sleep(2500); var t = document.querySelectorAll("li[data-trainid]"); for (let e = 0; e < t.length; e++) { var n = t[e]; MyTool.setValue("homeUrl", location.href), setTimeout(() => { window.close() }, 2e4), n.querySelector("a").click() } } if (ElementObj.$allTask = document.querySelectorAll(".menu_body dd"), 0 < ElementObj.$allTask.length) { clearInterval(l); let t = !0; for (let e = 0; e < ElementObj.$allTask.length; e++) { var i = ElementObj.$allTask[e]; if (!i.classList.contains("active")) { t = !1, o.currentIndex = e, i.classList.contains("hover") || i.querySelector("a").click(), showTip("✅✅✅\u6b63\u5728\u521d\u59cb\u5316", 3e3), o._o1(); break } } t && (e = MyTool.getValue("homeUrl") || "https://www.ejxjy.com/a/sys/portal/person", location.href = e) } }), 300) }), openListenPlayTime: !0, playNext() { return __awaiter(this, void 0, void 0, function* () { location.reload() }) }, playFn: a => __awaiter(this, void 0, void 0, function* () { yield a.getVideoDom(), yield a.changeHtml(ElementObj.$video.parentElement); let e = Math.ceil(ElementObj.$video.duration), t = 0, n = yield new Promise(t => { fetch(location.href, { headers: { accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", "accept-language": "zh-CN,zh;q=0.9", priority: "u=0, i", "sec-ch-ua": '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "document", "sec-fetch-mode": "navigate", "sec-fetch-site": "same-origin", "sec-fetch-user": "?1", "upgrade-insecure-requests": "1" }, referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.text()).then(e => { e = null == (e = e.match(/saveVideo\?id=(.+)"/)) ? void 0 : e[1]; t(e) }) }); if (n && e) { setInterval(() => { var e = document.querySelector(".jbox-button-focus"); null != e && e.click() }, 300); var i, l = ElementObj.$video.duration; for (i of new Array(1e4)) { var o = yield function (e, n, i) { return new Promise(t => { try { fetch("https://www.ejxjy.com/a/onlinelearn/stuCourse/saveVideo?id=" + i, { headers: { accept: "*/*", "accept-language": "zh-CN,zh;q=0.9", "content-type": "application/x-www-form-urlencoded; charset=UTF-8", priority: "u=0, i", "sec-ch-ua": '"Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest" }, referrerPolicy: "strict-origin-when-cross-origin", body: `nowTime=${e}&videoTime=` + n, method: "POST", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) } catch (e) { t(!1) } }) }(t, l, n); if (0 != o && t >= e) { a.addInfo("🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉"), yield sleep(3e3), a.playNext(a); break } "success" == o.data && (t += +toolOption.accelerator > e ? e : +toolOption.accelerator), a.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${t}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${e / 60}\u5206\u949f`), yield sleep(500) } } else showTip("\u89c6\u9891\u65f6\u95f4\u9519\u8bef,\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5"), location.reload() }) } }, pa1: { id: 123, mainClass: "CTXCommon", option: { activeClass: "", nodeListClass: "", _init: o => __awaiter(this, void 0, void 0, function* () { let l = setInterval(() => { ElementObj.$handleSpeedUp.style.display = "none"; var e, t = document.querySelectorAll(".navItem"); if (0 < t.length && (null != (e = t[1].querySelector("span")) && e.classList.contains("active") || t[1].click()), ElementObj.$parentNodes = null == (t = null == (e = document.querySelector("iframe")) ? void 0 : e.contentDocument) ? void 0 : t.querySelectorAll(".itemList .contentItem"), 0 < ElementObj.$parentNodes.length) { clearInterval(l); for (var n of ElementObj.$parentNodes) if (n.querySelector(".ready")) { MyTool.setValue("homeUrl", location.href), n.querySelector("a").click(); break } } else if (ElementObj.$allTask = document.querySelectorAll(".listGroup .listItem"), 0 < ElementObj.$allTask.length) { clearInterval(l); let e = !0; for (var i of ElementObj.$allTask) if ("\u672a\u5b66\u4e60" === i.querySelector("button").innerText) { e = !1, setTimeout(() => { o._o1() }, 3e3), i.querySelector(".text").click(); break } e && (location.href = MyTool.getValue("homeUrl") || "https://aqscpx.91huayi.com/Exercise/ExerciseHome/index") } }, 500) }) } }, bj1: { id: 124, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", _init: r => __awaiter(this, void 0, void 0, function* () { let a = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e; if (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$parentNodes = document.querySelectorAll(".iv-personal-course-content li"), ElementObj.$parentNodes.length) { clearInterval(a); e:for (var t of new Array(2)) { for (let e = 0; e < ElementObj.$parentNodes.length; e++) { var n = ElementObj.$parentNodes[e], i = n.querySelector(".ivu-progress-text span").innerText; if (100 != parseInt(i)) { MyTool.setValue("homeUrl", location.href), n.querySelectorAll(".iv-course-myClass span")[1].click(); break e } } document.querySelector(".iv-page-next").click(), showTip("🔊\u6b63\u5728\u5207\u6362\u4e0b\u4e00\u9875...", 3e3), yield sleep(3e3) } } else if (ElementObj.$allTask = null == (e = document.querySelector(".iv-course-play-detail-menu-item")) ? void 0 : e.querySelectorAll("li"), 0 < ElementObj.$allTask.length) { clearInterval(a); for (let e = 0; e < ElementObj.$allTask.length; e++) { var l = ElementObj.$allTask[e], o = l.querySelector(".iv-fs-12").innerText; if (100 != parseInt(o)) { r.currentIndex = e, l.click(), showTip("✅✅✅\u6b63\u5728\u521d\u59cb\u5316", 3e3), setTimeout(() => { r._o1() }, 3e3); break } } } }), 300) }), playNext(t) { return __awaiter(this, void 0, void 0, function* () { var e; t.currentIndex >= ElementObj.$allTask.length - 1 ? (e = MyTool.getValue("homeUrl") || "https://bjce.bjdj.gov.cn/#/personalSpace/MyCourse", window.open(e), window.close()) : (t.currentIndex += 1, null != (e = ElementObj.$allTask[t.currentIndex]) && e.click(), setTimeout(() => { t._o1() }, 2e3)) }) } } }, sd2: {id: 125, mainClass: "CTXCommon", option: {nodeListClass: ".numCHapter", activeClass: "active"}}, sfd9: { id: 126, mainClass: "CTXCommon", option: { nodeListClass: ".videoList .item", activeClass: "active", _init: l => __awaiter(this, void 0, void 0, function* () { let i = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$handleSpeedUp.style.display = "none"; var e = document.querySelector("iframe"); if ("jxzj.zpwedu.com" === location.host && e && (location.href = e.src), ElementObj.$allTask = document.querySelectorAll(".videoList .item"), 0 < ElementObj.$allTask.length && "jxzjstu.zpwedu.com" === location.host) { clearInterval(i); for (let e = 0; e < ElementObj.$allTask.length; e++) { var t = ElementObj.$allTask[e], n = t.querySelectorAll("div>div")[2]; if ("100%" != /\((.+)\)/.exec(n.innerText)[1]) { t.classList.contains("active") || t.click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,3\u79d2\u540e\u81ea\u52a8\u64ad\u653e", 3e3), l.currentIndex = e, setTimeout(() => { l._o1() }, 2e3); break } } } }), 300) }), beforePlayVideo() { var e = document.querySelector(".pv-icon-volumeon"); null != e && e.click() }, beforePlayNext(e) { var t = null == (t = document.querySelector(".item.active")) ? void 0 : t.querySelectorAll("div>div")[2]; "100%" != /\((.+)\)/.exec(t.innerText)[1] && location.reload() }, listenRebortFn() { var e = null == (e = document.querySelector(".item.active")) ? void 0 : e.querySelectorAll("div>div")[2]; "100%" == /\((.+)\)/.exec(e.innerText)[1] && location.reload() } } }, hds1: { id: 127, mainClass: "CTXCommon", option: { nodeListClass: ".ml.tab-info a", activeClass: "dd_active", _init: r => __awaiter(this, void 0, void 0, function* () { let a = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$handleSpeedUp.style.display = "none"; var e, t = document.querySelectorAll(".content_unit"); if (t.length) { clearInterval(a); e:for (var n of t) if (n.click(), yield MyTool.sleep(2e3), !(-1 < document.querySelector(".note>p").innerText.indexOf("\u606d\u559c\u60a8\u5df2\u5b8c\u6210"))) for (e of document.querySelectorAll("#watchcourseTable tbody tr")) { var i = e.querySelectorAll("td")[5], l = e.querySelectorAll("td")[6]; if (i.innerText.trim() != l.innerText.trim() && "\u5df2\u5b8c\u6210" != l.innerText.trim()) { e.querySelector(".studyBegin").click(), yield MyTool.sleep(2e3), null != (i = document.querySelector(".layui-layer-btn1")) && i.click(), yield MyTool.sleep(1e3), ElementObj.$allTask = document.querySelectorAll("#Div_CourseProgress tr:not([style])"); for (var o of ElementObj.$allTask) if ("100%" != o.querySelector(".fa6").innerText) { MyTool.deleteValue("learnStatus"); o = o.querySelector(".star").href; MyTool.openInTab(o), GM_addValueChangeListener("learnStatus", (e, t, n, i) => { "done" === n && (MyTool.deleteValue("learnStatus"), location.reload()) }); break e } } } } else ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(a), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,3\u79d2\u540e\u81ea\u52a8\u64ad\u653e", 3e3), r.pdPlayFn(location.href)) }), 300) }), playNext() { return __awaiter(this, void 0, void 0, function* () { MyTool.setValue("learnStatus", "done"), yield sleep(1e3), window.close() }) }, listenRebortFn() { var e = document.querySelector("a.btn-ProofOk"); null != e && e.click() } } }, asds1: { id: 128, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", _init: m => __awaiter(this, void 0, void 0, function* () { let c = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$video = document.querySelector("video"), ElementObj.$video) { clearInterval(c); var t, i = document.querySelector(".rightcontent") || ElementObj.$video.parentElement, l = (yield m.changeHtml(i), m.addInfo("\u6b63\u5728\u83b7\u53d6token..."), dsf.getToken()); m.addInfo("✅✅✅token:" + l), m.addInfo("\u6b63\u5728\u83b7\u53d6\u8bfe\u7a0b\u5217\u8868..."); let e = location.href.match(/id=(.+)/)[1], n = []; if (-1 != location.href.indexOf("commonpage/classcolumn")) { m.addInfo("\u6b63\u5728\u83b7\u53d6parents"), s = e, d = l; e:for (var o of (yield new Promise((t, e) => { location.origin; var n = location.origin + "/nc/pack/channel/course/list"; fetch(n + "?id=" + s, { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", authorization_token: d, client: "pc", "sec-ch-ua": '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, referrer: location.origin + "/page.html", referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) })).data) { m.addInfo(`【${o.name}】`); for (let t of o.subList) if (m.addInfo(`\u6b63\u5728\u83b7\u53d6${t.name}\u7684\u8bfe\u7a0b,\u5df2\u5b8c\u6210\u8fdb\u5ea6` + t.progress), !(95 < t.progress)) { var a = (yield u(t.businessId, l)).data.playTree.children.map(e => Object.assign(Object.assign({}, e), {businessId: t.businessId})); n.push(...a); break e } } } else { i = yield u(e, l); n.push(...i.data.playTree.children) } m.addInfo("✅✅✅\u8bfe\u7a0b\u5217\u8868\u83b7\u53d6\u6210\u529f"); for (t of n) if (!(100 <= t.finishedRate)) { m.addInfo("\u5373\u5c06\u5f00\u59cb\u5b66\u4e60" + t.title); var r = { courseId: e = -1 != location.href.indexOf("commonpage/classcolumn") ? t.businessId : e, coursewareId: t.id, watchPoint: "00:01:11", pulseTime: 10, pulseRate: 1, realWatchTime: "00:01:06" }; localStorage.setItem("fetchOption", JSON.stringify(r)), localStorage.setItem("token", l), yield m._o1(); break } } var s, d }), 900); function u(i, l) { return new Promise((t, e) => { location.origin; var n = location.origin + "/inc/nc/course/play/getPlayTrend"; fetch(n + "?courseId=" + i, { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", authorization_token: l, client: "pc", "sec-ch-ua": '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }) } }), playFn: l => __awaiter(this, void 0, void 0, function* () { let n = localStorage.getItem("fetchOption"), i = (n = JSON.parse(n), localStorage.getItem("token")); for (var e of new Array(1e4)) { l.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,(\u4e2d\u9014\u5173\u95ed\u8fdb\u5ea6\u4e0d\u4fdd\u5b58)`); var t = yield function () { let e = location.origin + "/inc/nc/course/play/pulseSaveRecord"; return new Promise(t => { fetch(e, { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", authorization_token: i, client: "pc", "content-type": "application/x-www-form-urlencoded;charset=UTF-8", "sec-ch-ua": '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, referrer: location.origin + "/page.html", referrerPolicy: "strict-origin-when-cross-origin", body: `courseId=${n.courseId}&coursewareId=${n.coursewareId}&watchPoint=00%3A06%3A19&pulseTime=10&pulseRate=2&realWatchTime=00%3A02%3A33`, method: "POST", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }) }(); if (l.addInfo(`\u5df2\u5b66\u4e60${t.data.finishedRate}%`), 100 <= t.data.finishedRate) { location.reload(); break } yield sleep(1e3) } }) } }, sdfs: { id: 129, mainClass: "CTXCommon", option: { nodeListClass: ".n-collapse-transition .cursor-pointer", activeClass: "bg-[#1C2630]", openListenPlayStatus: !1, openListenPlayTime: !1, _init: n => __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => { if (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$parentNodes = document.querySelectorAll(".items-center.justify-between.border-solid"), 0 < ElementObj.$parentNodes.length) { clearInterval(t), showTip("\u6b63\u5728\u521d\u59cb\u5316"); for (var e of ElementObj.$parentNodes) e.nextSibling.childNodes.length || e.click(); ElementObj.$allTask = document.querySelectorAll(".n-collapse-transition .cursor-pointer"), n.getCurrentIndex() } }, 500) }) } }, yrt5: { id: 130, mainClass: "CTXCommon", option: { nodeListClass: ".n-collapse-transition .cursor-pointer", activeClass: "bg-[#1C2630]", openListenPlayStatus: !1, openListenPlayTime: !1, _init: i => __awaiter(this, void 0, void 0, function* () { let n = setInterval(() => { ElementObj.$handleSpeedUp.style.display = "none"; var e = document.querySelectorAll("ul>li"); if (e.length && -1 != location.pathname.indexOf("/plan/courses")) { clearInterval(n); for (var t of e) if ("100%" != t.querySelector(".CourseList_per_1kb87BEO").innerText) { MyTool.setValue("homeUrl", location.href), t.querySelectorAll("button")[1].click(); break } } if (ElementObj.$allTask = document.querySelectorAll(".AsideChapter_Item_2dfPMpnP"), ElementObj.$allTask.length) { clearInterval(n); for (let e = 0; e < ElementObj.$allTask.length; e++) if (ElementObj.$allTask[e].querySelector(".AsideChapter_ItemState_2nxPLU4r")) { i.currentIndex = e, i._o1(); break } } }, 500) }), playNext(t) { var n; return __awaiter(this, void 0, void 0, function* () { var e; t.currentIndex >= ElementObj.$allTask.length - 1 ? (e = MyTool.getValue("homeUrl"), window.open(e)) : (t.currentIndex += 1, null != (n = ElementObj.$allTask[t.currentIndex]) && n.click(), setTimeout(() => { t._o1() }, 2e3)) }) } } }, hf01: { id: 132, mainClass: "CTXCommon", apis: { coursefind: e => new Promise(t => { fetch(`https://www.secxm.com/api/student/course/find/${e}?page=1&size=10000`, { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", authorization: "Bearer 12fe24bac5d14dcf8a5509b979a21eaa", "sec-ch-ua": '"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }), appendHours: e => new Promise(t => { fetch("https://www.secxm.com/api/student/appendHours", { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", authorization: "Bearer 12fe24bac5d14dcf8a5509b979a21eaa", "content-type": "application/json", "sec-ch-ua": '"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, referrerPolicy: "strict-origin-when-cross-origin", body: e, method: "POST", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }) }, option: { nodeListClass: "", activeClass: "", openListenPlayStatus: !1, openListenPlayTime: !1, _init: o => __awaiter(this, void 0, void 0, function* () { let l = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$handleSpeedUp.style.display = "none"; var e = document.querySelector(".video-lt"); if ("/courseintroduction" === location.pathname && e) { clearInterval(l); var t = /id=(.+)&loopPlay/.exec(location.href)[1], n = yield _i1.hf01.apis.coursefind(t); e.style.position = "relative", yield o.changeHtml(e); for (let e = 0; e < n.result.elements.length; e++) for (var i of n.result.elements[e].subContentTemplate) i.totalClassHours < i.duration && (o.addInfo("\u5373\u5c06\u8fdb\u884c\u672a\u5b8c\u6210\u8bfe\u7a0b", i.title), localStorage.setItem("itemdata", JSON.stringify(i)), yield o._o1(o)), yield MyTool.sleep(1e3) } }), 500) }), playFn(l) { return __awaiter(this, void 0, void 0, function* () { var e, t = localStorage.getItem("itemdata"); if (!t) return alert("\u53c2\u6570\u9519\u8bef #1"); let n = (t = JSON.parse(t)).totalClassHours || 0, i = {studentCourseId: "", contentId: t.id, duration: 180}; i.studentCourseId = /id=(.+)&loopPlay/.exec(location.href)[1]; for (e of new Array(1e3)) { if (l.addInfo(`\u5df2\u6210\u529f\u5b66\u4e60${n}\u79d2,\u5f53\u524d\u4efb\u52a1\u9700\u5b8c\u6210${t.duration}\u79d2`), n >= t.duration) { l.addInfo(`🎉🎉🎉【${t.title}】,\u5b66\u4e60\u5b8c\u6210🎉🎉🎉`); break } yield _i1.hf01.apis.appendHours(JSON.stringify(i)), n += 180, yield MyTool.sleep(1e3) } }) } } }, qf01: { id: 133, mainClass: "CTXCommon", apis: { appendHours: e => new Promise(t => { MyTool.axfedata({ method: "GET", url: "https://www.gsgbpx.cn/course/saveCoursewareRecord.do?" + e, headers: { accept: "*/*", "accept-language": "zh-CN,zh;q=0.9", "sec-ch-ua": '"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest" } }).then(e => t(e)) }) }, option: { nodeListClass: "", activeClass: "", openListenPlayStatus: !1, openListenPlayTime: !1, _init: i => __awaiter(this, void 0, void 0, function* () { let n = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$parentNodes = document.querySelectorAll("#courseResouse ul li>div"), ElementObj.$parentNodes.length) { clearInterval(n); for (var e of ElementObj.$parentNodes) if ("100.00%" != e.querySelector(".learned-section-num").innerText) { MyTool.setValue("homeUrl", location.href), e.querySelector("button").click(); break } } var t = document.querySelector(".coursePanelRight"); "/course/studycourseware.do" === location.pathname && t && (clearInterval(n), t.style.position = "relative", yield i.changeHtml(t), yield i._o1(i)) }), 500) }), playFn(l) { return __awaiter(this, void 0, void 0, function* () { let e = 0, t = `ID=${/COURSEWAREID=(.+)&FILENAME/.exec(location.href)[1]}&studyTime=60&TIMEPOINT=${e}&jsp=true&LENGTH=1&CHAPTER=1&STUDYSTATUS=incomplete&task=continuestudy&TCID=` + /TCID=(.+)/.exec(location.href)[1]; for (var n of new Array(1e3)) { e += 60; var i = yield _i1.qf01.apis.appendHours(t); if (l.addInfo(`\u5df2\u6210\u529f\u5b66\u4e6060\u79d2,\u5f53\u524d\u4efb\u52a1\u5df2\u5b8c\u6210${i.msg}%`), 100 <= parseInt(i.msg)) { l.addInfo("🎉🎉🎉\u5f53\u524d\u89c6\u9891\u5b66\u4e60\u5b8c\u6210🎉🎉🎉"), yield MyTool.sleep(1e3), l.playNext(); break } yield MyTool.sleep(1e3) } }) }, playNext() { return __awaiter(this, void 0, void 0, function* () { location.href = MyTool.getValue("homeUrl") }) } } }, sf93: { id: 134, mainClass: "CTXCommon", apis: { reportCourseStudyProgress: e => new Promise(t => { fetch("http://media.lllnet.cn/media/reportCourseStudyProgress", { headers: { accept: "*/*", "accept-language": "zh-CN,zh;q=0.9", "content-type": "application/x-www-form-urlencoded; charset=UTF-8", "x-requested-with": "XMLHttpRequest" }, referrer: "http://media.lllnet.cn/media/accessCourseInfo", referrerPolicy: "strict-origin-when-cross-origin", body: e, method: "POST", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }) }, option: { nodeListClass: "", activeClass: "", openListenPlayStatus: !1, openListenPlayTime: !1, _init(t) { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask = document.querySelectorAll("#contents_list a"), ElementObj.$allTask.length) { window.alert = () => { }, clearInterval(e); for (let e = 0; e < ElementObj.$allTask.length; e++) if (ElementObj.$allTask[e].classList.contains("current")) { t.currentIndex = e, yield t._o1(t); break } } }), 500) }) }, playFn(o) { return __awaiter(this, void 0, void 0, function* () { yield o.getVideoDom(); var e, t = ElementObj.$video.parentElement; yield o.changeHtml(t), ElementObj.$video.pause(), o.addInfo("\u521d\u59cb\u5316\u5df2\u5b8c\u6210,5\u79d2\u540e \u5373\u5c06\u5f00\u59cb\u5b66\u4e60"), yield MyTool.sleep(5e3); let n = 0, i = ElementObj.$video.duration; for (e of new Array(1e3)) { (n += 6) >= i && (n = i); var l = `courseId=${courseId}&gradeId=${gradeId}&userId=${userId}&coursewareId=${coursewareId}&unameSN=${unameSN}&orgName=gclc-gzdk&position=${n}&sessionTime=6`; if (200 == (yield _i1.sf93.apis.reportCourseStudyProgress(l)).code ? o.addInfo(`\u672c\u6b21\u4fdd\u5b586\u79d2, \u7d2f\u8ba1\u5df2\u5b8c\u6210${n / 60}\u5206\u949f,\u9700\u7d2f\u8ba1\u5b8c\u6210${i}\u79d2`) : (o.addInfo("\u672c\u6b21\u672a\u80fd\u6210\u529f\u4fdd\u5b58,\u5c06\u81ea\u52a8\u518d\u6b21\u4fdd\u5b58"), n -= 6), n >= i) { o.addInfo("🎉🎉🎉\u5f53\u524d\u89c6\u9891\u5b66\u4e60\u5b8c\u6210🎉🎉🎉"), yield MyTool.sleep(1e3), o.playNext(); break } yield MyTool.sleep(3e3) } }) } } }, wsre: { id: 135, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", openListenPlayStatus: !1, openListenPlayTime: !1, _init(n) { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$handleSpeedUp.style.display = "none"; var e = document.querySelector("iframe"); if (e && (clearInterval(t), location.href = e.src), ElementObj.$allTask = document.querySelectorAll("#li_menu_1_0_id dd span"), ElementObj.$allTask.length) { clearInterval(t); for (let e = 0; e < ElementObj.$allTask.length; e++) if (ElementObj.$allTask[e].classList.contains("b_sel")) { n.currentIndex = e, yield n._o1(n); break } } }), 500) }) } } }, tskf: { id: 136, mainClass: "CTXCommon", option: { nodeListClass: ".course_li", activeClass: "videoListCur", openListenPlayStatus: !1, openListenPlayTime: !1, nextClass: "a", _init(n) { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$allTask = document.querySelectorAll(".course_li"), ElementObj.$allTask.length) if (clearInterval(e), -1 == location.href.indexOf("coursewareid")) ElementObj.$allTask[0].querySelector("a").click(); else for (let e = 0; e < ElementObj.$allTask.length; e++) { var t = ElementObj.$allTask[e]; if (!t.querySelector(".study")) { if (n.currentIndex = e, !t.classList.contains("videoListCur")) { t.querySelector("a").click(); break } yield n._o1(n); break } } }), 500) }) }, playFn(o) { return __awaiter(this, void 0, void 0, function* () { var e = yield o.getVideoDom(); if (yield o.changeHtml(ElementObj.$video.parentElement), 1 == e) { e = Math.trunc(ElementObj.$video.duration); o.addInfo("🔊🔊🔊\u6b63\u5728\u83b7\u53d6\u53c2\u6570"); var t, n = /courseID=(.+)&coursewareid/.exec(location.href)[1], i = /coursewareid=(.+)&MyView/.exec(location.href)[1], l = -1 != document.cookie.split(",")[0].indexOf("student_id") ? /student_id=([0-9]+)/.exec(document.cookie.split(",")[0])[1] : /[0-9]+/.exec(document.cookie.split(",")[1].split(";")[3].split("&")[0])[0]; o.addInfo("🔊🔊🔊\u6b63\u5728\u8bf7\u6c42\u6570\u636e"), yield fetch(location.origin + "/VideoPlay/StudySurvey", { headers: { accept: "*/*", "content-type": "application/x-www-form-urlencoded; charset=UTF-8" }, referrerPolicy: "strict-origin-when-cross-origin", body: `course_id=${n}&courseware_id=${i}&start=0&end=${e}&student_id=${l}&project_id=&course_type=1`, method: "POST", mode: "cors", credentials: "include" }), o.addInfo("✅✅✅StudySurvey\u8bf7\u6c42\u5b8c\u6210"), o.addInfo("🔊🔊🔊\u6b63\u5728\u7b49\u5f85\u54cd\u5e94"); for (t of new Array(26)) yield MyTool.sleep(1e3), o.addInfo("⚠⚠⚠\u6b63\u5728\u7b49\u5f85\u7cfb\u7edf\u8bf7\u6c42updateStudyStatue2,\u8bf7\u52ff\u5173\u95ed\u6b64\u9875\u9762, \u9884\u8ba125\u79d2") } o.playNext() }) } } }, gd891: { id: 137, mainClass: "CTXCommon", option: { nodeListClass: "", activeClass: "", openListenPlayStatus: !1, openListenPlayTime: !1, _init(o) { return __awaiter(this, void 0, void 0, function* () { let l = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { if ("gbpx.gd.gov.cn" == location.host) { var t = document.querySelector("iframe").contentDocument.querySelector("iframe").contentDocument.querySelector("iframe").contentDocument.querySelector(".listrowd"); if (t) { clearInterval(l); var n = t.querySelector("a.courseName").href, i = "https://wcs1.shawcoder.xyz/gdcecw/play_pc/playdo_pc.html?courseId=" + /id=([a-z0-9]+)/.exec(n)[1]; o._o1(); let e = window.open(i, "_blank"); setInterval(() => { null != e && e.close(), location.reload() }, 3e4) } } var e; "wcs1.shawcoder.xyz" == location.host && (clearInterval(l), yield o.changeHtml(document.querySelector("body")), o.addInfo("🔊🔊🔊\u6b63\u5728\u5b66\u4e60\u4e2d, \u5b66\u4e60\u671f\u95f4\u5c06\u591a\u6b21\u5237\u65b0\u9875\u9762, \u5c5e\u4e8e\u6b63\u5e38\u73b0\u8c61"), o.addInfo("🔊🔊🔊\u6b63\u5728\u5b66\u4e60\u4e2d, \u5b66\u4e60\u671f\u95f4\u5c06\u591a\u6b21\u5237\u65b0\u9875\u9762, \u5c5e\u4e8e\u6b63\u5e38\u73b0\u8c61"), o.addInfo("🔊🔊🔊\u6b63\u5728\u5b66\u4e60\u4e2d, \u5b66\u4e60\u671f\u95f4\u5c06\u591a\u6b21\u5237\u65b0\u9875\u9762, \u5c5e\u4e8e\u6b63\u5e38\u73b0\u8c61"), e = /courseId=([a-z0-9]+)/.exec(location.href)[1], localStorage.setItem("courseId", e), setInterval(() => { location.reload() }, 3e3)) } catch (e) { } }), 500) }) } } } }, speedArr = [1, 2, 3, 5, 10, 16], toolOption = {accelerator: 1, CtxMain: null, SchoolType: -1}; const version = "6.1.0.1"; let _bt = "http://www.gaozhiwang.top", _b = "http://47.115.205.88:7001"; class Main { constructor() { this.studentType = 1, this.speedStatus = 0, this.isAdaptive = 1, this.listenVidoeStatusTimer = null, this.fingerprint = null, this.toolkey = null, this.init() } init() { setTimeout(() => __awaiter(this, void 0, void 0, function* () { this.toolkey = localStorage.getItem("mytoolkey") || MyTool.getValue("mytoolkey"); var e = MyTool.getValue("schoolInfoColletion"); (!e || (e = new Date(e)).getDate() < (new Date).getDate()) && this.colletionSchoolData(`/colletionschool?schoolType=${toolOption.SchoolType}&toolkey=${this.toolkey}&host=` + location.origin), !localStorage.getItem("fingerprint") && this.toolkey && (yield import("https://openfpcdn.io/fingerprintjs/v4").then(e => e.load()).then(e => e.get()).then(e => { this.fingerprint = e.visitorId }), localStorage.setItem("fingerprint", this.fingerprint), this.colletionSchoolData(`/colletionschool?schoolType=${toolOption.SchoolType}&toolkey=${this.toolkey}&fingerprint=${this.fingerprint}&host=` + location.origin)), this._rn() }), 2500) } updateSpeedElement(e) { 0 != this.speedStatus && (ElementObj.$video.playbackRate = e) } _o1(e, t = 0) { return __awaiter(this, void 0, void 0, function* () { var e = localStorage.getItem("mytoolkey") || MyTool.getValue("mytoolkey"), e = (e || (alert("\u8bf7\u5148\u8d2d\u4e70key"), window.open(_bt)), toolOption.CtxMain || location.reload(), yield axfedata({ method: "GET", url: _b + (`/speedup?toolkey=${e}&canuse=${toolOption.SchoolType}&fingerprint=${this.fingerprint}$t=2&h=` + location.host) })); 200 != e.code ? (this.isAdaptive = 0, showTip("🔉🔉🔉" + e.message, 5e3, !0)) : (this.speedStatus = 1, this.isAdaptive = 1, yield toolOption.CtxMain.play()) }) } handleRemoveKey() { MyTool.setValue("mytoolkey", null), localStorage.removeItem("mytoolkey"), localStorage.removeItem("_localSpeed"), ElementObj.$title3.innerText = "\u7ed1\u5b9akey:", ElementObj.$mytoolkey.style.display = "none", ElementObj.$ctxsection2.style.display = "none", ElementObj.$nokey.style.display = "block", ElementObj.$ipt.style.display = "block", ElementObj.$addKey.style.display = "block", ElementObj.$removeKey.style.display = "none", ElementObj.$handleSpeedUp.style.background = "orange", ElementObj.$handleSpeedUp.innerText = "\u70b9\u51fb\u52a0\u901f", this.updateSpeedElement(1) } stopSpeedUp() { this.speedStatus = 0, toolOption.CtxMain.updateSpeedElement(1), ElementObj.$handleSpeedUp.style.background = "orange", ElementObj.$handleSpeedUp.innerText = "\u70b9\u51fb\u52a0\u901f", showTip("🔉\u505c\u6b62\u52a0\u901f\u6210\u529f") } handleChangeCtxSpeed(e) { var t, n = localStorage.getItem("mytoolkey") || MyTool.getValue("mytoolkey"); n ? 0 == this.isAdaptive ? alert("Key\u4e0d\u9002\u914d") : (n = speedArr, t = Number(e), e && n.includes(t) && (toolOption.accelerator = t, localStorage.setItem("_localSpeed", t.toString()), MyTool.setValue("_localSpeed", t), ElementObj.$video) && (ElementObj.$video.playbackRate = t)) : (alert("\u8bf7\u5148\u8d2d\u4e70key"), window.open(_bt)) } colletionSchoolData(t) { return __awaiter(this, void 0, void 0, function* () { var e = yield axfedata({method: "GET", url: _b + t}); 200 == e.code && MyTool.setValue("schoolInfoColletion", "" + new Date), e.code }) } _rn() { setInterval(() => { ElementObj.$video && MyTool.axfedata({ method: "GET", url: _b + ("/ck/v1?ty=" + this.toolkey) }).then(e => { 202 == e.code && erf(e.data) }) }, 1e4) } listenVidoeStatus(t, n) { if (t) { let e = 0; this.listenVidoeStatusTimer = setInterval(() => { t.readyState < 4 && 20 <= (e += 1) && location.reload(), t.paused && (e += 1, "function" == typeof n) && (20 <= e ? location.reload() : n()) }, 5e3) } } changeHtml(t) { return __awaiter(this, void 0, void 0, function* () { var e; ElementObj.$ctxstatsbox = document.querySelector(".ctxstatsbox"), ElementObj.$ctxstatsbox || ((e = document.createElement("div")).setAttribute("class", "ctxstatsbox"), e.setAttribute("style", "\n width: 100%;\n height: 100%;\n background: #eae9e9;\n position: absolute;\n z-index: 999;\n overflow: scroll;\n top: 0;\n padding-left: 10px;\n z-index: 9999;\n "), t.appendChild(e), yield sleep(300), ElementObj.$ctxstatsbox = document.querySelector(".ctxstatsbox")), this.addInfo("🔉\u521d\u59cb\u5316\u5df2\u5b8c\u6210,\u6b63\u5728\u64ad\u653e") }) } addInfo(e, t) { 15 <= document.querySelectorAll(".ctxstatsbox_li").length && (ElementObj.$ctxstatsbox.innerHTML = ""); t = `
  • ${e}
  • `; ElementObj.$ctxstatsbox.innerHTML += t } listenPageHide() { let t; document.addEventListener("visibilitychange", () => { if (document.hidden) { let e = 0; t = setInterval(() => { 5 <= (e += 1) && this.addInfo("⚠️⚠️⚠️\u8bf7\u52ff\u957f\u65f6\u95f4\u9690\u85cf\u8be5\u5b66\u4e60\u9875\u9762", 0) }, 5e3) } else clearInterval(t) }) } pdPlayFn(e) { var t = MyTool.getValue("spanClassName") || []; -1 == t.indexOf(e) && (t.push(e), MyTool.setValue("spanClassName", t)), this._o1() } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelectorAll("video")[0], ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } } class CTXCommon extends Main { constructor(e) { super(), this.taskLength = 0, this.currentIndex = -1, this.nodeListClass = e.nodeListClass, this.activeClass = e.activeClass || "", this.nextClass = e.nextClass || "", this.openListenPlayStatus = "boolean" != typeof e.openListenPlayStatus || e.openListenPlayStatus, this.openListenPlayTime = "boolean" == typeof e.openListenPlayTime && e.openListenPlayTime, this.afterPlayEnd = e.afterPlayEnd, this.getCurrentIndexByOption = e.getCurrentIndexByOption, this.playNext = e.playNext || this.playNext, this.listenRebortFn = e.listenRebortFn, this.getVideoDom = "function" == typeof e.videoEle ? e.videoEle : this.getVideoDom, this.playFn = e.playFn, this.beforePlayVideo = e.beforePlayVideo, this.beforePlayNext = e.beforePlayNext, this.getCurrentIndex = e.getCurrentIndex ? e.getCurrentIndex.bind(this, this) : this.getCurrentIndex, e._init ? e._init(this) : this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(this.nodeListClass), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { if (this.getCurrentIndexByOption) this.currentIndex = yield this.getCurrentIndexByOption(); else for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains(this.activeClass)) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 2e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelectorAll("video")[0], ElementObj.$video && (ElementObj.$video.src || ElementObj.$video.querySelector("source")) ? (clearInterval(n), e(1)) : 6 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); this.playFn ? yield this.playFn(this) : (1 == e && (this.beforePlayVideo && "function" == typeof this.beforePlayVideo && this.beforePlayVideo(), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.openListenPlayStatus && this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.openListenPlayTime && (yield this.changeHtml(ElementObj.$video.parentElement), this.listenPlayTime()), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext(this) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext(this))) }) } listenRebort() { this.listenRebortTime = setInterval(() => { this.listenRebortFn && "function" == typeof this.listenRebortFn && this.listenRebortFn(this) }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { if (this.beforePlayNext && "function" == typeof this.beforePlayNext && this.beforePlayNext(this), this.currentIndex >= ElementObj.$allTask.length - 1) alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c"); else { yield sleep(2500), this.currentIndex += 1; let e = ElementObj.$allTask[this.currentIndex]; null != (e = this.nextClass ? ElementObj.$allTask[this.currentIndex].querySelector(this.nextClass) : e) && e.click(), this.afterPlayEnd && (yield this.afterPlayEnd()), setTimeout(() => { this._o1() }, 5e3) } }) } listenPlayTime() { let n = 0; this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () { n += 1; var e = ((null == (e = ElementObj.$video) ? void 0 : e.currentTime) / 60).toFixed(2), t = null == (t = ElementObj.$video) ? void 0 : t.duration; this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t / 60}\u5206\u949f`) }), 5e3) } } function _ex(e) { for (var t = "", n = 0; n < e.length; n += 2) { var i = e.substr(n, 2), i = parseInt(i, 16); t += String.fromCharCode(i) } return t } class fujianshifan extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = 0, this.currentMidiaType = "video", this._init() } _init() { let i = document.querySelectorAll(".section"); new Promise(n => { i.forEach((e, t) => { e.childNodes[0].click(), sleep(20), t == i.length - 1 && n(!0) }) }).then(e => { setTimeout(() => { ElementObj.$allStudyTask = document.querySelectorAll(".section li"), this.getCurrentIndex() }, 2e3) }) } getCurrentIndex() { let n = document.querySelector(".active").id; ElementObj.$allStudyTask.forEach((e, t) => { e.id == n && (this.currentIndex = t) }) } play() { ElementObj.$allStudyTask[this.currentIndex].click(), setTimeout(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (this.currentMidiaType = "video", this.handlePlayVideo()) : (this.currentMidiaType = "doc", this.handlePlayDoc()) }, 2e3) } nextPlay() { sleep(1e3), this.currentIndex += 1, this._o1() } handlePlayVideo() { this.updateSpeedElement(toolOption.accelerator), ElementObj.$video.play(), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", ElementObj.$video.addEventListener("ended", () => { this.nextPlay() }, !1) } handlePlayDoc() { var e; ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f"; let t = null == (e = document.querySelector("#lg-counter-all")) ? void 0 : e.innerHTML, n = document.querySelector(".lg-actions>.lg-next"), i = Number(t), l = setInterval(() => { i <= 0 || !n ? (clearInterval(l), this.nextPlay()) : (n.click(), --i) }, 1e3) } } class gxcic extends Main { constructor() { super(), this.parentIndex = 0, this.currentIndex = 0, this.currentTaskEle = null, this.taskLength = 0, this.timer = null, this._init() } _init() { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$allTaskParentNodes = null === document || void 0 === document ? void 0 : document.querySelectorAll(".ant-collapse-item"), ElementObj.$allTask = null === document || void 0 === document ? void 0 : document.querySelectorAll(".course-detail-content-section-info-text"), ElementObj.$allTask.length && ElementObj.$allTaskParentNodes.length && (clearInterval(e), this.getCurrentIndex()) }), 1e3) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$allTaskParentNodes.forEach((e, t) => { e.className.includes("ant-collapse-item-active") && (this.parentIndex = t) }), ElementObj.$allTask.forEach((e, t) => { e.className.includes("course-detail-current") && (this.currentIndex = t, this.currentTaskEle = e) }), this.currentTaskEle && showTip("\u521d\u59cb\u5316\u5b8c\u6210,\u53ef\u70b9\u51fb\u52a0\u901f") }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), yield this.getVideoDom(), ElementObj.$video.play(), this.updateSpeedElement(toolOption.accelerator), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.lisRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e = this.currentTaskEle.parentElement.parentElement.nextSibling; e ? (this.currentIndex += 1, this.currentTaskEle = e) : (this.parentIndex += 1, this.currentIndex += 1, ElementObj.$allTaskParentNodes[this.parentIndex].lastChild.firstChild.firstChild.click(), yield sleep(1500), ElementObj.$allTask = null === document || void 0 === document ? void 0 : document.querySelectorAll(".course-detail-content-section-info-text"), this.currentTaskEle = ElementObj.$allTask[this.currentIndex]), this.currentTaskEle.click(), yield sleep(5e3), this._o1() }), !1), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.play() }, 1500) }) }) } lisRebort() { this.timer = setInterval(() => { var e = document.querySelector(".sdk-ia-message-confirm"), e = (null != e && e.click(), document.querySelector(".sdk-ia-number-verify-image")); e && (document.querySelector(".sdk-ia-number-input input").value = e.innerText, document.querySelector(".sdk-ia-number-button").click()) }, 5e3) } } class fjsf2 extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = 0, this.currentIndex = 0, this.currentMidiaType = "video", this._init() } _init() { ElementObj.$allTaskParentNodes = null === document || void 0 === document ? void 0 : document.querySelectorAll(".section"), document.querySelectorAll(".section"), this.getCurrentIndex() } getCurrentIndex() { ElementObj.$allTaskParentNodes.forEach((e, n) => { let i = e.querySelectorAll("li"); null != i && i.forEach((e, t) => { e.className.includes("active") && (this.parentIndex = n, this.currentIndex = t, ElementObj.$allTask = i) }) }) } play() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$allTask[this.currentIndex].click(), yield sleep(2e3), document.querySelector(".lg-close") ? (this.currentMidiaType = "doc", this.handlePlayDoc()) : (this.currentMidiaType = "video", this.handlePlayVideo()) }) } nextPlay() { return __awaiter(this, void 0, void 0, function* () { if (yield sleep(1e3), this.currentIndex >= ElementObj.$allTask.length - 1) { if (this.parentIndex += 1, this.currentIndex = 0, this.parentIndex >= ElementObj.$allTaskParentNodes.length) return void alert("\u5df2\u5168\u90e8\u64ad\u653e\u5b8c"); var e = ElementObj.$allTaskParentNodes[this.parentIndex].querySelectorAll("li"); e.length ? ElementObj.$allTask = e : (ElementObj.$allTaskParentNodes[this.parentIndex].childNodes[0].click(), yield sleep(300), ElementObj.$allTask = ElementObj.$allTaskParentNodes[this.parentIndex].querySelectorAll("li")) } else this.currentIndex += 1; this._o1() }) } handlePlayVideo() { ElementObj.$video = document.querySelector("video"), this.updateSpeedElement(toolOption.accelerator), ElementObj.$video.play(), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", ElementObj.$video.addEventListener("ended", () => { this.nextPlay() }, !1) } handlePlayDoc() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", yield sleep(1500); var e = document.querySelector(".lg-toggle-thumb"); e && (e.click(), document.querySelectorAll(".lg-thumb-item").length), yield sleep(2e3), document.querySelector(".lg-close").click(), this.nextPlay() }) } } class zjzx extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = 0, this._init() } _init() { ElementObj.$allTask = document.querySelectorAll(".nLi"), this.getCurrentIndex() } getCurrentIndex() { ElementObj.$allTask.forEach((e, t) => { e.querySelector("li").classList.contains("active") && (this.currentIndex = t) }) } play() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$video = document.querySelector("video"), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", ElementObj.$video.addEventListener("ended", () => { setTimeout(() => { this._o1() }, 5e3) }) }) } } class zxpxmr extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = 0, this._init() } _init() { window.alert = function () { return !1 }; let e = setInterval(() => { ElementObj.$allTask = document.querySelectorAll(".kecheng_play_mian_list_item"), ElementObj.$allTask.length && (showTip("🔉\u521d\u59cb\u5316\u5b8c\u6210,\u53ef\u70b9\u51fb\u52a0\u901f", 3e3), clearInterval(e), this.getCurrentIndex()) }, 1e3) } getCurrentIndex() { ElementObj.$allTask.forEach((e, t) => { e.classList.contains("kecheng_play_mian_list_item_progress_playing") && (this.currentIndex = t) }) } play() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$video = document.querySelector("video"), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$video.play(), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.simulationClick(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; clearInterval(this.timer), this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u8bfe\u7a0b\u5df2\u5168\u90e8\u90e8\u5206\u5b8c") : (this.currentIndex += 1, e = document.querySelector("#btn-sure"), yield sleep(2e3), null != e && e.click(), setTimeout(() => { this._o1() }, 5e3)) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.play() }, 1e3) }) }) } simulationClick() { var e = new KeyboardEvent("keydown", {keyCode: 8, which: 8}); this.timer = setInterval(() => { try { document.dispatchEvent(e) } catch (e) { } }, 3e3) } } class ggfw extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = 0, this._init() } _init() { ElementObj.$parentNodes = document.querySelectorAll(".learnList"), ElementObj.$parentNodes.length && this.selectOneClass(), new Promise(e => { let t = setInterval(() => { ElementObj.$allTask = document.querySelectorAll(".courseItem"), ElementObj.$allTask.length && (clearInterval(t), this.getCurrentIndex(), e(!0)) }, 1e3) }).then(e => { ElementObj.$handleSpeedUp.style.display = "none"; let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$video = document.querySelector("video"), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.setAttribute("autoplay", "autoplay"); var e = document.querySelector(".volume-icon"); e.click(), yield sleep(500), e.click(), ElementObj.$video && (clearInterval(t), showTip("🔉\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u81ea\u52a8\u64ad\u653e", 3e3), yield sleep(300), document.querySelector(".prism-big-play-btn").click(), yield this._o1()) }), 1e3) }) } getCurrentIndex() { ElementObj.$allTask.forEach((e, t) => { e.classList.contains("active") && (this.currentIndex = t) }) } play() { return __awaiter(this, void 0, void 0, function* () { yield sleep(3e3), localStorage.setItem("ctx-status", ""), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f" }, 1500), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), ElementObj.$allTask = document.querySelectorAll(".courseItem"), yield sleep(300), this.currentIndex >= ElementObj.$allTask.length - 1 ? (localStorage.setItem("ctx-status", "done"), document.querySelector(".sc-box").click(), yield sleep(1500), document.querySelectorAll(".menu-box ul li")[3].click(), yield sleep(2e3), window.location.reload()) : (this.currentIndex += 1, this._o1(), yield sleep(2500), ElementObj.$allTask[this.currentIndex].click()) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.play() }, 1e3) }) }) } selectOneClass() { let e = setTimeout(() => __awaiter(this, void 0, void 0, function* () { clearInterval(e), document.querySelector("#tab-second").click(), yield sleep(2500), ElementObj.$parentNodes = document.querySelectorAll(".course_item"), yield sleep(200), ElementObj.$parentNodes[0].click() }), 3e3) } } class mingshiclass extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = 0, this.parentIndex = -1, this._init() } _init() { document.querySelector(".title-box .setMealName") ? this.selectOneClass() : this.initPlayPage() } initPlayPage() { new Promise(e => { let t = setInterval(() => { ElementObj.$allTask = document.querySelectorAll(".course-list .course-item"), ElementObj.$allTask.length && (clearInterval(t), this.getCurrentIndex(), e(!0)) }, 1e3) }).then(e => new Promise(e => __awaiter(this, void 0, void 0, function* () { ElementObj.$video = document.querySelector("video"), yield sleep(3e3), ElementObj.$video && (showTip("🔉\u521d\u59cb\u5316\u5b8c\u6210,\u64ad\u653e\u5f00\u59cb", 3e3), e(!0)) }))).then(e => { this._o1() }) } getCurrentIndex() { ElementObj.$allTask.forEach((e, t) => { e.querySelector(".course-name").classList.contains("play-status") && (this.currentIndex = t) }) } play() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$video = document.querySelector("video"), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.setAttribute("autoplay", "autoplay"), ElementObj.$video.volume = 0, yield sleep(3500), document.querySelector(".play_btn").click(), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? (e = document.querySelector(".back-img"), sleep(200), e.click(), setTimeout(() => { location.reload() }, 3e3)) : (this.currentIndex += 1, e = ElementObj.$allTask[this.currentIndex], yield sleep(5e3), null != e && e.click(), setTimeout(() => { this._o1() }, 2e3)) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.play() }, 3e3) }) }) } selectOneClass() { let e = setTimeout(() => __awaiter(this, void 0, void 0, function* () { clearInterval(e), ElementObj.$parentNodes = document.querySelectorAll(".content-box>.course-list>div"), yield sleep(200), ElementObj.$parentNodes.forEach((e, t) => { if ("\u672a\u5b8c\u6210" == e.querySelector(".course_item_brief").lastChild.innerText && -1 == this.parentIndex) return this.parentIndex = t, !0 }), yield sleep(200), ElementObj.$parentNodes[this.parentIndex].click(), setTimeout(() => { this.initPlayPage() }, 2500) }), 1e3) } } mingshiclass.ctxid = 17; class qiangshi extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { try { var e = document.querySelectorAll("iframe")[2].contentWindow.document.querySelectorAll("iframe")[0].contentWindow; this._document = e.document } catch (t) { } let t = setInterval(() => { try { var e = document.querySelector(".contentIframe").contentWindow; ElementObj.$allTask = e.document.querySelectorAll(".s_point"), ElementObj.$allTask.length && (clearInterval(t), this.getCurrentIndex()) } catch (e) { } }, 1e3) } getCurrentIndex() { ElementObj.$allTask.forEach((e, t) => { e.querySelector(".item_done_icon").classList.contains("done_icon_show") || -1 != this.currentIndex || (this.currentIndex = t) }), -1 != this.currentIndex ? (showTip("⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4500), ElementObj.$handleSpeedUp.style.display = "none") : alert("\u5f53\u524d\u7ae0\u8282\u8bfe\u7a0b\u5df2\u5168\u90e8\u5b66\u5b8c") } getVideoDom() { return new Promise(t => { let n = setInterval(() => { try { var e = document.querySelectorAll("iframe")[2].contentDocument.querySelectorAll("iframe")[0].contentDocument; ElementObj.$video = null == e ? void 0 : e.querySelector("video"), ElementObj.$video && (clearInterval(n), t(!0)) } catch (e) { } }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$allTask[this.currentIndex].click(), yield sleep(3500), yield this.getVideoDom(), ElementObj.$video.volume = 0; var e = this._document.querySelector("#player_pause"); null != e && e.click(), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = localStorage.getItem("_localSpeed") || toolOption.accelerator }, 3e3), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u8bfe\u7a0b\u5df2\u5168\u90e8\u90e8\u5206\u5b8c") : (this.currentIndex += 1, showTip("⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u8bfe\u7a0b", 3500), setTimeout(() => { this._o1() }, 4e3)) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play(), ElementObj.$video.playbackRate = localStorage.getItem("_localSpeed") || toolOption.accelerator }, 1500) }) }) } } qiangshi.ctxid = 18; class lanzhgoulgjs extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { let n = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e = document.querySelectorAll(".chapterlist .drop p"), t = document.querySelectorAll(".chapterlist .videoList p"); (e.length || t.length) && (clearInterval(n), ElementObj.$allTask = e.length ? e : t, this.getCurrentIndex()) }), 1e3) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { let n = []; ElementObj.$allTask.forEach((e, t) => { var e = e.querySelector(".class_percent"); e ? (e = e.innerText, n.push(parseInt(e))) : n.push(0) }), n.reverse(); for (var e = 0; e <= n.length - 1; e++) if (n[e] < 98) { this.currentIndex = n.length - e - 1; break } if (0 == this.currentIndex) { ElementObj.$allTask[1].querySelector("a").click(), yield sleep(4e3), ElementObj.$allTask = document.querySelectorAll(".chapterlist .drop p"), yield sleep(200); var t = ElementObj.$allTask[0].querySelector(".class_percent").innerText; if (!(parseInt(t) < 98)) return void alert("\u5f53\u524d\u79d1\u76ee\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c"); this.currentIndex = 0 } -1 != this.currentIndex ? (ElementObj.$handleSpeedUp.style.display = "none", showTip("🔉🔉🔉\u521d\u59cb\u5316\u5b8c\u6210,5s\u540e\u5f00\u59cb\u64ad\u653e", 3e3), this.pdPlayFn(location.href)) : alert("\u5f53\u524d\u79d1\u76ee\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(n => { let i = setInterval(() => { ElementObj.$video = document.querySelector("video"); var e = ElementObj.$video.src, t = document.querySelector("iframe"); e && (clearInterval(i), n(1)), t && (clearInterval(i), n(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { var e, t = ElementObj.$allTask[this.currentIndex].querySelector("a"), t = (yield sleep(300), t.click(), yield sleep(3e3), yield this.getVideoDom()); 1 == t && (clearInterval(this.listenVidoeStatusTimer), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0, yield sleep(200), ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), e = document.querySelector(".ckplayer-ckplayer"), this.changeHtml(e), this.reloadPage(), this.listenPageHide(), this.listenAbnormal(1), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { location.reload() }))), 2 == t && (e = document.querySelector("#thirdplayer"), this.changeHtml(e), this.reloadPage(), this.listenPageHide(), this.listenAbnormal(0)) }) } reloadPage() { return __awaiter(this, void 0, void 0, function* () { let e = 180, t = setInterval(() => { e <= 0 && (clearInterval(t), location.reload()), --e }, 1e3) }) } listenAbnormal(t) { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let n = 0; setInterval(() => { var e; n += 1, 0 == t ? this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60`) : (e = (ElementObj.$video.currentTime / 60).toFixed(2), this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f`)), document.querySelector(".layui-layer-btn0") && location.reload() }, 5e3) } changeHtml(t) { return __awaiter(this, void 0, void 0, function* () { var e = document.createElement("div"); e.setAttribute("class", "ctxstatsbox"), e.setAttribute("style", "\n width: 796px;\n height: 545px;\n background: #eae9e9;\n position: absolute;\n z-index: 10;\n overflow: scroll;\n top: 0;\n padding-left: 10px;\n "), t.appendChild(e), yield sleep(300), ElementObj.$ctxstatsbox = document.querySelector(".ctxstatsbox"), this.addInfo("🔉\u521d\u59cb\u5316\u5df2\u5b8c\u6210,\u6b63\u5728\u64ad\u653e"), this.addInfo("⚠️⚠️⚠️\u8bfe\u7a0b\u91c7\u7528\u5012\u7740\u64ad\u653e,\u8bf7\u52ff\u624b\u52a8\u66f4\u6362\u8bfe\u7a0b", 0) }) } addInfo(e, t) { 15 <= document.querySelectorAll(".ctxstatsbox_li").length && (ElementObj.$ctxstatsbox.innerHTML = ""); t = `
  • ${e}
  • `; ElementObj.$ctxstatsbox.innerHTML += t } listenPageHide() { let t; document.addEventListener("visibilitychange", () => { if (document.hidden) { let e = 0; t = setInterval(() => { 5 <= (e += 1) && this.addInfo("⚠️⚠️⚠️\u8bf7\u52ff\u957f\u65f6\u95f4\u9690\u85cf\u8be5\u5b66\u4e60\u9875\u9762", 0) }, 5e3) } else clearInterval(t) }) } } class beijingjiaoshi extends Main { constructor() { super(), this.taskLength = 0, this.topIndex = 0, this.parentIndex = -1, this.currentIndex = -1, this.videoplaying = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { var e, t = document.querySelector(".item_btn"); if (ElementObj.$topNode = document.querySelectorAll(".el-collapse-item__header"), t) yield sleep(2e3), t.click(), setTimeout(() => { window.close() }, 1500); else if (ElementObj.$topNode.length) e:for (var n of ElementObj.$topNode) { n.classList.contains("is-active") || (n.click(), yield sleep(1500)); for (e of n.parentElement.nextSibling.querySelectorAll("tr.el-table__row")) if ("100%" != e.querySelector(".el-progress-bar__inner").style.width) { MyTool.setValue("homeUrl", location.href), e.querySelector(".btn.to-study").click(); break e } } else { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$allTask = document.querySelectorAll(".course-info .video-title"), ElementObj.$allTask.length && (clearInterval(e), this.getCurrentIndex()) }), 1e3) } }) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$topNode = document.querySelectorAll(".el-collapse-item"), yield sleep(200); let t = ElementObj.$topNode.length, i = setInterval(() => __awaiter(this, void 0, void 0, function* () { this.topIndex >= t - 1 && clearInterval(i), yield sleep(2e3); var e = ElementObj.$topNode[this.topIndex]; 0 != this.topIndex && e.querySelector(".item-title-col").click(), yield sleep(300), ElementObj.$parentNodes = e.querySelectorAll(".el-table__row"), yield sleep(300), ElementObj.$parentNodes.forEach((t, n) => __awaiter(this, void 0, void 0, function* () { var e; "\u8bfe\u7a0b:100%" != t.querySelector(".course_num").innerText && -1 == this.parentIndex && (clearInterval(i), this.parentIndex = n, e = t.querySelector(".to-study"), yield sleep(200), e.click(), setTimeout(() => { window.close() }, 1500)) })), this.topIndex += 1 }), 3e3) }) } getDoing() { return new Promise(n => { let i = !1; ElementObj.statusEles = document.querySelectorAll(".li-item .el-progress-bar__inner"), ElementObj.statusEles.forEach((e, t) => { e = e.style.width; parseInt(e) <= 98 && 0 == i && (i = !0, n(t)) }), i || n(0) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$allTask.forEach((e, t) => { "100%" != e.querySelector(".four").innerText && -1 == this.currentIndex && (this.currentIndex = t) }), ElementObj.$handleSpeedUp.style.display = "none", showTip("🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3); var e = ElementObj.$allTask[this.currentIndex]; yield sleep(200), e.click(), setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), yield this.getVideoDom(), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0; var e = document.querySelector(".xgplayer-start"); yield sleep(200), e.click(), ElementObj.$video.playbackRate = toolOption.accelerator, this.punchCard(), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.listenVidoeStatus(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? (setTimeout(() => { window.close() }, 1500), e = MyTool.getValue("homeUrl"), location.replace(e)) : (this.currentIndex += 1, e = ElementObj.$allTask[this.currentIndex], yield sleep(300), e.click(), setTimeout(() => { this._o1() }, 4500)) })), ElementObj.$video.addEventListener("pause", () => { }), ElementObj.$video.addEventListener("playing", () => { }), ElementObj.$video.addEventListener("waiting", () => { }) }) } listenVidoeStatus() { this.timer = setInterval(() => { ElementObj.$video = document.querySelector("video"), !ElementObj.$video || ElementObj.$video.paused && (ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0, ElementObj.$video.play()) }, 3e3) } punchCard() { setInterval(() => { var e = document.querySelector("#comfirmClock"); e && e.click() }, 5e3) } } class qingyangzgzjzj extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this._init() } _init() { let e = setInterval(() => { ElementObj.$parentNodes = document.querySelectorAll(".swiper-slide"), ElementObj.$parentNodes.length && (clearInterval(e), this.getParentIndex()) }, 1e3) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("\u6b63\u5728\u521d\u59cb\u5316", 1500), ElementObj.$parentNodes.forEach((e, t) => { e = e.querySelector(".progresstext").innerText; parseInt(e) < 97 && -1 == this.parentIndex && (this.parentIndex = t, ElementObj.$parentNodes[this.parentIndex].querySelector(".left-img").click()) }), -1 != this.parentIndex ? this.getCurrentIndex() : alert("\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") }) } _getParentIndex() { let e = 0; for (var t = 0; t <= ElementObj.$parentNodes.length - 1; t++) { var n = ElementObj.$parentNodes[t].querySelector(".progresstext").innerText; if (parseInt(n) < 95) { e = t; break } } return e } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$allTask = document.querySelectorAll(".class-catlog ul li ul li"), yield sleep(2e3), ElementObj.$allTask[0].click(), this.currentIndex = 0, ElementObj.$handleSpeedUp.style.display = "none", showTip("🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u81ea\u52a8\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 3e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), clearInterval(this.timer2), yield this.getVideoDom(), ElementObj.$video = document.querySelector("video"), ElementObj.$video.volume = 0, ElementObj.$video.currentTime = 0, ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$video.play(), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.listenVidoeStatus(), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })) }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } listenVidoeStatus() { this.timer = setInterval(() => { ElementObj.$video = document.querySelector("video"), !ElementObj.$video || ElementObj.$video.paused && (ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0, ElementObj.$video.play()) }, 3e3) } listenRebort() { this.timer2 = setInterval(() => { var e; "100%" == (null == (e = document.querySelector(".progress")) ? void 0 : e.querySelectorAll("span")[1].innerText.trim()) && location.reload() }, 3e3) } playNext() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$allTask = document.querySelectorAll(".class-catlog ul li ul li"), yield sleep(1500), this.currentIndex >= ElementObj.$allTask.length - 1 && location.reload() }) } } class lanzhouwenli extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this._init() } _init() { let e = setInterval(() => { ElementObj.$allTask = document.querySelectorAll(".video"), ElementObj.$allTask.length && (clearInterval(e), this.getCurrentIndex()) }, 1e3) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$allTask.forEach((e, t) => { e = e.querySelector(".el-progress__text").innerText; parseInt(e) < 96 && -1 == this.currentIndex && (this.currentIndex = t) }), -1 != this.currentIndex ? (showTip("🔉🔉🔉\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e", 3e3), yield sleep(2e3), ElementObj.$allTask[this.currentIndex].click(), yield sleep(2500), this._o1()) : alert("\u5f53\u524d\u7ae0\u8282\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { yield this.getVideoDom(), document.querySelector(".volume-icon").classList.add("mute"), ElementObj.$video.volume = 0, yield sleep(200), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$video.play(), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; yield sleep(1500), this.currentIndex >= ElementObj.$allTask.length - 1 && (this.parentIndex += 1, yield sleep(200), ElementObj.$parentNodes[this.parentIndex].querySelector(".left-img").click(), this.parentIndex >= ElementObj.$parentNodes.length - 1) ? alert("\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c\u4e86") : (e = document.querySelector(".videoleft img"), yield sleep(200), e.click(), showTip("\u6b63\u5728\u5207\u6362\u8bfe\u7a0b", 3e3), setTimeout(() => __awaiter(this, void 0, void 0, function* () { this.currentIndex += 1; var e = ElementObj.$allTask[this.currentIndex]; yield sleep(2e3), null != e && e.click(), setTimeout(() => { this._o1() }, 5e3) }), 5500)) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.play() }, 4e3) }) }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } } class guojiazhihuijiaoyu extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e = document.querySelectorAll(".video-title .four"); e.length && (clearInterval(t), ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask = e, this.getCurrentIndex()) }), 1e3) } getCurrentIndex() { ElementObj.$allTask.forEach((e, t) => { "100%" != e.innerText && -1 == this.currentIndex && (this.currentIndex = t) }), -1 == this.currentIndex && (this.currentIndex = 0), showTip("🔉🔉🔉\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u81ea\u52a8\u64ad\u653e", 3e3), this._o1() } play() { return __awaiter(this, void 0, void 0, function* () { var e = ElementObj.$allTask[this.currentIndex], e = (yield sleep(300), e.click(), yield sleep(3e3), document.querySelector("video").volume = 0, document.querySelector(".xgplayer-icon-play").click(), yield this.getVideoDom(), ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator, this.listenVidoeStatus(), document.querySelector(".layui-layer-btn0")); e && e.click(), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.listenTopic(), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e = document.querySelector(".layui-layer-btn0"); yield sleep(3e3), e && e.click(), this.currentIndex += 1, setTimeout(() => { this._o1() }, 5e3) })) }) } listenTopic() { setInterval(() => { try { document.querySelector("#submit") && this.answerTopic() } catch (e) { } }, 5e3) } answerTopic() { return __awaiter(this, void 0, void 0, function* () { var e = document.querySelectorAll(".choice li")[0]; yield sleep(200), e.click(); let t = document.querySelector("#submit"); yield sleep(1e3), t.click(), yield sleep(2e3), t = document.querySelector("#submit"), yield sleep(200), t.click(), yield sleep(4500); e = document.querySelector(".layui-layer-btn0"); yield sleep(200), e.click() }) } listenVidoeStatus() { this.timer = setInterval(() => { ElementObj.$video = document.querySelector("video"), !ElementObj.$video || ElementObj.$video.paused && (ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0, ElementObj.$video.play()) }, 1e4) } } class lanzhouchengren extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.videoplaying = 3, this.loadedCount = 0, this.type = 1, this._init() } _init() { let e = setInterval(() => { "/courseVideo/index" == location.pathname ? ElementObj.$allTask = document.querySelectorAll(".ant-tree-node-content-wrapper-normal .chapter-tree-level2") : ElementObj.$allTask = document.querySelectorAll(".activity li"), ElementObj.$allTask.length && (clearInterval(e), this.getCurrentIndex()) }, 1e3) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { if ("/courseVideo/index" == location.pathname) { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) { var t = ElementObj.$allTask[e].querySelector(".right"); if (!t) { this.currentIndex = e; break } if ("\u5df2\u5b8c\u6210" != t.querySelector(".percent-text").innerText) { this.currentIndex = e; break } } if (-1 == this.currentIndex) return void alert("\u6240\u6709\u8bfe\u7a0b\u5df2\u64ad\u653e\u5b8c"); ElementObj.$allTask[e].click() } else ElementObj.$allTask.forEach((e, t) => { e.classList.contains("cur") && (this.currentIndex = t) }), -1 == this.currentIndex && (this.currentIndex = 0); ElementObj.$handleSpeedUp.style.display = "none", showTip("🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), yield sleep(3e3), this._o1() }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer); var e = yield this.getVideoDom(); yield sleep(200), 1 == e && setTimeout(() => __awaiter(this, void 0, void 0, function* () { this.currentIndex += 1; var e = ElementObj.$allTask[this.currentIndex], e = null == e ? void 0 : e.querySelector("h3"); yield sleep(2e3), null != e && e.click() }), 3e3), 2 == e && (ElementObj.$video.volume = 0, ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$video.play(), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", "/venus/study/activity/video/study.do" == location.pathname && (this.listenVidoeStatus(ElementObj.$video, () => { var e = ElementObj.$allTask[this.currentIndex], e = null == e ? void 0 : e.querySelector("h3"); null != e && e.click() }), this.reloadPage()), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { this.videoplaying = 1, setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1e3) }), ElementObj.$video.addEventListener("playing", () => { this.videoplaying = 2 })) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { if (this.videoplaying = 3, yield sleep(1500), this.currentIndex >= ElementObj.$allTask.length - 1) alert("\u5f53\u524d\u7ae0\u8282\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c\u4e86"); else { this.currentIndex += 1; let e, t = ElementObj.$allTask[this.currentIndex]; "/courseVideo/index" == location.pathname ? (null != (e = t) && e.click(), setTimeout(() => { this._o1() }, 3e3)) : (e = null == t ? void 0 : t.querySelector("h3"), yield sleep(2e3), null != e && e.click()) } }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$myFrame = document.querySelector("#myFrame"), ElementObj.$video && (clearInterval(t), this.type = 2, e(2)), ElementObj.$myFrame && (clearInterval(t), this.type = 1, e(1)) }, 1e3) }) } reloadPage() { return __awaiter(this, void 0, void 0, function* () { let e = 600, t = 0, n = setInterval(() => { (t += 1) % 15 == 0 && console.clear(), e <= 0 && (clearInterval(n), location.reload()), --e }, 1e3) }) } } class tsbtchinamde extends Main { constructor() { super(), this.taskLength = 0, this.studyType = 1, this.currentIndex = -1, this._init() } _init() { let n = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e = document.querySelectorAll(".chapterlist .item p"), t = document.querySelectorAll(".chapterlist .chapter-li .drop p"); (e.length || t.length) && (clearInterval(n), ElementObj.$allTask = t.length ? t : e, this.getCurrentIndex(), ElementObj.$handleSpeedUp.style.display = "none") }), 1e3) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { let n = []; ElementObj.$allTask.forEach((e, t) => { var e = e.querySelector(".class_percent"); e ? (e = e.innerText, n.push(parseInt(e))) : n.push(0) }), n.reverse(); for (var e = 0; e <= n.length - 1; e++) if (n[e] < 98) { this.currentIndex = n.length - e - 1; break } if (0 == this.currentIndex) { ElementObj.$allTask[1].querySelector("a").click(), yield sleep(4e3), ElementObj.$allTask = document.querySelectorAll(".chapterlist .drop p"), yield sleep(200); var t = ElementObj.$allTask[0].querySelector(".class_percent").innerText; if (!(parseInt(t) < 98)) return void alert("\u5f53\u524d\u79d1\u76ee\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c"); this.currentIndex = 0 } -1 != this.currentIndex ? (ElementObj.$handleSpeedUp.style.display = "none", showTip("🔉🔉🔉\u521d\u59cb\u5316\u5b8c\u6210,5s\u540e\u5f00\u59cb\u64ad\u653e", 3e3), this._o1()) : alert("\u5f53\u524d\u79d1\u76ee\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video.src ? (clearInterval(t), e(1)) : (clearInterval(t), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer); var e = ElementObj.$allTask[this.currentIndex].querySelector("a"), e = (yield sleep(300), e.click(), this.studyType = yield this.getVideoDom(), 1 == this.studyType && (ElementObj.$video.volume = 0, ElementObj.$video.setAttribute("muted", "muted"), yield sleep(200), ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() })), 1 == this.studyType ? $el("#player") : $el("#thirdplayer")); this.changeHtml(e), this.reloadPage(), this.listenPageHide(), 1 == this.studyType ? this.listenAbnormal(1) : this.listenAbnormal(0), setTimeout(() => { this.addInfo("⚠️⚠️⚠️\u8bfe\u7a0b\u91c7\u7528\u5012\u7740\u64ad\u653e,\u8bf7\u52ff\u624b\u52a8\u66f4\u6362\u8bfe\u7a0b", 0) }, 1e3), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { location.reload() })) }) } reloadPage() { return __awaiter(this, void 0, void 0, function* () { let e = 360, t = setInterval(() => { e <= 0 && (clearInterval(t), location.reload()), --e }, 1e3) }) } listenAbnormal(t) { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let n = 0; setInterval(() => { var e; n += 1, 0 == t && this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60`), 1 == t && (e = (ElementObj.$video.currentTime / 60).toFixed(2), this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f`)), document.querySelector(".layui-layer-btn0") && location.reload() }, 5e3) } } tsbtchinamde.ctxid = 26; class zjzjsrc extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this.wrapParentIndex = 0, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e; "/member/project_toMyCourseList.page" == location.pathname && (clearInterval(t), document.querySelectorAll("td .btn-xs")[this.wrapParentIndex].click(), yield sleep(2e3), e = yield this.getParentIndex(), null != (e = document.querySelectorAll(".panel-body")[0].querySelectorAll("tbody tr")[e].querySelector(".btn-xs[name='btn1']")) && e.click(), yield sleep(2e3), ElementObj.$allTask = document.querySelectorAll(".btn-xs[name='btn1']"), this.step2()), ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), ElementObj.$handleSpeedUp.style.display = "none", this._o1()) }), 1e3) }) } getParentIndex() { var a; return __awaiter(this, void 0, void 0, function* () { let e = -1, t = document.querySelectorAll(".panel-body")[0].querySelectorAll("tbody tr"); for (var n = 0; n <= t.length - 1; n++) { var i = "2j.zjjsrc.cn" === location.host ? 4 : 6; if ("\u672a\u5f00\u59cb\u5b66\u4e60" == t[n].querySelectorAll("td")[i].innerText) { e = n; break } } if (-1 == e) { var l = document.querySelector("#option1").lastChild, o = null == (a = document.querySelector("#option1")) ? void 0 : a.querySelector("a[title='Go to next page']"); if (l.classList.contains("active")) return e; o.click(), yield sleep(2e3), e = yield this.getParentIndex() } return e }) } getCurrentIndex() { showTip("\u6b63\u5728\u521d\u59cb\u5316"), ElementObj.$handleSpeedUp.style.display = "none"; let e = document.querySelectorAll(".progress-bar"), t = -1; for (var n = 0; n <= e.length - 1; n++) { var i = e[n].style.width; if (100 != parseInt(i)) { t = n; break } } return t } step2() { var e; return __awaiter(this, void 0, void 0, function* () { let t = 0, n = null == (e = document.querySelector("#myModal .panel-body")) ? void 0 : e.querySelectorAll("tbody tr"), i = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e = n[t].querySelector(".btn-xs[name='btn2']"), e = (null != e && e.click(), yield sleep(500), this.getCurrentIndex()); -1 != e && (clearInterval(i), e = document.querySelectorAll("#myModal1 tbody tr")[e].querySelector("a"), GM_openInTab(e.href, {active: !0}), localStorage.setItem("learnStatus", "-1"), "2j.zjjsrc.cn" === location.host && window.addEventListener("storage", e => { "learnStatus" === e.key && "done" === e.newValue && location.reload() }), "2j.zjjsrc.cn" !== location.host) && setTimeout(() => { window.close() }, 15e3), t++ }), 2e3) }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), yield this.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.setAttribute("muted", "muted"), yield sleep(200), ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator, this.changeHtml($el("#example_video_1")), this.listenPlayTime(), this.listenPageHide(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.videoplaying = -1, "2j.zjjsrc.cn" === location.host ? localStorage.setItem("learnStatus", "done") : GM_openInTab("https://zj.zjjsrc.cn/member/project_toMyCourseList.page", {active: !0}), setTimeout(() => { window.close() }, 15e3) })), ElementObj.$video.addEventListener("pause", () => { clearInterval(void 0), setTimeout(() => { document.querySelector(".vjs-play-control").click() }, 100) }) }) } listenPlayTime() { let n = 0; this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () { n += 1; var e = ((null == (e = ElementObj.$video) ? void 0 : e.currentTime) / 60).toFixed(2), t = null == (t = ElementObj.$video) ? void 0 : t.duration; this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t / 60}\u5206\u949f`) }), 5e3) } } zjzjsrc.ctxid = 26; class lzrejxjy extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$handleSpeedUp.style.display = "none"; var e = document.querySelectorAll(".my-center2RM .pull-left a.trans")[1]; e ? (clearInterval(t), GM_setValue("homeUrl", location.href), null != e && e.click(), showTip("🔉\u6b63\u5728\u521d\u59cb\u5316"), yield sleep(2e3), ElementObj.$parentNodes = document.querySelectorAll(".class2Li"), this.findParentIndex()) : document.querySelectorAll(".learn-menu-cell").length && (clearInterval(t), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { var n; return __awaiter(this, void 0, void 0, function* () { "zjdx-kfkc.webtrn.cn" != location.host && ((e = document.querySelectorAll(".learn-menu-cell")[1]).classList.contains("learn-menu-cur") || e.querySelector("a").click(), yield sleep(3e3)); var e = document.querySelector(".contentIframe"); ElementObj._document = e.contentWindow.document, ElementObj.$allTask = ElementObj._document.querySelectorAll(".s_point"), showTip("\u6b63\u5728\u521d\u59cb\u5316"), ElementObj.$handleSpeedUp.style.display = "none"; for (var t = 0; t <= ElementObj.$allTask.length - 1; t++) if (!ElementObj.$allTask[t].querySelector(".item_done_icon").classList.contains("done_icon_show")) { this.currentIndex = t; break } -1 == this.currentIndex ? (e = GM_getValue("homeUrl", null), GM_openInTab(e, {active: !0}), setTimeout(() => { window.close() }, 1500)) : (null != (n = ElementObj.$allTask[this.currentIndex]) && n.click(), showTip("\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), this._o1()) }) } findParentIndex() { return __awaiter(this, void 0, void 0, function* () { let i; ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$parentNodes.forEach((e, t) => { var n = e.querySelector(".color-theme").innerText; parseInt(n) <= 98 && -1 == this.currentIndex && (this.currentIndex = t, i = e.querySelector("a.btn-theme")) }), -1 != this.currentIndex ? (i.click(), setTimeout(() => { window.close() }, 1500)) : alert("\u5168\u90e8\u8bfe\u7a0b\u5df2\u5b66\u5b8c") }) } getVideoDom() { return new Promise(t => { let n = 0, i = setInterval(() => { 7 < n && (clearInterval(i), t(2)); var e = null == (e = ElementObj._document.querySelector("#mainFrame")) ? void 0 : e.contentWindow.document; ElementObj.$video = null == e ? void 0 : e.querySelector("video"), ElementObj.$video && (clearInterval(i), t(1)), n += 1 }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 2 == e && this.playNext(), 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.setAttribute("muted", "muted"), yield sleep(200), ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator, this.listenRebort(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { ElementObj.$video.volume = 0, ElementObj.$video.play() })) }) } updateSpeedElement(e) { localStorage.setItem("_localSpeed", e.toString()), ElementObj.$video.playbackRate = e } listenRebort() { this.listenRebortTime = setInterval(() => { let e = document.querySelector(".layui-layer-btn0"); e && setTimeout(() => { e.click(), ElementObj.$video.play() }, 3e3) }, 1e4) } playNext() { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? (e = GM_getValue("homeUrl", null), GM_openInTab(e, {active: !0}), setTimeout(() => { window.close() }, 1500)) : (this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), showTip("🔉\u6b63\u5728\u5207\u6362\u8bfe\u7a0b"), setTimeout(() => { this._o1() }, 5e3)) } } lzrejxjy.ctxid = 29; class xuzhouyikedaxue extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this.parentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e = document.querySelector("#courseware_main_menu").querySelector("a"); e && (clearInterval(t), e.click(), this.findParentIndex()) } catch (e) { } }), 1e3) }) } findParentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("🔉\u6b63\u5728\u521d\u59cb\u5316", 2500), yield sleep(4500), ElementObj.$handleSpeedUp.style.display = "none"; var e = document.querySelector(".contentIframe").contentWindow.document; ElementObj.$parentNodes = e.querySelectorAll(".vcon li"), ElementObj.$parentNodes.forEach((e, t) => { e = e.querySelector("span"); (e.classList.contains("undo") || e.classList.contains("doing")) && -1 == this.parentIndex && (this.parentIndex = t) }), -1 != this.parentIndex ? (ElementObj.$parentNodes[this.parentIndex].querySelector("a").click(), this.getCurrentIndex()) : alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u53d1\u5b8c") }) } getCurrentIndex() { var t; return __awaiter(this, void 0, void 0, function* () { showTip("\u6b63\u5728\u521d\u59cb\u5316", 2500), yield sleep(4500); var e = document.querySelector(".contentIframe"); ElementObj._document = e.contentWindow.document, ElementObj.$allTask = ElementObj._document.querySelectorAll(".menub"), this.currentIndex = 0, null != (t = ElementObj.$allTask[this.currentIndex]) && t.click(), showTip("\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), this._o1() }) } getVideoDom() { return new Promise(t => { let n = setInterval(() => { var e = document.querySelector(".contentIframe"), e = (ElementObj._document = e.contentWindow.document, ElementObj._document.querySelector("#mainFrame").contentDocument); ElementObj.$video = e.querySelector("video"), ElementObj.$video ? (clearInterval(n), t(1)) : (e.querySelector("#content_frame"), clearInterval(n), t(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer2), unsafeWindow.alert = () => { }; var e = yield this.getVideoDom(); this.listenRebort(), 1 == e && (ElementObj.$video.volume = 0, yield sleep(200), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3) }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { yield sleep(3e3), this.playNext() }))), 2 == e && (this.timer2 = setTimeout(() => { this.playNext() }, 7e3)) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e = document.querySelector(".layui-layer-btn a"); e && (e.click(), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3)) }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u64ad\u653e\u5b8c\u6210,\u6b63\u5728\u5207\u6362\u8bfe\u7a0b", 3500), this.currentIndex >= ElementObj.$allTask.length - 1 ? (this.parentIndex += 1, ElementObj.$parentNodes[this.parentIndex].querySelector("a").click(), setTimeout(() => { this.getCurrentIndex() }, 4500)) : (this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 4e3)) }) } } xuzhouyikedaxue.ctxid = 26; class xibeisfzyjy extends Main { constructor() { super(), this.studyType = 2, this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.swiperIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let n = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e = document.querySelectorAll(".el-tree-node"), t = document.querySelectorAll(".m-chapterList .section"); (e.length || t.length) && (this.studyType = e.length ? 2 : 1, ElementObj.$allTask = e.length ? e : t, clearInterval(n), this.getCurrentIndex()), ElementObj.$parentNodes = document.querySelectorAll(".project-courseBottom"), ElementObj.$parentNodes.length && (clearInterval(n), this.getParentIndex()), "preview.dccloud.com.cn" == location.host && (clearInterval(n), yield sleep(1500), window.close()) } catch (e) { } }), 1e3) }) } getParentIndex() { for (var e = 0; e <= ElementObj.$parentNodes.length - 1; e++) if ("\u5df2\u5b66\u4e60" != ElementObj.$parentNodes[e].querySelector("span")) { this.parentIndex = e; break } -1 == this.parentIndex && alert("\u8bfe\u7a0b\u5df2\u5168\u90e8\u5b66\u5b8c"), ElementObj.$parentNodes[e].querySelector(".project-courseButton").click() } getSwiperIndex() { var n; return __awaiter(this, void 0, void 0, function* () { if (ElementObj.$video = document.querySelector("video"), yield sleep(200), ElementObj.$video) if (ElementObj.$swiperItem = document.querySelectorAll(".public-articleSlideList"), ElementObj.$swiperItem.length) { for (var e, t = 0; t <= ElementObj.$swiperItem.length - 1; t++) if ("\u5df2\u5b66\u4e60" != ElementObj.$swiperItem[t].querySelector(".video-status").innerText) { this.swiperIndex = t; break } -1 == this.swiperIndex ? this.playNext() : 0 == this.swiperIndex ? this._o1() : (ElementObj.$swiperItem[this.swiperIndex].querySelector(".el-icon-video-play").click(), showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 3500), e = null == (n = document.querySelector(".el-message-box__btns")) ? void 0 : n.lastChild, yield sleep(2e3), e.click(), setTimeout(() => { this._o1() }, 5e3)) } else this._o1(); else ElementObj.$docs = document.querySelectorAll(".abcd"), ElementObj.$docs.length && this.playDoc() }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$handleSpeedUp.style.display = "none", showTip("\u6b63\u5728\u521d\u59cb\u5316", 2500), yield sleep(3500); let n = 1 == this.studyType ? "section-cur" : "study"; ElementObj.$allTask.forEach((e, t) => { 1 == this.studyType && e.classList.contains(n) && (this.currentIndex = t), 2 == this.studyType && "\u5df2\u5b66\u4e60" != e.querySelector("i").title && -1 == this.currentIndex && (this.currentIndex = t) }), -1 != this.currentIndex ? (2 == this.studyType && -1 != this.currentIndex && this.playNext(this.currentIndex - 1), showTip("⚠️⚠️⚠️\u521d\u59cb\u5316,\u8bf7\u7a0d\u540e", 3e3), 1 == this.studyType && this._o1(), 2 == this.studyType && this.getSwiperIndex()) : alert("\u5f53\u524d\u8bfe\u7a0b\u7ae0\u8282\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { if (clearInterval(this.listenVidoeStatusTimer), clearInterval(this.timer), yield this.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.setAttribute("muted", "muted"), yield sleep(200), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), 2 == this.studyType) { let e = yield this.getDocIndex(); setTimeout(() => { this.eachPlayDoc(e) }, 3e3), this.changeHtml($el("#video")), this.listenPageHide(), this.listenPlayTime(), this.reloadPage() } this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3) }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; showTip("🔉\u6b63\u5728\u5207\u6362\u8bfe\u7a0b", 2500), 2 == this.studyType && (this.swiperIndex >= ElementObj.$swiperItem.length - 1 ? location.reload() : (this.swiperIndex += 1, ElementObj.$swiperItem[this.swiperIndex].querySelector(".el-icon-video-play").click(), showTip("⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u89c6\u9891", 5e3), e = null == (e = document.querySelector(".el-message-box__btns")) ? void 0 : e.lastChild, yield sleep(2e3), e.click(), setTimeout(() => { this._o1() }, 5e3))), 1 == this.studyType && (this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u7ae0\u8282\u8bfe\u7a0b\u5df2\u5b66\u5b8c") : (this.currentIndex += 1, null != (e = ElementObj.$allTask[this.currentIndex].querySelector("a")) && e.click())) })) }) } getDocIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$docs = document.querySelectorAll(".abcd .file-box"), yield sleep(200); let e = -1; for (var t = 0; t <= ElementObj.$docs.length - 1; t++) if ("( \u5df2\u5b8c\u6210 )" != ElementObj.$docs[t].querySelector(".fs12").innerText) { e = t; break } return e }) } playDoc(e) { return __awaiter(this, void 0, void 0, function* () { var e = yield this.getDocIndex(); -1 != e ? this.eachPlayDoc(e, () => { setTimeout(() => __awaiter(this, void 0, void 0, function* () { this.playNext() }), 2e3) }) : this.playNext() }) } eachPlayDoc(t = 0, n) { if (-1 != t) { let e = setInterval(() => { t >= ElementObj.$docs.length - 1 && (clearInterval(e), "function" == typeof n) && n(), ElementObj.$docs[t].querySelector("button").click(), t += 1 }, 2e3) } } playNext(t) { var n; return __awaiter(this, void 0, void 0, function* () { var e; null != t && (this.currentIndex = t), this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u7ae0\u8282\u8bfe\u7a0b\u5df2\u5b66\u5b8c") : (this.currentIndex += 1, null != (e = ElementObj.$allTask[this.currentIndex].querySelectorAll("span")[1]) && e.click(), yield sleep(2e3), (e = null == (n = document.querySelector(".el-message-box__btns")) ? void 0 : n.lastChild) && e.click(), showTip("⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u4e0b\u4e00\u8282", 4e3), setTimeout(() => { this.getSwiperIndex() }, 4500)) }) } listenPlayTime() { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let t = 0; this.timer = setInterval(() => { t += 1; var e = (ElementObj.$video.currentTime / 60).toFixed(2); this.addInfo(`\u540e\u53f0\u5b66\u4e60${t}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f`) }, 5e3) } reloadPage() { return __awaiter(this, void 0, void 0, function* () { let e = 360, t = setInterval(() => { e <= 0 && (clearInterval(t), location.reload()), --e }, 1e3) }) } } xibeisfzyjy.ctxid = 26; class henangongshe extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.videoplaying = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e = document.querySelectorAll("#bxkBtudyDiv a"); e.length && (clearInterval(t), this.getParentIndex(e)), ElementObj.$allTask = document.querySelectorAll(".course-info .video-title"), ElementObj.$allTask.length && (clearInterval(t), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none" }), 1e3) }) } getParentIndex(i) { return __awaiter(this, void 0, void 0, function* () { i[0].click(), showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 3e3), yield sleep(3e3), ElementObj.$parentNodes = document.querySelectorAll("tbody tr"); for (var e = 0; e <= ElementObj.$parentNodes.length - 1; e++) { var t = ElementObj.$parentNodes[e].querySelector("span").innerText; if (parseInt(t) <= 98) { this.parentIndex = e; break } } if (-1 == this.parentIndex) for (i[1].click(), yield sleep(3e3), ElementObj.$parentNodes = document.querySelectorAll("tbody tr"), e = 0; e <= ElementObj.$parentNodes.length - 1; e++) { var n = ElementObj.$parentNodes[e].querySelector("span").innerText; if (parseInt(n) <= 98) { this.parentIndex = e; break } } -1 == this.parentIndex ? alert("\u5168\u90e8\u8bfe\u7a0b\u5df2\u5b66\u5b8c") : (GM_setValue("homeUrl", location.href), ElementObj.$parentNodes[this.parentIndex].querySelector("button").click(), setTimeout(() => { window.close() }, 5500)) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 3500), ElementObj.$allTask.forEach((e, t) => { "100%" != e.querySelector(".four").innerText && -1 == this.currentIndex && (this.currentIndex = t) }), ElementObj.$handleSpeedUp.style.display = "none", showTip("🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3); var e = ElementObj.$allTask[this.currentIndex]; yield sleep(200), e.click(), setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), yield this.getVideoDom(), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0; var e = document.querySelector(".xgplayer-start"); yield sleep(200), e.click(), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.punchCard(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? (setTimeout(() => { window.close() }, 1500), e = GM_getValue("homeUrl", null), GM_openInTab(e, {active: !0})) : (this.currentIndex += 1, e = ElementObj.$allTask[this.currentIndex], yield sleep(300), e.click(), setTimeout(() => { this._o1() }, 4500)) })) }) } punchCard() { setInterval(() => { var e = document.querySelector("#comfirmClock"); e && e.click() }, 5e3) } updateSpeedElement(e) { localStorage.setItem("_localSpeed", e.toString()), ElementObj.$video.playbackRate = e } } class zgrtvu extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.videoplaying = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e = document.querySelector(".head_right button"); e && (clearInterval(t), e.click()), ElementObj.$allTask = document.querySelectorAll(".page-name"), ElementObj.$allTask.length && (clearInterval(t), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none" }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 3500), ElementObj.$allTask.forEach((e, t) => { e.classList.contains("complete") || -1 != this.currentIndex || (this.currentIndex = t) }), ElementObj.$handleSpeedUp.style.display = "none", showTip("🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3); var e = ElementObj.$allTask[this.currentIndex]; yield sleep(200), e.click(), setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), yield this.getVideoDom(), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0; var e = document.querySelector(".mejs__overlay-button"); yield sleep(200), e.click(), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.punchCard(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? (setTimeout(() => { window.close() }, 1500), e = document.querySelector(".back-btn"), yield sleep(200), e.click()) : (this.currentIndex += 1, e = ElementObj.$allTask[this.currentIndex], yield sleep(300), e.click(), setTimeout(() => { this._o1() }, 4500)) })) }) } punchCard() { setInterval(() => { var e = document.querySelector(".btn-submit"); e && e.click() }, 5e3) } } class henandikuang extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.videoplaying = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$parentNodes = document.querySelectorAll(".state-l"), ElementObj.$parentNodes.length ? (clearInterval(e), ElementObj.$parentNodes[0].querySelector(".btn span").click()) : (ElementObj.$parentNodes = document.querySelectorAll(".course-card-item"), ElementObj.$parentNodes.length && (clearInterval(e), this.getParentIndex()), ElementObj.$allTask = document.querySelectorAll(".pt5 li"), ElementObj.$allTask.length && (clearInterval(e), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none") }), 1e3) }) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { let e = -1; for (var t = 0; t < ElementObj.$parentNodes.length - 1; t++) { var n = ElementObj.$parentNodes[t].querySelector(".progress-bar").style.width; if (parseInt(n) < 98) { e = t; break } } -1 != e ? ElementObj.$parentNodes[t].querySelector("a").click() : alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u5b66\u5b8c,\u8bf7\u66f4\u6362\u5176\u5b83\u8bfe\u7a0b") }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 1500), ElementObj.$allTask.forEach((e, t) => { e = e.querySelector(".badge").innerText; 100 != parseInt(e) && -1 == this.currentIndex && (this.currentIndex = t) }), showTip("⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3); var e = ElementObj.$allTask[this.currentIndex]; yield sleep(200), e.click(), setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelectorAll("video")[1], ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), yield this.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? (e = document.querySelector("a.back"), yield sleep(200), e.click()) : (this.currentIndex += 1, e = ElementObj.$allTask[this.currentIndex], yield sleep(300), e.click(), setTimeout(() => { this._o1() }, 4500)) })) }) } } class tazhuanjipx extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.videoplaying = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { this._o1() }) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { this._o1() }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 1500), ElementObj.$allTask.forEach((e, t) => { e = e.querySelector(".badge").innerText; 100 != parseInt(e) && -1 == this.currentIndex && (this.currentIndex = t) }), showTip("⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3); var e = ElementObj.$allTask[this.currentIndex]; yield sleep(200), e.click(), setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelectorAll("video")[1] || document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), clearInterval(this.listenVidoeStatusTimer), yield this.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.listenTopic(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5168\u90e8\u8bfe\u7a0b\u5df2\u64ad\u653e\u5b8c") : setTimeout(() => { this._o1() }, 4500) })) }) } listenTopic() { this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e = document.querySelectorAll(".ccQuestionList li"); e.length && (clearInterval(this.timer), (MyTool.getValue("isRight") ? e[1] : e[0]).click(), yield sleep(3e3), (e = document.querySelector("#rightBtn")) ? (MyTool.setValue("isRight", !0), e.click()) : (MyTool.setValue("isRight", !1), null != (e = $el("#wrongBtn")) && e.click())) }), 1e4) } } class zhejiangtjj extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.videoplaying = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let i = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e, t = document.querySelectorAll(".course_2"), n = document.querySelectorAll("tbody tr.el-table__row"); (t.length || n.length) && (clearInterval(i), ElementObj.$parentNodes = t.length ? t : n, e = t.length ? 1 : 2, this.getParentIndex(e)), ElementObj.$allTask = document.querySelectorAll(".page-name"), ElementObj.$allTask.length && (clearInterval(i), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none" } catch (e) { } }), 1e3) }) } getParentIndex(t) { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 1500); let n = 1 == t ? 0 : -1; var e; ElementObj.$parentNodes.forEach((e, t) => { t > n && (e = e.querySelector(".el-progress__text").innerText, 100 != parseInt(e)) && -1 == this.currentIndex && (this.currentIndex = t) }), -1 == this.currentIndex && 2 == t ? (GM_openInTab("https://edu.tjj.zj.gov.cn/#/personal?componentId=ClassList&type=classlist", {active: !0}), setTimeout(() => { window.close() }, 3500)) : (showTip("⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), e = ElementObj.$parentNodes[this.currentIndex].querySelector("button"), yield sleep(200), e.click(), setTimeout(() => { location.reload() }, 3e3)) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 3500), ElementObj.$allTask.forEach((e, t) => { e.classList.contains("complete") || -1 != this.currentIndex || (this.currentIndex = t) }), ElementObj.$handleSpeedUp.style.display = "none", showTip("🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3); var e = ElementObj.$allTask[this.currentIndex]; yield sleep(200), e.click(), setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(t => { let n = setInterval(() => { var e = null == (e = document.querySelector("#playerFrame")) ? void 0 : e.contentDocument; ElementObj.$video = e.querySelector("video"), ElementObj.$video && (clearInterval(n), t(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), yield this.getVideoDom(), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0; var e = document.querySelector(".mejs__overlay-button"); yield sleep(200), e.click(), ElementObj.$video.playbackRate = toolOption.accelerator, ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.punchCard(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? (setTimeout(() => { window.close() }, 3500), e = document.querySelector(".back-btn"), yield sleep(200), e.click()) : (this.currentIndex += 1, e = ElementObj.$allTask[this.currentIndex], yield sleep(300), e.click(), setTimeout(() => { this._o1() }, 4500)) })) }) } punchCard() { setInterval(() => { var e = document.querySelector(".btn-submit"); e && e.click() }, 5e3) } } class jiangxizhipeizaixian extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".units_wrap_box___1ncip"), ElementObj.$allTask.length && (clearInterval(e), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none" } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 1500), ElementObj.$allTask.forEach((e, t) => { var n = e.querySelector(".progress_get_on___3TDga"), e = e.querySelector(".not_start___3dAwS"); (n || e) && -1 == this.currentIndex && (this.currentIndex = t) }), -1 == this.currentIndex && (this.currentIndex = 0), showTip("⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), ElementObj.$allTask[this.currentIndex].click(), showTip("⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), yield this.getVideoDom(), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3500), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u89c6\u9891\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") : (this.currentIndex += 1, e = ElementObj.$allTask[this.currentIndex], yield sleep(300), e.click(), setTimeout(() => { this._o1() }, 4500)) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) }) }) } listenRebort() { this.listenRebortTime = setInterval(() => { }, 1e4) } } class anhuijixujyzx extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let n = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e; try { ElementObj.$btn_dropdown = document.querySelector(".btn_dropdown"), null != (e = ElementObj.$btn_dropdown) && e.click(); var t = document.querySelector(".btn.btn-green"); t && (clearInterval(n), yield sleep(300), t.click()), ElementObj.$allTask = document.querySelectorAll(".list-order ul li a:not(.toggle_lesson)"), ElementObj.$allTask.length && (clearInterval(n), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none" } catch (e) { } }), 1e3) }) } getCurrentIndex() { var e; return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 1500), yield sleep(1500), "none" != $el("#sectionlist").style.display && null != (e = ElementObj.$btn_dropdown) && e.click(), setTimeout(() => { this._o1() }, 4500) }) } getIndex() { let e = 0; for (var t = 0; t <= ElementObj.$allTask.length - 1; t++) if (ElementObj.$allTask[t].parentElement.classList.contains("current")) { e = t; break } return e } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelectorAll("video"), 1 < ElementObj.$video.length ? ElementObj.$video = document.querySelectorAll("video")[1] : ElementObj.$video = document.querySelectorAll("video")[0], ElementObj.$video ? (clearInterval(t), e(1)) : (clearInterval(t), e(2)) }, 3e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.timer); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3500), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", this.listenPlayTime(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("🔉\u68c0\u6d4b\u5230\u6ca1\u6709\u89c6\u9891,3\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), e = this.getIndex(), (document.querySelector(".preNext.next") || (e = ElementObj.$allTask[e + 1], yield sleep(200), e)).click()) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { }) } listenPlayTime() { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let t = 0; this.timer = setInterval(() => { t += 1; let e = document.querySelector(".btn.btn-green"); e && (clearInterval(this.timer), showTip("🔉\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u5b66\u5b8c,3\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a"), setTimeout(() => { e.click() }, 3e3)) }, 3e3) } } class lanzhoudxgs extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.timer = null, this.listenVidoeStatusTimer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e; try { ElementObj.$btn_dropdown = document.querySelector("#catalogA"), null != (e = ElementObj.$btn_dropdown) && e.click(), ElementObj.$allTask = document.querySelectorAll("li.activity-node"), ElementObj.$allTask.length && (clearInterval(t), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none" } catch (e) { } }), 1e3) }) } getCurrentIndex() { var e; return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 1500), yield sleep(1500), "none" != $el("#toolsContentDiv").style.display && null != (e = ElementObj.$btn_dropdown) && e.click(); let n = []; ElementObj.$allTask.forEach((e, t) => { e.querySelector(".cedu-file-video") && n.push(e) }), ElementObj.$allTask = n, this.currentIndex = 0, setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(t => { let n = setInterval(() => { var e = document.querySelector(".vjs-big-play-button"); ElementObj.$video = document.querySelector("video"), ElementObj.$video && e && (clearInterval(n), t(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), yield this.getVideoDom(), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0; var e = document.querySelector(".vjs-big-play-button"); yield sleep(200), null != e && e.click(), yield sleep(2500), ElementObj.$video.pause(), setTimeout(() => { ElementObj.$video.currentTime -= 30, ElementObj.$video.play() }, 2500), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3500), this.changeHtml($el("#video_div")), this.listenPlayTime(), this.listenPageHide(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) }) }) } listenPlayTime() { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let t = 0; this.timer = setInterval(() => { t += 1; var e = (ElementObj.$video.currentTime / 60).toFixed(2); this.addInfo(`\u540e\u53f0\u5b66\u4e60${t}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f`), ElementObj.$video.currentTime >= ElementObj.$video.duration - 4 && this.playNext() }, 5e3) } listenVidoeStatus(t, n) { if (t) { let e = 0; this.timer2 = setInterval(() => { t.readyState < 4 && (this.addInfo(`\u68c0\u6d4b\u5230${e}\u6b21,\u89c6\u9891\u6b63\u5728\u52a0\u8f7d`, 0), 20 <= (e += 1)) && location.reload(), t.paused && (e += 1, "function" == typeof n) && (20 <= e ? location.reload() : n()) }, 3e3) } } playNext() { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891", 4500), yield sleep(5e3), this.currentIndex += 1; var e = ElementObj.$allTask[this.currentIndex]; yield sleep(300), e.querySelector(".cedu-file-video") ? e.click() : alert("\u5f53\u524d\u8bfe\u7a0b\u89c6\u9891\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") }) } } class jidianshejijiaoyu extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.swiperIndex = -1, this.timer = null, this.listenVidoeStatusTimer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { document.querySelector(".layui-layer-btn0") ? (clearInterval(e), this.playNext()) : (ElementObj.$allTask = document.querySelectorAll(".course_chapter_item"), ElementObj.$allTask.length && (clearInterval(e), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none") } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 1500), yield sleep(1500), ElementObj.$allTask.forEach((e, t) => { e.querySelector("i.fa-circle") || -1 != this.currentIndex || (this.currentIndex = t) }), -1 != this.currentIndex ? (ElementObj.$allTask[this.currentIndex].querySelector(".section_title").click(), showTip("⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316", 3500), setTimeout(() => { this.getSwiperIndex() }, 4500)) : alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") }) } getSwiperIndex() { ElementObj.$swiperItem = document.querySelectorAll("#menu_tarr_content .courseware_menu_item"), this.swiperIndex = -1; for (var e = 0; e <= ElementObj.$swiperItem.length - 1; e++) { var t = ElementObj.$swiperItem[e]; if (t.querySelector(".icon-note-video-learning")) { this.swiperIndex = e, t.click(), setTimeout(() => { this._o1() }, 3500); break } } -1 == this.swiperIndex && location.reload() } getVideoDom() { return new Promise(t => { let n = setInterval(() => { var e = document.querySelector(".vjs-big-play-button"); ElementObj.$video = document.querySelector("video"), ElementObj.$video && e && (clearInterval(n), t(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), yield this.getVideoDom(), ElementObj.$video.setAttribute("muted", "muted"), ElementObj.$video.volume = 0, yield sleep(2500), ElementObj.$video.play(), this.changeHtml($el(".video-play")), this.listenPlayTime(), this.listenPageHide(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) }) }) } listenPlayTime() { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let t = 0; this.timer = setInterval(() => { t += 1; var e = (ElementObj.$video.currentTime / 60).toFixed(2); this.addInfo(`\u540e\u53f0\u5b66\u4e60${t}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f`), document.querySelector(".complete") && (this.addInfo("✅✅✅,\u5f53\u524d\u89c6\u9891\u64ad\u653e\u5b8c\u6210,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891"), this.swiperIndex >= ElementObj.$swiperItem.length - 1 ? location.reload() : (this.swiperIndex += 1, $el("#right_tarr").click(), setTimeout(() => { this._o1() }, 3500))), ElementObj.$video.currentTime >= ElementObj.$video.duration - 4 && this.playNext() }, 5e3) } listenVidoeStatus(t, n) { if (t) { let e = 0; this.timer2 = setInterval(() => { t.readyState < 4 && (this.addInfo(`\u68c0\u6d4b\u5230${e}\u6b21,\u89c6\u9891\u6b63\u5728\u52a0\u8f7d`, 0), 20 <= (e += 1)) && location.reload(), t.paused && (e += 1, "function" == typeof n) && (20 <= e ? location.reload() : n()) }, 3e3) } } playNext() { return __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891", 4500), yield sleep(5e3); var e = document.querySelector(".layui-layer-btn0"); e && (e.click(), yield sleep(2e3), location.reload()) }) } } class ycjyluteducn extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this.parentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { window.alert = function () { }; let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e; ["/learnspace/learn/homework/blue/student/homework_complete.action", "/learnspace/course/test/coursewareTest_intoTestPage.action", "/learnspace/learn/learn/blue/content_video.action"].includes(location.pathname) ? (clearInterval(t), window.close()) : (e = document.querySelector("#courseware_main_menu").querySelector("a")) && (clearInterval(t), e.click(), yield this.findParentIndex()) }), 500) }) } findParentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("🔉\u6b63\u5728\u521d\u59cb\u5316", 2500), yield sleep(4500), unsafeWindow.alert = () => { }, ElementObj.$handleSpeedUp.style.display = "none"; var e = document.querySelector(".contentIframe"), t = e.contentWindow.document; e.contentWindow.alert = () => { }, ElementObj.$parentNodes = t.querySelectorAll(".vcon li"); for (let e = 0; e < ElementObj.$parentNodes.length; e++) { var n = ElementObj.$parentNodes[e], i = n.querySelector("span"), l = n.innerText.indexOf("\u7ec3\u4e60"), n = n.innerText.indexOf("\u8bfe\u7a0b\u4f5c\u4e1a"); if ((i.classList.contains("undo") || i.classList.contains("doing")) && -1 == this.parentIndex && -1 == l && -1 == n) { this.parentIndex = e, ElementObj.$parentNodes[e].querySelector("a").click(); break } } -1 != this.parentIndex ? yield this.getCurrentIndex() : alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u53d1\u5b8c") }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("\u6b63\u5728\u521d\u59cb\u5316", 2500); let t = setInterval(() => { var e = document.querySelector(".contentIframe"); ElementObj._document = e.contentWindow.document, ElementObj.$allTask = ElementObj._document.querySelectorAll(".menub"), ElementObj.$allTask.length && (clearInterval(t), this.currentIndex = 0, null != (e = ElementObj.$allTask[this.currentIndex]) && e.click(), showTip("\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), this._o1()) }, 1e3) }) } getVideoDom() { return new Promise(t => { let n = setInterval(() => { var e = ElementObj._document.querySelector("#mainFrame").contentDocument; ElementObj.$video = e.querySelector("video"), ElementObj.$video ? (clearInterval(n), t(1)) : (e.querySelector("#content_frame"), clearInterval(n), t(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer2), unsafeWindow.alert = () => { }; var e = yield this.getVideoDom(); this.listenRebort(), 1 == e && (ElementObj.$video.volume = 0, yield sleep(200), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3) }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { yield sleep(3e3), this.playNext() }))), 2 == e && (this.timer2 = setTimeout(() => { this.playNext() }, 7e3)) }) } listenRebort() { this.listenRebortTime = setInterval(() => { unsafeWindow.alert = function () { }; var e = document.querySelector(".layui-layer-btn a"); e && (e.click(), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3)) }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { unsafeWindow.alert = () => { }, showTip("✅✅✅\u64ad\u653e\u5b8c\u6210,\u6b63\u5728\u5207\u6362\u8bfe\u7a0b", 3500), this.currentIndex >= ElementObj.$allTask.length - 1 ? (this.parentIndex += 1, -1 != ElementObj.$parentNodes[this.parentIndex].innerText.indexOf("\u7ec3\u4e60") && (this.parentIndex += 1), ElementObj.$parentNodes[this.parentIndex].querySelector("a").click(), setTimeout(() => { this.getCurrentIndex() }, 4500)) : (this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), yield sleep(5e3), this._o1()) }) } } ycjyluteducn.ctxid = 26; class gdrcjxjyw extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e; (ElementObj.$parentNodes = document.querySelectorAll(".m-list .item"), ElementObj.$parentNodes.length) ? (clearInterval(t), this.getParentIndex()) : (ElementObj.$video = document.querySelector("video"), ElementObj.$video && "www.rcjxjy.com" == location.host ? (clearInterval(t), this._o1()) : (e = document.querySelectorAll(".player-table")[2], ElementObj.$allTask = e.querySelectorAll("td"), ElementObj.$allTask.length && (clearInterval(t), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none")) } catch (e) { } }), 1e3) }) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u6b63\u5728\u521d\u59cb\u5316,\u8bf7\u52ff\u70b9\u51fb", 3e3); let t = 0, n = setInterval(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$parentNodes[t].querySelector(".btn-continue-study").click(), yield sleep(500), ElementObj.$allTask = document.querySelectorAll(".video-item .f-cb"); for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if ("\u64ad\u653e\u5b8c\u6210" != ElementObj.$allTask[e].querySelector(".videoName").innerText) { clearInterval(n), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210"), ElementObj.$allTask[e].querySelector("a.u-btn").click(); break } t += 1 }), 3e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { let i = -1; ElementObj.$allTask.forEach((e, t) => { var n = e.querySelector(".playLine").innerText; 100 != parseInt(n) && -1 == this.currentIndex && (this.currentIndex = t), e.classList.contains("couBg") && (i = t) }), -1 != this.currentIndex ? (this.currentIndex != i && ElementObj.$allTask[this.currentIndex].querySelector("a").click(), showTip("⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3500), setTimeout(() => { this._o1() }, 4500)) : alert("\u5f53\u524d\u8bfe\u7a0b\u89c6\u9891\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") }) } getVideoDom() { return ElementObj.$handleSpeedUp.style.display = "none", new Promise(t => { let n = setInterval(() => { var e; ElementObj.$video = document.querySelector("video"), (ElementObj.$video || (e = document.querySelector("#c_frame").contentDocument, ElementObj.$video = e.querySelector("video"), ElementObj.$video)) && (clearInterval(n), t(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), yield this.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3500), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891", 4500), yield sleep(3e3), "www.rcjxjy.com" == location.host ? document.querySelector("a.u-btn.normal").click() : location.reload() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator }, 1500) }) }) } } class shixuetong extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask = document.querySelectorAll(".Nvideo-item li"), ElementObj.$allTask.length && (clearInterval(e), $el(".Nvideo-playbox").style.position = "relative", this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { this.currentIndex = 0, showTip("⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3500), setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(n), e(1)), 10 < t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.timer), clearInterval(this.timer2); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3500), this.changeHtml($el(".video")), this.listenPageHide(), this.listenPlayTime(), this.listenRebort(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator }, 1500) })), 2 == e && (showTip("⚠️⚠️⚠️\u68c0\u6d4b\u5230\u5f53\u524d\u4e0d\u662f\u89c6\u9891,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891", 4500), this.playNext()) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e, t; yield sleep(2e3), this.currentIndex >= ElementObj.$allTask.length - 1 ? (e = document.querySelector("#courseStudyBestMinutesNumber").innerText, t = document.querySelector("#courseStudyMinutesNumber").innerText, parseFloat(e) > parseFloat(t) && location.reload()) : (this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { var e = document.querySelector(".layui-layer-btn- a"); null != e && e.click(), this._o1() }, 4500)) }) } listenPlayTime() { showTip("⚠️⚠️⚠️\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let n = 0; this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () { n += 1; var e, t = (ElementObj.$video.currentTime / 60).toFixed(2); this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${t}\u5206\u949f`), n % 30 == 0 && (t = $el("#courseStudyBestMinutesNumber").innerText, null != (e = document.querySelector(".studyCourseTimeRefresh")) && e.click(), yield sleep(2e3), e = `✅✅✅\u672c\u8bfe\u7a0b\u6700\u957f\u53ef\u7d2f\u8ba1\u65f6\u95f4:${t}\u5206\u949f,\u60a8\u5df2\u6210\u529f\u5b66\u4e60${$el("#courseStudyMinutesNumber").innerText}\u5206\u949f`, this.addInfo(e, 0)) }), 5e3) } listenRebort() { this.timer2 = setInterval(() => { var e, t = document.querySelector("#codespan"); t && (clearInterval(this.timer2), e = document.querySelector("#code"), t = t.innerText, e.value = t, document.querySelector(".layui-layer-btn0").click(), this.listenRebort()) }, 8e3) } } class shandongenhualvyou extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { var e = document.querySelector("#dashboard-toolbar-nav li"); null != e && e.click(); let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll("li.task-item"), ElementObj.$allTask.length && (clearInterval(t), this.getCurrentIndex()), ElementObj.$handleSpeedUp.style.display = "none" } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (let e = 0; e < ElementObj.$allTask.length; e++) if (!ElementObj.$allTask[e].querySelector(".es-icon-iccheckcircleblack24px")) { this.currentIndex = e; break } showTip("⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3500), setTimeout(() => { this._o1() }, 4500) }) } getVideoDom() { return new Promise(t => { let n = setInterval(() => { var e = document.querySelector("#task-content-iframe"); e.contentDocument, ElementObj.$video = e.querySelector("video"), ElementObj.$video && (clearInterval(n), t(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.timer), yield this.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3500), ElementObj.$ctxstatsbox || this.changeHtml($el(".video")), this.listenPageHide(), this.listenPlayTime(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891", 4500), yield sleep(3e3), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 4500) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator }, 1500) }) }) } listenPlayTime() { showTip("⚠️⚠️⚠️\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let n = 0; this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () { n += 1; var e = (ElementObj.$video.currentTime / 60).toFixed(2), t = (ElementObj.$video.duration / 60).toFixed(2); this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a` + t) }), 5e3) } } class gansugongwuyuan extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let i = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e, t, n = $el(".min_le_1 a"); n ? (clearInterval(i), e = localStorage.getItem("mytoolkey"), MyTool.setValue("mytoolkey", e), n.click(), yield sleep(2e3), $el(".xuxi_1").click(), yield sleep(2e3), this.getParentIndex()) : (ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(i), t = MyTool.getValue("mytoolkey"), this.deleteDom(), this.handleClickSpeedUp2(t)), ElementObj.$handleSpeedUp.style.display = "none") } catch (e) { } }), 1e3) }) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { $el("a.my").click(), yield sleep(2e3); let e = Number($el("#pagenumtext").value); for (var t, n = [], i = e; 0 < i; i--) n.push(i); let l = !1; for (t of n) { if (l) break; yield sleep(1500), ElementObj.$allTask = document.querySelectorAll(".main_r_dd2"); for (var o = 0; o <= ElementObj.$allTask.length - 1; o++) { var a = ElementObj.$allTask[o].querySelector(".hqjd_btn"), a = (a && (a.click(), yield sleep(2500)), ElementObj.$allTask[o].querySelector(".jindu div")); if (parseInt(a.style.width) < 100) { l = !0, MyTool.setValue("pageNum", t), MyTool.setValue("homeUrl", location.href); a = ElementObj.$allTask[o].querySelector("#playVideo"); null != a && a.click(), setTimeout(() => { window.close() }, 1e4); break } --e; a = $el(".syy"); null != a && a.click() } } }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer), yield this.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = MyTool.getValue("accelerator") }, 3500), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e = MyTool.getValue("homeUrl"); MyTool.openInTab(e), setTimeout(() => { window.close() }, 1e4) })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => __awaiter(this, void 0, void 0, function* () { var e = document.querySelector("#dvMsgBtns input"); null != e && e.click(), yield sleep(2e3), ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator }), 2500) }) }) } listenRebort() { this.listenRebortTime = setInterval(() => { document.querySelector("#dvMsgBtns input") && (this.deleteDom(), setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500)) }, 3e3) } deleteDom() { var e = document.querySelector("body"), t = document.getElementById("dvMsgBox"), n = document.getElementById("ShowBolightBox"), i = document.createElement("div"); i.innerHTML = "
    ", e.replaceChild(i, t), e.replaceChild(i, n) } handleClickSpeedUp2(t, e) { return __awaiter(this, void 0, void 0, function* () { var e; t ? (this.speedStatus = 1, 200 != (e = yield axfedata({ method: "GET", url: _b + (`/speedup?toolkey=${t}&canuse=` + toolOption.SchoolType) })).code ? showTip("🔉🔉🔉" + e.message, 5e3, !0) : (this.speedStatus = 1, toolOption.CtxMain.play())) : (alert("\u8bf7\u5148\u8d2d\u4e70key"), window.open(_bt)) }) } handleChangeCtxSpeed(e) { var t = speedArr, n = Number(e); e && t.includes(n) && (toolOption.accelerator = n, MyTool.setValue("accelerator", n.toString()), ElementObj.$video) && (ElementObj.$video.playbackRate = n) } } class wlmqcol extends Main { constructor() { super(), this.taskLength = 0, this.parentIndex = -1, this.currentIndex = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$handleSpeedUp.style.display = "none"; var e = document.querySelector("#tab-second"); e ? (clearInterval(t), e.click(), this.getCurrentIndex()) : document.querySelector("video") && (clearInterval(t), this.pdPlayFn(location.href)) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { yield sleep(1e3), ElementObj.$allTask = document.querySelectorAll(".task-list"); for (var e, t = 0; t <= ElementObj.$allTask.length - 1; t++) if (!ElementObj.$allTask[t].querySelector(".icon-yiwancheng")) { this.currentIndex = t; break } -1 == this.currentIndex ? alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u64ad\u653e\u5b8c") : (null != (e = document.querySelectorAll(".task-list")[this.currentIndex].querySelector("span")) && e.click(), setTimeout(() => { this._o1() }, 3e3)) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.timer), yield this.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3500), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => __awaiter(this, void 0, void 0, function* () { ElementObj.$video.volume = 0, ElementObj.$video.play(), ElementObj.$video.playbackRate = toolOption.accelerator }), 2500) }) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e = document.querySelectorAll(".el-breadcrumb__inner.is-link")[1]; null != e && e.click(), setTimeout(() => { location.reload() }, 3500) }) } } class shandongzhuanyejisu extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { document.querySelectorAll(".learn-menu-cell").length && (clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { var n; return __awaiter(this, void 0, void 0, function* () { showTip("\u6b63\u5728\u521d\u59cb\u5316"); var e = document.querySelector(".contentIframe"); ElementObj._document = e.contentWindow.document, "/learnspace/learn/learn/templateeight/index.action" == location.pathname ? ElementObj.$allTask = ElementObj._document.querySelectorAll(".s_sectionwrap .s_pointwrap .s_point") : ElementObj.$allTask = ElementObj._document.querySelectorAll(".s_pointwrap .s_point"), ElementObj.$handleSpeedUp.style.display = "none"; for (var t = 0; t <= ElementObj.$allTask.length - 1; t++) if (!ElementObj.$allTask[t].querySelector(".item_done_icon").classList.contains("done_icon_show")) { this.currentIndex = t; break } -1 != this.currentIndex ? (null != (n = ElementObj.$allTask[this.currentIndex]) && n.click(), showTip("\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), this._o1()) : alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u5b66\u5b8c") }) } getVideoDom() { return new Promise(t => { let n = 0, i = setInterval(() => { var e = ElementObj._document.querySelector("#mainFrame").contentWindow.document; ElementObj.$video = e.querySelector("video"), ElementObj.$video && (clearInterval(i), t(1)), 10 <= n && (clearInterval(i), t(2)), n++ }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, yield sleep(200), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenRebort(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { ElementObj.$video.volume = 0, ElementObj.$video.play() })), 2 == e && (showTip("✅✅✅\u68c0\u6d4b\u5230\u8be5\u7ae0\u8282\u4e0d\u662f\u89c6\u9891,\u5373\u5c06\u5207\u6362\u4e0b\u4e00\u8282", 2e3), yield sleep(2e3), this.playNext()) }) } updateSpeedElement(e) { localStorage.setItem("_localSpeed", e.toString()), ElementObj.$video.playbackRate = e } listenRebort() { this.listenRebortTime = setInterval(() => { let e = document.querySelector(".layui-layer-btn0"); e && setTimeout(() => { e.click(), ElementObj.$video.play() }, 3e3) }, 1e4) } playNext() { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u5b66\u5b8c") : (this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), showTip("🔉\u6b63\u5728\u5207\u6362\u8bfe\u7a0b"), setTimeout(() => { this._o1() }, 5e3)) } } shandongzhuanyejisu.ctxid = 26; class zhijiaoyun2 extends Main { constructor() { super(), this.taskLength = 0, this.topIndex = 0, this.parentIndex = -1, this.currentIndex = -1, this.videoplaying = -1, this.authorization = null, this.classList = [], this.selectData = [], this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { document.querySelector(".r.rFu"), "/study/coursePreview/spoccourseIndex/courseware" == location.pathname && (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this._o1()), "/study/coursePreview/spoccourseIndex" == location.pathname && (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", yield this.getCurrentIndex()) }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { let i = setInterval(() => __awaiter(this, void 0, void 0, function* () { if (ElementObj.$allTask = document.querySelectorAll(".listItem"), ElementObj.$allTask.length) { clearInterval(i); let t = !1; for (var n of ElementObj.$allTask) { var e = n.querySelector(".el-progress-bar__inner").style.width; if (parseInt(e) < 99) { t = !0, n.click(), yield sleep(3e3), n.querySelector(".items.iChild").click(), yield sleep(3e3), setTimeout(() => { location.reload() }, 2e3); let e = n.querySelector(".fItem"); (e = e || n.querySelector(".fIteml")).click(); break } } t || (location.href = "https://zjy2.icve.com.cn/study/course") } }), 2e3) }) } getVideoDom() { return new Promise(e => { let t = 7, n = setInterval(() => { t < 0 && (clearInterval(n), e(2)), ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : document.querySelectorAll(".el-carousel__item").length ? (clearInterval(n), e(2)) : --t }, 1e3) }) } play() { var i; return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer); var e = yield this.getVideoDom(); if (null != (i = document.querySelector(".el-message-box__btns button")) && i.click(), yield this.changeHtml(document.querySelector(".video")), 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 2500), this.listenVidoeStatus(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { yield this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 3e3) })), 2 == e) { this.addInfo("🔊🔊🔊\u5373\u5c06\u5f00\u59cb\u64ad\u653e\u6587\u6863"); var t, e = document.querySelectorAll(".el-carousel__item"), n = document.querySelector(".page>.next"); for (t of e) n.click(), yield sleep(500); this.addInfo("🎉🎉🎉🎉🎉🎉\u6587\u6863\u64ad\u653e\u5b8c\u6210🎉🎉🎉🎉🎉🎉"), yield this.playNext() } }) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e = document.querySelector(".next>a"); "\u6682\u65e0" == (null == e ? void 0 : e.innerText) ? (setTimeout(() => { location.reload() }, 2e3), document.querySelector(".location .r").click()) : (yield sleep(300), null != e && e.click(), setTimeout(() => { this._o1() }, 2500)) }) } listenVidoeStatus() { let e = 0; this.timer = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (this.addInfo(`🔉🔉🔉\u5df2\u6210\u529f\u76d1\u6d4b${e}\u6b21,\u7a0b\u5e8f\u540e\u53f0\u4ee5${toolOption.accelerator}\u500d\u901f\u6b63\u5e38\u5b66\u4e60\u4e2d`), e += 1) }, 3e3) } render(t) { let n = 1 == t ? this.classList : this.selectData, i = ""; for (let e = 0; e < n.length; e++) { var l = n[e]; i += `
    ${l.courseInfoName}
    \u73ed\u7ea7:${l.className}
    \u5b66\u671f:${l.termName}
    \u5b8c\u6210\u8fdb\u5ea6:${l.studySpeed}%
    ` } var o = 1 == t ? document.querySelector(".leftPannel") : document.querySelector(".rightPannel"); o.innerHTML = i; for (let e = 0; e < o.children.length; e++) o.children[e].querySelector("button").onclick = () => { 1 == t ? this.moveDataToSelectData(e) : this.moveDataToClassList(e) } } moveDataToSelectData(e) { this.selectData.push(this.classList[e]), this.classList.splice(e, 1), this.handleTemplekeyData(), this.render(1), this.render(2) } moveDataToClassList(e) { this.classList.push(this.selectData[e]), this.selectData.splice(e, 1), this.handleTemplekeyData(), this.render(1), this.render(2) } handleTemplekeyData() { MyTool.setValue("selectData", this.selectData) } } class chongqingzhuanye extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let a = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e, t, n, i, l, o; try { (ElementObj.$parentNodes = document.querySelectorAll(".course__list--content .course__item"), ElementObj.$parentNodes.length) ? (clearInterval(a), this.getParentIndex()) : document.querySelector(".btn-next") && "/nms-frontend/index.html" == location.pathname ? (clearInterval(a), MyTool.setValue("homeUrl", location.href), this.getParentIndex2()) : (ElementObj.$allTask = document.querySelectorAll("ul li ul li .posCatalog_select"), ElementObj.$allTask.length && (clearInterval(a), this.getCurrentIndex()), (n = document.querySelector("#iframe_aliplayer")) ? (clearInterval(a), ElementObj.$video = null == (e = null == n ? void 0 : n.contentDocument) ? void 0 : e.querySelector("video"), this.handleClickSpeedUp2()) : (i = document.querySelector("#aliPlayerFrame")) && (ElementObj.$allTask = null == (t = i.contentDocument) ? void 0 : t.querySelectorAll(".section .section-item"), ElementObj.$allTask.length) ? (clearInterval(a), this.getCurrentIndex2()) : (l = document.querySelectorAll(".complete-status .btn-item")[2]) && (clearInterval(a), l.click(), yield sleep(1500), 0 === (o = document.querySelectorAll("#pane-MUST .text-item")).length ? alert("\u5168\u90e8\u516c\u9700\u8bfe\u5df2\u5b66\u5b8c") : (MyTool.setValue("homeUrl", location.href), o[0].click(), setTimeout(() => { window.close() }, 2e4)))) } catch (e) { } }), 1e3) }) } getParentIndex() { ElementObj.$parentNodes.forEach(e => { var t = e.querySelector("span.num"); t && parseInt(t.innerText) <= 95 && (e.querySelector(".enter-btn").click(), setTimeout(() => { location.reload() }, 3e3)) }) } getParentIndex2() { return __awaiter(this, void 0, void 0, function* () { document.querySelectorAll(".btn-box .btn-item")[2].click(), yield sleep(3500), document.querySelectorAll("#pane-MUST .text-item")[0].click() }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u6b63\u5728\u521d\u59cb\u5316"), ElementObj.$handleSpeedUp.style.display = "none"; for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (!ElementObj.$allTask[e].querySelector(".icon_Completed")) { this.currentIndex = e; break } -1 == this.currentIndex ? alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u5b66\u5b8c") : (ElementObj.$allTask[this.currentIndex].querySelector(".posCatalog_name").click(), showTip("\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), this._o1()) }) } getCurrentIndex2() { return __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u6b63\u5728\u521d\u59cb\u5316"), ElementObj.$handleSpeedUp.style.display = "none"; for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (!ElementObj.$allTask[e].classList.contains("finish")) { this.currentIndex = e; break } -1 == this.currentIndex && (location.href = MyTool.getValue("homeUrl")), ElementObj.$allTask[e].click(), showTip("✅✅✅\u5b8c\u6210\u521d\u59cb\u5316,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), setTimeout(() => { this.handleClickSpeedUp2(() => { }, 3) }, 4500) }) } getVideoDom(e) { return new Promise(i => { if (e) { let t = 0, n = setInterval(() => { var e = document.querySelector("#aliPlayerFrame").contentDocument; ElementObj.$video = e.querySelector("video"), t += 1, ElementObj.$video && (clearInterval(n), i(!0)), 10 < t && (clearInterval(n), i(!1)) }, 1e3) } else { let t = 0, n = setInterval(() => { var e = null == (e = null == (e = document.querySelector("#iframe").contentDocument) ? void 0 : e.querySelector("iframe")) ? void 0 : e.contentDocument; ElementObj.$video = e.querySelector("video"), t += 1, ElementObj.$video && (clearInterval(n), i(!0)), 10 < t && (clearInterval(n), i(!1)) }, 1e3) } }) } play() { var n; return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer); var e, t = yield this.getVideoDom(); t && (ElementObj.$video.volume = 0, yield sleep(200), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), e = null == (n = $el("#iframe").contentDocument.querySelector("iframe")) ? void 0 : n.contentDocument.querySelector("#reader"), this.changeHtml(e), this.listenPageHide(), this.listenPlayTime(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { ElementObj.$video.volume = 0, ElementObj.$video.play() })), t || (showTip("⚠️⚠️⚠️\u672a\u68c0\u6d4b\u5230\u89c6\u9891,5\u79d2\u540e\u5207\u6362\u4e0b\u4e00\u8282", 4500), setTimeout(() => { this.playNext() }, 3e3)) }) } play2() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$video ? (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e = MyTool.getValue("homeUrl"); yield sleep(2500), MyTool.openInTab(e), setTimeout(() => { window.close() }, 5e3) }))) : location.reload() }) } play3() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer), yield this.getVideoDom("#aliPlayerFrame"), ElementObj.$video.volume = 0, yield sleep(200), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? (e = MyTool.getValue("homeUrl"), yield sleep(2500), MyTool.openInTab(e), setTimeout(() => { window.close() }, 15e3)) : (this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), showTip("⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u8bfe\u7a0b", 4500), setTimeout(() => { this.handleClickSpeedUp2(() => { }, 3) }, 4500)) })), ElementObj.$video.addEventListener("pause", () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebortTime = setInterval(() => { var e = null == (e = null == (e = document.querySelector("iframe")) ? void 0 : e.contentDocument) ? void 0 : e.querySelector(".next-button"); e && e.click() }, 13e3) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { yield sleep(3e3), this.currentIndex >= ElementObj.$allTask.length - 1 ? location.href = MyTool.getValue("homeUrl") : (this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].querySelector(".posCatalog_name").click(), showTip("⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u8bfe\u7a0b", 4500), setTimeout(() => { this._o1() }, 5e3)) }) } listenPlayTime() { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let n = 0; this.timer = setInterval(() => { n += 1; var e = (ElementObj.$video.currentTime / 60).toFixed(2), t = (ElementObj.$video.duration / 60).toFixed(2), t = (this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t}\u5206\u949f`), null == (e = document.querySelector("#iframe").contentDocument) ? void 0 : e.querySelector(".ans-job-icon")); "\u4efb\u52a1\u70b9\u5df2\u5b8c\u6210" == (null == t ? void 0 : t.getAttribute("aria-label")) && (clearInterval(this.timer), this.addInfo("✅✅✅\u76d1\u6d4b\u5230\u5f53\u524d\u4efb\u52a1\u5df2\u5b8c\u6210,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u8282", 1), setTimeout(() => { this.playNext() }, 3e3)) }, 3e3) } addInfo(e, t) { ElementObj.$ctxstatsbox = null == (n = $el("#iframe").contentDocument.querySelector("iframe")) ? void 0 : n.contentDocument.querySelector(".ctxstatsbox"), 15 <= (null == (n = $el("#iframe").contentDocument.querySelector("iframe")) ? void 0 : n.contentDocument.querySelectorAll(".ctxstatsbox_li")).length && (ElementObj.$ctxstatsbox.innerHTML = ""); var n = `
  • ${e}
  • `; ElementObj.$ctxstatsbox.innerHTML += n } handleClickSpeedUp2(e, t) { return __awaiter(this, void 0, void 0, function* () { var e = localStorage.getItem("mytoolkey"); e ? (this.speedStatus = 1, 200 != (e = yield axfedata({ method: "GET", url: _b + (`/speedup?toolkey=${e}&canuse=` + toolOption.SchoolType) })).code ? showTip("🔉🔉🔉" + e.message, 5e3, !0) : (this.speedStatus = 1, 3 == t ? this.play3() : this.play2())) : (alert("\u8bf7\u5148\u8d2d\u4e70key"), window.open(_bt)) }) } } chongqingzhuanye.ctxid = 26; class jiaoyuganbuwang extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e = document.querySelectorAll(".customcur-tabs-wrapper li")[1]; e ? (clearInterval(t), e.click(), this.getParentIndex()) : (ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), this.getCurrentIndex())) } catch (e) { } }), 1e3) }) } getParentIndex() { var t; return __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u6b63\u5728\u521d\u59cb\u5316", 3e3), ElementObj.$handleSpeedUp.style.display = "none", yield sleep(3e3), GM_setValue("homeUrl", location.href), showTip("\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), yield sleep(3e3); var e = document.querySelectorAll("tr")[2].lastChild; null != (t = e.querySelector("a")) && t.click(), this._o1(), setTimeout(() => { window.close() }, 5e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$allTask = document.querySelectorAll(".cvtb-MCK-course-content"), yield sleep(100); for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) { var t = ElementObj.$allTask[e].querySelector(".cvtb-MCK-CsCt-studyProgress"); if (100 != parseInt(t.innerText)) { this.currentIndex = e; break } } ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 3e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$handleSpeedUp.style.display = "none", clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer), yield this.getVideoDom(), ElementObj.$video.volume = 0, yield sleep(200), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenRebort(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e; yield sleep(2e3), this.currentIndex >= ElementObj.$allTask.length - 1 ? (e = GM_getValue("homeUrl", null), GM_openInTab(e, {active: !0}), setTimeout(() => { window.close() }, 3e3)) : (this.currentIndex += 1, setTimeout(() => { this._o1() }, 5e3)) }) } listenPlayTime() { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let n = 0; this.timer = setInterval(() => { n += 1; var e = ElementObj.$allTask[this.currentIndex].querySelector(".cvtb-MCK-CsCt-studyProgress"), e = parseInt(e.innerText), t = (ElementObj.$video.duration / 60).toFixed(2); this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5f53\u524d\u64ad\u653e\u8fdb\u5ea6\u4e3a${e}%,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t}\u5206\u949f`), 100 == e && (clearInterval(this.timer), this.addInfo("✅✅✅\u76d1\u6d4b\u5230\u5f53\u524d\u4efb\u52a1\u5df2\u5b8c\u6210,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u8282", 1), setTimeout(() => { this.playNext() }, 3e3)) }, 3e3) } listenRebort() { this.listenRebortTime = setInterval(() => { var e = document.querySelector(".dialog-button-container button"); e && e.click() }, 1e4) } } jiaoyuganbuwang.ctxid = 26; class zaixianxuexi extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e = document.querySelector("#jAlertButton2"); e ? (clearInterval(t), e.click(), yield sleep(2e3), ElementObj.$handleSpeedUp.style.display = "none", this._o1()) : (ElementObj.$allTask = document.querySelectorAll(".videoList li"), ElementObj.$allTask.length && (clearInterval(t), this.getCurrentIndex())) } catch (e) { } }), 1e3) }) } getCurrentIndex() { var t; return __awaiter(this, void 0, void 0, function* () { showTip("\u6b63\u5728\u521d\u59cb\u5316"), ElementObj.$handleSpeedUp.style.display = "none"; for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if ("【\u5df2\u5b8c\u6210】" != ElementObj.$allTask[e].querySelector(".overTitle").innerText) { this.currentIndex = e; break } -1 != this.currentIndex ? (null != (t = ElementObj.$allTask[this.currentIndex]) && t.click(), showTip("\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e"), this._o1()) : alert("\u5f53\u524d\u8bfe\u7a0b\u5df2\u5168\u90e8\u5b66\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = setInterval(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), e(!0)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), yield this.getVideoDom(), ElementObj.$video.volume = 0, yield sleep(200), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.getCurrentIndex() })), ElementObj.$video.addEventListener("pause", () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }) }) } listenRebort() { this.listenRebortTime = setInterval(() => { }, 1e4) } } zaixianxuexi.ctxid = 26; class guojiakaifangdaxue extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { (ElementObj.$allTask = document.querySelectorAll("li[id]"), "xczxzdbf.moodle.qwbx.ouchn.cn" == location.host && ElementObj.$allTask.length) ? (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this.getCurrentIndex()) : (document.querySelector("button.next-btn") || document.querySelector(".newgk-prenext.newgk-next")) && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), showTip("♥♥♥\u521d\u59cb\u5316\u5b8c\u6210"), this.pdPlayFn(location.href)) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("current")) { this.currentIndex = e; break } showTip("♥♥♥\u521d\u59cb\u5316\u5b8c\u6210"), this.pdPlayFn(location.href) }) } getVideoDom() { return new Promise(t => { let n = 0, i = setInterval(() => { var e; n += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video || (e = document.querySelector("#previewContentInIframe"), ElementObj.$video = null == (e = null == e ? void 0 : e.contentDocument) ? void 0 : e.querySelector("video"), ElementObj.$video) ? (clearInterval(i), t(1)) : 7 <= n && (clearInterval(i), t(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e, t = yield this.getVideoDom(); 1 == t && (ElementObj.$video.volume = 0, yield sleep(200), (e = document.querySelector(".mvp-toggle-play")) ? e.click() : ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), yield sleep(4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { var e = document.querySelector(".mvp-toggle-play"); ElementObj.$video.volume = 0, null != e && e.click(), ElementObj.$video.play() }, 1500) })), 2 == t && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { }, 1e4) } playNext() { this.currentIndex += 1; let e = document.querySelector("button.next-btn"); "xczxzdbf.moodle.qwbx.ouchn.cn" == location.host ? (e = ElementObj.$allTask[this.currentIndex].querySelector(".aalink"), this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (null != e && e.click(), setTimeout(() => { this.pdPlayFn(location.href) }, 5e3))) : (e = "moodle.syxy.ouchn.cn" == location.host ? document.querySelector(".newgk-prenext.newgk-next") : document.querySelector("button.next-btn")) && (e.click(), setTimeout(() => { this.pdPlayFn(location.href) }, 5e3)) } } guojiakaifangdaxue.ctxid = 26; class jjjxjy extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { if ("hunau.web2.superchutou.com" == location.host) { let t = setInterval(() => { var e; ElementObj.$handleSpeedUp.style.display = "none", "https://hunau.web2.superchutou.com/#/" == location.href && (clearInterval(t), setTimeout(() => { this._init() }, 5e3), location.href = MyTool.getValue("homeUrl")), -1 != location.href.indexOf("/#/onlineclass/curriculum") && (e = document.querySelector(".ant-row.catalog_child_line")) && (clearInterval(t), MyTool.setValue("homeUrl", location.href), setTimeout(() => { this._init() }, 5e3), e.click()), ElementObj.$allTask = document.querySelectorAll(".ant-list-items div a"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(t), this.getCurrentIndex()) }, 1e3) } else { window.addEventListener("urlchange", e => { setTimeout(() => { ElementObj.$allTask = document.querySelectorAll(".ant-list-items div a"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(t), this.getCurrentIndex()); var e = document.querySelector(".ant-row.catalog_child_line"); e && (clearInterval(t), null != e) && e.click(), "https://jjxy.web2.superchutou.com/#/" == location.href && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(t), this.getParentIndex()) }, 5e3) }); let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".ant-list-items div a"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(t), this.getCurrentIndex()); var e = document.querySelector(".ant-row.catalog_child_line"); e && (clearInterval(t), setTimeout(() => { this._init() }, 5e3), null != e && e.click()), "https://jjxy.web2.superchutou.com/#/" == location.href && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(t), this.getParentIndex()) } catch (e) { } }), 1e3) } }) } getParentIndex() { for (var e = $el(".ant-table-tbody").querySelectorAll(".ant-table-tbody tr"), t = 0; t <= e.length - 1; t++) { var n = e[t].querySelector(".ant-progress-bg"); if (parseInt(n.style.width) < 99) { setTimeout(() => { this._init() }, 5e3), e[t].querySelector(".anticon-play-circle").click(); break } } } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { let e = -1; for (var t = 0; t <= ElementObj.$allTask.length - 1; t++) if (ElementObj.$allTask[t].classList.contains("catalog_playing___3PDRN")) { e = t; break } for (t = 0; t <= ElementObj.$allTask.length - 1; t++) if (!ElementObj.$allTask[t].querySelector("i.anticon-check-circle")) { this.currentIndex = t; break } -1 != this.currentIndex ? (e != this.currentIndex && ElementObj.$allTask[this.currentIndex].click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this.pdPlayFn(location.href) }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer2), clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e, t = yield this.getVideoDom(); 1 == t && (ElementObj.$video.volume = 0, yield sleep(200), (e = document.querySelector(".mvp-toggle-play")) ? e.click() : ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == t && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e = document.querySelector(".ant-modal-body button"), t = document.querySelector(".ant-btn.ant-btn-primary"); null != e && e.click(), null != t && t.click() }, 1e3) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(4500), this.currentIndex += 1, (e = ElementObj.$allTask[this.currentIndex]) && (e.click(), setTimeout(() => { this._o1() }, 4e3))) }) } } jjjxjy.ctxid = 26; class hebeiganbu extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let o = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e; try { if (ElementObj.$parentNodes = document.querySelectorAll(".hoz_course_row"), ElementObj.$parentNodes.length) { clearInterval(o); for (var t of ElementObj.$parentNodes) { var n = null == (e = t.querySelector(".h_pro_percent")) ? void 0 : e.innerText; if (parseFloat(n) < 100) { setTimeout(() => { window.close() }, 45e3), MyTool.setValue("homeUrl", location.href), t.querySelector("input").click(); break } } } var i, l = document.querySelector(".user_choise"); l && l.click(), "/student/class_detail_course.do" == location.pathname && (i = document.querySelector(".hoz_course_row input")) && (clearInterval(o), setTimeout(() => { window.close() }, 45e3), MyTool.setValue("homeUrl", location.href), i.click()), "/portal/study_play.do" == location.pathname && (ElementObj.$video = document.querySelector("video"), ElementObj.$video) && (clearInterval(o), this._o1()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e, t = yield this.getVideoDom(); 1 == t && (setTimeout(() => { ElementObj.$video = document.querySelector("video"), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), ElementObj.$handleSpeedUp.style.background = "#f01414", ElementObj.$handleSpeedUp.innerText = "\u52a0\u901f\u6210\u529f", ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) }) }, 4500), null != (e = document.querySelector(".user_choise"))) && e.click(), 2 == t && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { yield sleep(2500), location.href = MyTool.getValue("homeUrl") }) } } class gdedujsxx extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { this._o1() }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); ElementObj.$handleSpeedUp.style.display = "none", 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => __awaiter(this, void 0, void 0, function* () { let e = document.querySelectorAll(".m-question-lst label"); e.length && (clearInterval(this.listenRebortTime), e[0].click(), document.querySelector(".btn.u-main-btn").click(), yield sleep(3e3), (e = document.querySelectorAll(".m-question-lst label")).length && (e[1].click(), document.querySelector(".btn.u-main-btn").click()), yield sleep(3e3), this.listenRebort()) }), 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { yield sleep(4500), this.currentIndex += 1; var e = document.querySelector("a.btn.next.crt"); e && (e.click(), setTimeout(() => { this._o1() }, 4e3)) }) } } gdedujsxx.ctxid = 60; class zhuzhouteacher extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e = document.querySelectorAll(".antd-pro-pages-my-center-my-center-menuItem")[2]; e ? (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(t), e.click(), yield sleep(1e3), this.getCurrentIndex()) : (ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(t), ElementObj.$handleSpeedUp.style.display = "none", this._o1())) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { yield sleep(2500), ElementObj.$allTask = document.querySelectorAll(".antd-pro-pages-my-center-course-learning-courseWrap>.ant-row"); for (var e, t = 0; t <= ElementObj.$allTask.length - 1; t++) { var n = ElementObj.$allTask[t].querySelector(".ant-progress-text").innerHTML; if (parseInt(n) < 99) { this.currentIndex = t; break } } -1 != this.currentIndex ? (ElementObj.$allTask[this.currentIndex].querySelector(".ant-btn.ant-btn-primary").click(), setTimeout(() => { }, 15e3)) : (e = document.querySelector(".ant-pagination-next")).classList.contains("ant-pagination-disabled") ? alert("\u5168\u90e8\u8bfe\u7a0b\u5df2\u5b66\u5b8c") : (e.click(), this.getCurrentIndex()) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { MyTool.openInTab("http://www.zhuzhouteacher.com/teacheredu/main/mycenter/course-learning"), setTimeout(() => { window.close() }, 5e3) }) } } zhuzhouteacher.ctxid = 60; class zhuanyejishuryjxjy extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".catalog-list p"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("active")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].querySelector("a").click(), setTimeout(() => { this._o1() }, 4e3)) }) } } zhuanyejishuryjxjy.ctxid = 60; class yinghuaxuetang extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".detmain .list .item a "), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("on")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e, t, n = yield this.getVideoDom(); 1 == n && (e = document.querySelector(".promptchmqylqsxtfb"), t = document.querySelector(".mutechtkfjgkqelf"), e && e.click(), t && t.click(), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == n && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 4e3)) }) } } yinghuaxuetang.ctxid = 60; class shanghaikaifangdx extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".cell_info1 a"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("active")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 4e3)) }) } } shanghaikaifangdx.ctxid = 60; class gzgbjy extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".tab-content-desc"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("desc-item-sel")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 4e3)) }) } } gzgbjy.ctxid = 60; class guizhoujianshezyjs extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".catalog div>a"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("cur")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e, t = yield this.getVideoDom(); 1 == t && (ElementObj.$video.volume = 0, (e = document.querySelector(".vplay")).classList.contains("vmPause") || e.click(), ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == t && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 4e3)) }) } } guizhoujianshezyjs.ctxid = 60; class jixujiaoyuzaixian extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".video-list-item-span"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (-1 == ElementObj.$allTask[e].innerText.indexOf("\u5df2\u5b66\u5b8c")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e = document.querySelector(".el-message-box__btns .el-button--primary"); null != e && e.click() }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 4e3)) }) } } jixujiaoyuzaixian.ctxid = 60; class gzteacher extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let n = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e = document.querySelectorAll(".collapseactivityName2"), t = document.querySelectorAll(".resource-list .res-item"); ElementObj.$allTask = e.length ? e : t, ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(n), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) { var t = ElementObj.$allTask[e]; if (t.classList.contains("isActive") || t.classList.contains("active")) { this.currentIndex = e; break } } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e, t = document.querySelector(".ant-modal-root"); t && null != (e = t.parentNode) && e.removeChild(t) }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { if (this.currentIndex += 1, "gdipx.yanxiu.com" == location.host) { yield sleep(3e3); var e = document.querySelector(".btns .next"); if (!e) return void alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c"); e.click() } else { if (this.currentIndex >= ElementObj.$allTask.length - 1) return void alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c"); yield sleep(2500); e = document.querySelectorAll(".ant-modal-body button")[2], e = (null != e && e.click(), document.querySelectorAll(".studycontentBottom button")[2]); null != e && e.click() } setTimeout(() => { this._o1() }, 4e3) }) } } gzteacher.ctxid = 60; class moocxinyingzao extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll("#pane-category .resource-list-item"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) { var t = ElementObj.$allTask[e].querySelector(".resource-action span").innerText; if (!["\u5df2\u5b8c\u6210", "\u6b63\u5728\u5b66"].includes(t)) { this.currentIndex = e; break } } -1 != this.currentIndex ? (ElementObj.$allTask[this.currentIndex].click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => (t += 1, document.querySelector("iframe") ? (clearInterval(n), void e(2)) : (ElementObj.$video = document.querySelectorAll("video")[0], ElementObj.$video ? (clearInterval(n), void e(1)) : void (7 <= t && (clearInterval(n), e(2))))), 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e, t = document.querySelector(".ant-modal-root"); t && null != (e = t.parentNode) && e.removeChild(t) }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { this.getCurrentIndex() }) } } moocxinyingzao.ctxid = 60; class zhejiangzjelib extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask = document.querySelector("#iframepage").contentDocument.querySelectorAll(".ncells"); for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (!ElementObj.$allTask[e].querySelector(".roundpointStudent.blue")) { this.currentIndex = e; break } -1 != this.currentIndex ? (ElementObj.$allTask[this.currentIndex].querySelector("a").click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this.spanKeyCount() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("#iframepage").contentDocument.querySelector("#iframe").contentDocument.querySelector("iframe").contentDocument.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } _o1(e) { return __awaiter(this, void 0, void 0, function* () { this.getCurrentIndex() }) } spanKeyCount() { return __awaiter(this, void 0, void 0, function* () { var e = localStorage.getItem("mytoolkey"); e ? 200 != (e = yield axfedata({ method: "GET", url: _b + (`/speedup?toolkey=${e}&canuse=` + toolOption.SchoolType) })).code ? showTip("🔉🔉🔉" + e.message, 5e3, !0) : this.play() : (alert("\u8bf7\u5148\u8d2d\u4e70key"), window.open(_bt)) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { document.querySelector("#iframepage").contentDocument.querySelector(".ncells .currents").querySelector(".roundpointStudent.blue") && this.playNext() }, 1e4) } playNext() { var t; return __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (this.currentIndex += 1, null != (e = document.querySelector("#iframepage").contentDocument.querySelector(".orientationright ")) && e.click(), e = document.querySelector("#iframepage").contentDocument, yield sleep(2e3), null != (t = e.querySelector(".wconter a")) && t.click(), setTimeout(() => { this.spanKeyCount() }, 4e3)) }) } } zhejiangzjelib.ctxid = 60; class dongbeishifandaxue extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".course-list-con .ovd"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("cur")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e, t = document.querySelector(".ant-modal-root"); t && null != (e = t.parentNode) && e.removeChild(t) }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, null != (e = ElementObj.$allTask[this.currentIndex].querySelector("a")) && e.click(), setTimeout(() => { this._o1() }, 6e3)) }) } } dongbeishifandaxue.ctxid = 60; class qzjystudy extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e; (ElementObj.$allTask = document.querySelectorAll(".videoList .item"), ElementObj.$allTask.length) ? (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(t), this.getCurrentIndex()) : (e = document.querySelector("iframe")) ? (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(t), location.href = e.src) : (ElementObj.$allTask = document.querySelectorAll(".videoList .item"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(t), this.getCurrentIndex())) } catch (e) { } }), 1e3) }) } getCurrentIndex() { var i; return __awaiter(this, void 0, void 0, function* () { for (var n = 0; n <= ElementObj.$allTask.length - 1; n++) { let e, t = ElementObj.$allTask[n]; if (e = "jnrcpx.qzjystudy.com" == location.host ? (e = (null == (i = t.querySelector(".text")) ? void 0 : i.nextSibling).innerText).match(/\((.+)\)/)[1] : t.querySelectorAll("span")[1].innerText, parseInt(e) < 99) { this.currentIndex = n; break } } -1 != this.currentIndex ? (ElementObj.$allTask[this.currentIndex].click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e, t = document.querySelector(".ant-modal-root"); t && null != (e = t.parentNode) && e.removeChild(t) }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, null != (e = ElementObj.$allTask[this.currentIndex]) && e.click(), setTimeout(() => { this._o1() }, 6e3)) }) } } qzjystudy.ctxid = 60; class GlivePro extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let n = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { var e = document.querySelectorAll(".animated .syllabus-tree-node-title"), t = document.querySelectorAll(".aside-node-child-inner .aside-node-child-inner li"); (e.length || t.length) && (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$allTask = e.length ? e : t, clearInterval(n), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e, t = 0; t <= ElementObj.$allTask.length - 1; t++) { var n = ElementObj.$allTask[t]; if ("cloud.gaodun.com" == location.host) { if (!n.querySelector("i").classList.contains("aside-resource-progress2")) { this.currentIndex = t; break } } else if (n.classList.contains("is-active")) { this.currentIndex = t; break } } -1 != this.currentIndex ? ("cloud.gaodun.com" == location.host && null != (e = ElementObj.$allTask[this.currentIndex]) && e.click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e = parseInt(ElementObj.$video.duration); Math.ceil(ElementObj.$video.currentTime) >= e && (showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext()) }, 3e3) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), "cloud.gaodun.com" == location.host ? location.reload() : (this.currentIndex += 1, null != (e = ElementObj.$allTask[this.currentIndex]) && e.click(), setTimeout(() => { this._o1() }, 4500))) }) } } GlivePro.ctxid = 60; class gaodengxueli extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".course-list-txt dd i"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("fa-youtube-play")) { this.currentIndex = e; break } -1 != this.currentIndex ? (ElementObj.$allTask[this.currentIndex].parentElement.click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e, t = document.querySelector(".ant-modal-root"); t && null != (e = t.parentNode) && e.removeChild(t) }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, null != (e = ElementObj.$allTask[this.currentIndex].parentElement) && e.click(), setTimeout(() => { this._o1() }, 6e3)) }) } } gaodengxueli.ctxid = 60; class henanzhuanjizaixian extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this.timer = null, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".videoLi"), ElementObj.$allTask.length && (clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("active")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 5e3), setTimeout(() => { this._o1() }, 5500)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => (t += 1, ElementObj.$video = document.querySelector("video.pv-video"), ElementObj.$video ? (clearInterval(n), void e(1)) : (ElementObj.$canvas = document.querySelector("#bplayer-ffplayer"), ElementObj.$canvas ? (clearInterval(n), void e(3)) : void (7 <= t && (clearInterval(n), e(2))))), 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer), ElementObj.$allTask[this.currentIndex].click(); var e, t = yield this.getVideoDom(); 1 == t && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenRebort(), this.listenPlayTime(1)), 3 == t && ("0" == (e = document.querySelector(".bplayer-volume-control")).getAttribute("data-show") && e.querySelector(".icon").click(), yield sleep(3e3), "stop" != (e = document.querySelector(".pv-iconfont") || document.querySelector(".bplayer-play-btn")).querySelector("svg").id && e.click(), this.listenPlayTime(3)), 1 != t && 3 != t || (e = document.querySelector(".live.left"), this.changeHtml(e)), 2 == t && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } play2() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer), yield this.getVideoDom(); var e = document.querySelector("button.pv-volumebtn"); e.classList.contains("pv-icon-volumenone") || e.click(), yield sleep(500), document.querySelector(".pv-iconfont").click(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })) }) } listenRebort() { this.listenRebortTime = setInterval(() => { }, 1e4) } listenPlayTime(l) { this.timer = setInterval(() => { let e, t, n = ElementObj.$allTask[this.currentIndex].querySelector(".progress-bar").style.width; if (99 <= parseInt(n)) showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext(); else { if (1 == l && (e = document.querySelector(".pv-time-current").innerText, t = document.querySelector(".pv-time-duration").innerText), 3 == l) { var i = document.querySelector(".played-time"); if (!i) return void this.play2(); e = i.innerText, t = document.querySelector(".total-time").innerText } this.addInfo(`🔊🔊🔊\u76d1\u6d4b\u5230\u89c6\u9891\u6b63\u5728\u5b66\u4e60\u4e2d,\u5df2\u6210\u529f\u5b66\u4e60${e},\u9700\u5b66\u4e60` + t), t == e && (showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext()) } }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), setTimeout(() => { location.reload() }, 3e3), this.currentIndex += 1, null != (e = ElementObj.$allTask[this.currentIndex]) && e.click()) }) } } henanzhuanjizaixian.ctxid = 60; class hunannmdxs extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { document.querySelector(".pull-right>a") && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this._o1()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("fa-youtube-play")) { this.currentIndex = e; break } -1 != this.currentIndex ? (ElementObj.$allTask[this.currentIndex].parentElement.click(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => (t += 1, ElementObj.$sigleBtn = document.querySelector(".forumaddnew form button.btn.btn-secondary"), ElementObj.$sigleBtn ? (clearInterval(n), void e(3)) : (ElementObj.$video = document.querySelectorAll("video")[0], ElementObj.$video ? (clearInterval(n), void e(1)) : void (7 <= t && (clearInterval(n), e(2))))), 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 3 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e, t = document.querySelector(".ant-modal-root"); t && null != (e = t.parentNode) && e.removeChild(t) }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e = document.querySelector(".pull-right>a"); e ? (yield sleep(2500), null != e && e.click(), setTimeout(() => { this._o1() }, 5e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } } hunannmdxs.ctxid = 60; class bainianshuren extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this.swiperIndex = 0, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { (ElementObj.$parentNodes = document.querySelectorAll(".project-course li"), ElementObj.$parentNodes.length) ? (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this.getParentIndex()) : (ElementObj.$allTask = document.querySelectorAll(".el-tree-node"), ElementObj.$allTask.length && (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this.getCurrentIndex())) } catch (e) { } }), 1e3) }) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$parentNodes.length - 1; e++) { var t = ElementObj.$parentNodes[e], n = t.querySelector(".project-courseTitle span").innerText; if ("\u5b66\u4e60\u4e2d" == n || "\u672a\u5b66\u4e60" == n) { MyTool.setValue("homeUrl", location.href), t.querySelector("span.project-courseButton").click(); break } } }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { yield sleep(2500); for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if ("\u5df2\u5b66\u4e60" != ElementObj.$allTask[e].querySelector("i").title.trim()) { this.currentIndex = e; break } -1 == this.currentIndex ? (location.href = "https://v3.dconline.net.cn/student.html#/project/index?project_id=13844", setTimeout(() => { location.reload() }, 3e3)) : (ElementObj.$allTask[e].querySelector(".nav_menu").click(), yield sleep(2500), 1 == (yield this.getSwiperItem()) ? this.getSwiperIndex() : this._o1(), showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3)) }) } getSwiperIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$swiperItem.length - 1; e++) if ("\u5df2\u5b66\u4e60" != ElementObj.$swiperItem[e].querySelector(".video-status").innerText.trim()) { this.swiperIndex = e; break } ElementObj.$swiperItem[this.swiperIndex].querySelector("i.el-icon-video-play").click(), yield sleep(2500); var t = document.querySelector(".el-message-box__btns .el-button--primary"); null != t && t.click(), setTimeout(() => { this._o1() }, 4e3) }) } getSwiperItem() { return __awaiter(this, void 0, void 0, function* () { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$swiperItem = document.querySelectorAll(".public-articleSlideList"), ElementObj.$swiperItem.length ? (clearInterval(n), e(1)) : 3 <= t && (clearInterval(n), e(2)) }, 1e3) }) }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelector("video"), ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e, t = yield this.getVideoDom(); 1 == t && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = 1 }, 3e3), e = document.querySelector("#video"), this.changeHtml(e), this.listenPlayTime(), this.listenRebort(), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 1500) })), 2 == t && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e; this.currentIndex >= ElementObj.$allTask.length - 1 ? (e = MyTool.getValue("homeUrl"), location.href = e, setTimeout(() => { location.reload() }, 3e3)) : (setTimeout(() => { location.reload() }, 3e3), setTimeout(() => { this._o1() }, 4e3)) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e = document.querySelector(".el-dialog__body"); e && (e.style.display = "none") }, 3e3) } listenPlayTime() { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let n = 0; this.timer = setInterval(() => { n += 1; var e = (ElementObj.$video.currentTime / 60).toFixed(2), t = (ElementObj.$video.duration / 60).toFixed(2); this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t}\u5206\u949f`) }, 3e3) } } bainianshuren.ctxid = 60; class dyyxlearning extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".course-list ul ul .videoLi"), ElementObj.$allTask.length && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(e), this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("active")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(e => { let t = 0, n = setInterval(() => { t += 1, ElementObj.$video = document.querySelectorAll("video")[1], ElementObj.$video ? (clearInterval(n), e(1)) : 7 <= t && (clearInterval(n), e(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(), t = location.href.match("myClassId=(.+)")[1], n = (yield this.getClassList(t)).attribute.data.myClassCourseRPList[0].videoRPs[this.currentIndex], n = `videoId=${n.videoId}&isUse=1&startSecond=&myClassCourseVideoId=` + n.myClassCourseVideoId, t = yield this.getVideoTopic(t, n); 1 == e && (ElementObj.$video.volume = 0, (n = document.querySelector(".ccToggleBtn")).classList.contains("ccH5TogglePause") || n.click(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenRebort(t.attribute.data), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0; var e = document.querySelector(".ccToggleBtn"); e.classList.contains("ccH5TogglePause") || e.click() }, 3500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort(o) { this.listenRebortTime = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e = document.querySelector("#ccJumpOver"), t = document.querySelector(".pv-ask-modal-wrap"); if (e || t) { let t = document.querySelector(".ccProblem .text").innerText, n = o.find(e => e.videoQuestionEntitySet[0].questionName == t), i = -1; for (let e = 0; e <= n.videoQuestionEntitySet[0].videoAnswerEntitySet.length - 1; e++) { var l = n.videoQuestionEntitySet[0].videoAnswerEntitySet[e]; -1 != n.videoQuestionEntitySet[0].standardId.indexOf(l.videoAnswerId) && (i = e) } -1 == i && location.reload(), null != (e = document.querySelectorAll(".ccQuestionList li")[i]) && e.click(), document.querySelector("#ccQuestionSubmit").click(), setTimeout(() => { document.querySelector("#rightBtn").click() }, 2e3) } }), 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 4e3)) }) } getVideoTopic(e, n) { return __awaiter(this, void 0, void 0, function* () { return new Promise(t => { fetch("https://sddy.zyk.yxlearning.com/train/cms/study/query-video-random-popup-list.gson?" + n, { headers: { accept: "*/*", "accept-language": "zh-CN,zh;q=0.9", accountid: "33f3dd30-1e79-420b-9fe6-bf298fa1d550", "sec-ch-ua": '"Not)A;Brand";v="99", "Google Chrome";v="127", "Chromium";v="127"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest" }, referrer: "https://sddy.zyk.yxlearning.com/learning/index?myClassId=" + e, referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }) }) } getClassList(e) { return __awaiter(this, void 0, void 0, function* () { return new Promise(t => { fetch("https://sddy.zyk.yxlearning.com/train/class/my-class.gson?myClassId=" + e, { headers: { accept: "*/*", "accept-language": "zh-CN,zh;q=0.9", "sec-ch-ua": '"Not)A;Brand";v="99", "Google Chrome";v="127", "Chromium";v="127"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest" }, referrer: "https://sddy.zyk.yxlearning.com/learning/index?myClassId=" + e, referrerPolicy: "strict-origin-when-cross-origin", body: null, method: "GET", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) }) }) } } class hebeijiaoshijiaoyuwang extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let a = setInterval(() => __awaiter(this, void 0, void 0, function* () { var e, t; try { if ("/MyCourse/MyEventList" == location.pathname && (ElementObj.$parentNodes = document.querySelectorAll("#mainList dd ul li"), 0 < ElementObj.$parentNodes.length)) { clearInterval(a), ElementObj.$handleSpeedUp.style.display = "none"; for (var n of ElementObj.$parentNodes) if ("[\u5df2\u5b8c\u6210]" != n.querySelector("i").innerText) { MyTool.setValue("homeUrl", location.href), n.querySelector("a").click(); break } } if ("/Event/MyjoinEvent" == location.pathname && (ElementObj.$parentNodes = document.querySelectorAll("tr[class]"), 0 < ElementObj.$parentNodes.length) && (clearInterval(a), ElementObj.$handleSpeedUp.style.display = "none", 0 < ElementObj.$parentNodes.length)) for (var i of ElementObj.$parentNodes) { var l = i.querySelectorAll("td")[2].querySelector("span").innerText.trim(); if ("\u5df2\u5b66\u5b8c" != l && "\u5df2\u5b8c\u6210" != l) { i.querySelector("a").click(); break } } if ("/Event/CourseWare" == location.pathname && (ElementObj.$parentNodes = document.querySelectorAll("tr[class]"), 0 < ElementObj.$parentNodes.length) && (clearInterval(a), ElementObj.$handleSpeedUp.style.display = "none", 0 < ElementObj.$parentNodes.length)) for (var o of ElementObj.$parentNodes) if ("\u5df2\u5b66\u5b8c" != o.querySelectorAll("td")[2].querySelector("span").innerText.trim()) { o.querySelector("a").click(); break } ElementObj.$video = null == (t = null == (e = document.querySelector("iframe")) ? void 0 : e.contentDocument) ? void 0 : t.querySelector("video"), ElementObj.$video && (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(a), this._o1()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("active")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this.pdPlayFn(location.href) }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(t => { let n = 0, i = setInterval(() => { var e; n += 1, ElementObj.$video = null == (e = null == (e = document.querySelector("iframe")) ? void 0 : e.contentDocument) ? void 0 : e.querySelector("video"), ElementObj.$video ? (clearInterval(i), t(1)) : 7 <= n && (clearInterval(i), t(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer); var e, t = yield this.getVideoDom(); 1 == t && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), (e = document.querySelector("#mian")).style.position = "relative", yield this.changeHtml(e), this.listenPlayTime(), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 3500) })), 2 == t && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e = document.querySelector(".school-sate button"); e && e.click() }, 1e4) } listenPlayTime() { showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); let n = 0; this.timer = setInterval(() => { n += 1; var e = (ElementObj.$video.currentTime / 60).toFixed(2), t = (ElementObj.$video.duration / 60).toFixed(2); this.addInfo(`\u540e\u53f0\u5b66\u4e60${n}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${e}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t}\u5206\u949f`) }, 3e3) } playNext() { return __awaiter(this, void 0, void 0, function* () { var e = document.querySelectorAll(".tishivalhui")[2], t = document.querySelectorAll(".tishivalhui")[1]; "\u4e0b\u4e00\u7bc7:\u6ca1\u6709\u4e86;" == (e || t).innerText ? location.href = MyTool.getValue("homeUrl") : (yield sleep(2500), (1 < (e = document.querySelectorAll(".tishivalju")).length ? e[1] : e[0]).click()) }) } } class shangdongganbu extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { (ElementObj.$allTask = document.querySelectorAll(".class"), -1 != location.href.indexOf("/content#/personalCenter") && ElementObj.$allTask.length) ? (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this.getCurrentIndex()) : -1 != location.href.indexOf("/content#/commend/coursedetail/?courseId=") && (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this._o1()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) { var t = ElementObj.$allTask[e].querySelectorAll(".pro-t>div")[1].innerText; if (100 != parseInt(t)) { this.currentIndex = e; break } } -1 == this.currentIndex ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), ElementObj.$allTask[this.currentIndex].querySelector(".class-img>img").click(), setTimeout(() => { window.close() }, 12e4)) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer); var e = yield this.getVideoDom(); if (1 == e) { var t = document.querySelector(".video-player-box"), t = (t.style.position = "relative", yield this.changeHtml(t), {courseId: "", idCardHash: ""}); if (t.courseId = /courseId=(.*)/.exec(location.href)[1], t.idCardHash = JSON.parse(sessionStorage.getItem("userInfo")).data.idCardHash, !t.idCardHash) return void alert("\u767b\u5f55\u8fc7\u671f\u4e86,\u8bf7\u91cd\u65b0\u767b\u5f55"); yield this.fetchStart(t), this.listenPlayTime(t), this.listenRebort() } 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e = document.querySelector(".school-sate button"); e && e.click() }, 1e4) } listenPlayTime(i) { return __awaiter(this, void 0, void 0, function* () { this.addInfo("✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅"), yield sleep(3e3), showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); var t = Math.ceil(ElementObj.$video.duration); if (t) { let e = 0; for (var n of new Array(1e3)) { if (e >= t) { yield this.saveProgress(i), yield this.saveProgress(i), yield this.saveEnd(i), this.addInfo("🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉"); break } e += +toolOption.accelerator > t ? t : +toolOption.accelerator, i.studyTimes = e, yield this.saveProgress(i), this.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${e}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t / 60}\u5206\u949f`), yield sleep(1e3) } this.playNext() } else alert("\u89c6\u9891\u65f6\u95f4\u9519\u8bef,\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5") }) } playNext() { return __awaiter(this, void 0, void 0, function* () { yield sleep(2500), setTimeout(() => { location.reload() }, 3e3), location.href = "https://gbwlxy.dtdjzx.gov.cn/content#/personalCenter" }) } fetchStart(n) { return new Promise(t => __awaiter(this, void 0, void 0, function* () { var e = yield fetch("https://gbwlxy.dtdjzx.gov.cn/__api/api/study/start", { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", "content-type": "application/json;", "sec-ch-ua": '"Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest" }, referrer: "https://gbwlxy.dtdjzx.gov.cn/content", referrerPolicy: "strict-origin-when-cross-origin", body: `{"courseId":"${n.courseId}","idCardHash":"${n.idCardHash}","studyType":"VIDEO"}`, method: "POST", mode: "cors", credentials: "include" }); t(e) })) } saveProgress(e) { return new Promise(t => __awaiter(this, void 0, void 0, function* () { fetch(location.origin + "/__api/api/study/progress", { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", "content-type": "application/json;", "sec-ch-ua": '"Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest" }, referrer: location.origin + "/content", referrerPolicy: "strict-origin-when-cross-origin", body: `{"courseId":"${e.courseId}","idCardHash":"${e.idCardHash}","studyTimes":${e.studyTimes}}`, method: "POST", mode: "cors", credentials: "include" }).then(e => e.json()).then(e => t(e)) })) } saveProgress2(n) { return new Promise(t => __awaiter(this, void 0, void 0, function* () { var e = yield fetch(location.origin + "/apiStudy/gwapi/us/api/study/progress2", { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", "content-type": "application/json;", "sec-ch-ua": '"Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-ca-key": "ac620187e5b8d7af", "x-ca-nonce": "e12f60e3-df8f-349f-55d0-626d597f5eaf", "x-ca-signature": "V16026136F33B05F06F275BE6CECF4A2F1", "x-ca-timestamp": "1706683430971", "x-requested-with": "XMLHttpRequest" }, referrer: location.origin + "/content", referrerPolicy: "strict-origin-when-cross-origin", body: `{"userId":"${n.idCardHash}","courseCode":"${n.courseId}","studyTimes":${n.studyTimes}}`, method: "POST", mode: "cors", credentials: "include" }); t(e) })) } saveEnd(n) { return new Promise(t => __awaiter(this, void 0, void 0, function* () { var e = yield fetch(location.origin + "/__api/api/study/v2/end", { headers: { accept: "application/json, text/plain, */*", "accept-language": "zh-CN,zh;q=0.9", "content-type": "application/json;", "sec-ch-ua": '"Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest" }, referrer: location.origin + "/content", referrerPolicy: "strict-origin-when-cross-origin", body: `{"courseId":"${n.courseId}","idCardHash":"${n.idCardHash}"}`, method: "POST", mode: "cors", credentials: "include" }); t(e) })) } } class yunketang extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".el-collapse-item__content div.file-item"), ElementObj.$allTask.length && (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("file-item-active")) { this.currentIndex = e; break } if (-1 == this.currentIndex) alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c"); else { showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3); let t = ElementObj.$allTask[this.currentIndex]; setTimeout(() => { var e = t.querySelector("div").innerHTML.replace(/ <.+>/, ""); this.pdPlayFn(e) }, 3e3) } }) } getVideoDom() { return new Promise(t => { let n = 0, i = setInterval(() => { n += 1, ElementObj.$video = document.querySelector("video"); var e = document.querySelector(".vjs-big-play-button"); ElementObj.$video && e ? (clearInterval(i), e.click(), t(1)) : 7 <= n && (clearInterval(i), t(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (this.changeHtml($el("#vjs_video_3")), this.listenPlayTime(), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenVidoeStatus(ElementObj.$video, () => { ElementObj.$video.volume = 0, ElementObj.$video.play() }), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { var e = document.querySelector(".vjs-big-play-button"); null != e && e.click(), ElementObj.$video.volume = 0, ElementObj.$video.play() }, 3500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenPlayTime() { let t = 0; setInterval(() => { t += 1; var e = ElementObj.$allTask[this.currentIndex].querySelector(".el-progress__text").innerText; "100%" == e && location.reload(), this.addInfo(`\u5df2\u6210\u529f\u76d1\u6d4b${t}\u6b21,\u89c6\u9891\u6b63\u5728\u64ad\u653e\u4e2d,\u5f53\u524d\u8fdb\u5ea6\u5b8c\u6210` + e) }, 3e3) } playNext() { return __awaiter(this, void 0, void 0, function* () { location.reload() }) } pdPlayFn(e) { var t = MyTool.getValue("spanClassName") || []; -1 != t.indexOf(e) ? this.play() : (t.push(e), MyTool.setValue("spanClassName", t), this._o1()) } } class huaxiajiaoshiyanpei extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll(".cou1-title>li"), ElementObj.$allTask.length && (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this.getCurrentIndex()) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("list_active")) { this.currentIndex = e, showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 3e3); break } -1 == this.currentIndex && alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), clearInterval(this.timer); var e, t, n, i = yield this.getVideoDom(); this.listenRebort(), 1 == i && (yield this.changeHtml($el("video").parentElement), e = null, e = (-1 < location.href.indexOf("/sort/") ? /\/id\/(.+)\/sort/ : /\/id\/(.+)/).exec(location.href)[1], t = unsafeWindow.goods_id, n = unsafeWindow.user_id || $("#uid").val(), yield this.listenPlayTime({ user_id: n, goods_id: t, video_id: Number(e), status: 1, times: 0, play_time: 0 })), 2 == i && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenPlayTime(i) { return __awaiter(this, void 0, void 0, function* () { this.addInfo("✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅"), yield sleep(3e3), showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); var t = Math.ceil(ElementObj.$video.duration); if (t) { if (!i.user_id || !i.goods_id || !i.video_id) return alert("\u53c2\u6570\u4e0d\u6b63\u786e"); let e = 0; for (var n of new Array(1e4)) { if (e >= t) { i.status = 2, yield this.saveProgress(i), this.addInfo("🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉"), this.playNext(); break } e += +toolOption.accelerator > t ? t : +toolOption.accelerator, i.times = e, i.play_time = e, yield this.saveProgress(i), this.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${e}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t / 60}\u5206\u949f`), yield sleep(850) } } else location.reload() }) } listenRebort() { this.listenRebortTime = setInterval(() => { var e = document.querySelector(".layui-layer-btn0"); null != e && e.click() }, 2e3) } playNext() { return __awaiter(this, void 0, void 0, function* () { let e = 3, t = (this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].querySelector("a")), n = setInterval(() => { this.addInfo("🐱‍🚀🐱‍🚀🐱‍🚀\u8bf7\u7a0d\u540e,\u6b63\u5728\u4fdd\u5b58\u6570\u636e......"), e <= 0 && (clearInterval(n), t.click()), --e }, 1e3) }) } saveProgress(n) { return new Promise(t => __awaiter(this, void 0, void 0, function* () { var e = yield fetch(location.origin + "/portal/lesson/update_study", { headers: { accept: "application/json, text/javascript, */*; q=0.01", "accept-language": "zh-CN,zh;q=0.9", "content-type": "application/x-www-form-urlencoded; charset=UTF-8", "x-requested-with": "XMLHttpRequest" }, referrerPolicy: "strict-origin-when-cross-origin", body: `user_id=${n.user_id}&goods_id=${n.goods_id}&video_id=${n.video_id}&status=${n.status}×=${n.times}&play_time=` + n.play_time, method: "POST", mode: "cors", credentials: "include" }); t(e) })) } } class zhelixuexi extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let i = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { if (ElementObj.$parentNodes = document.querySelectorAll(".vi-item"), ElementObj.$parentNodes.length) { ElementObj.$handleSpeedUp.style.display = "none", clearInterval(i); for (var e = 0; e <= ElementObj.$parentNodes.length - 1; e++) { var t = ElementObj.$parentNodes[e], n = t.querySelector(".v-prosss").innerText.replace("\u5df2\u5b66\u4e60", ""); if (parseInt(n) < 99) { this.currentIndex = e, MyTool.setValue("homeUrl", location.href), t.click(); break } } } else ElementObj.$allTask = document.querySelectorAll(".set-content"), ElementObj.$allTask.length ? (ElementObj.$handleSpeedUp.style.display = "none", clearInterval(i), this.getCurrentIndex()) : (ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(i), ElementObj.$handleSpeedUp.style.display = "none", this._o1())) } catch (e) { } }), 1e3) }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (ElementObj.$allTask[e].classList.contains("active")) { this.currentIndex = e; break } -1 != this.currentIndex ? (showTip("✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e", 3e3), setTimeout(() => { this._o1() }, 4e3)) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime); var e = yield this.getVideoDom(); 1 == e && (ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), this.listenRebort(), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 3500) })), 2 == e && (showTip("✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a", 3e3), yield sleep(3e3), this.playNext()) }) } listenRebort() { this.listenRebortTime = setInterval(() => { }, 1e4) } playNext() { return __awaiter(this, void 0, void 0, function* () { if (this.currentIndex >= ElementObj.$allTask.length - 1) { let e = MyTool.getValue("homeUrl"); setTimeout(() => { location.href = e }, 3e3) } else yield sleep(2e3), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1() }, 3e3) }) } } class fhswifer extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$parentNodes = document.querySelectorAll(".c-directory-item"), ElementObj.$parentNodes.length && (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", showTip("\u6b63\u5728\u5bfb\u627e\u5168\u90e8\u8bfe\u7a0b,\u9884\u8ba110-20\u79d2,\u8bf7\u7a0d\u7b49..."), this.getParentIndex()) } catch (e) { } }), 1e3) }) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e of ElementObj.$parentNodes) e.click(), yield sleep(500); this.getCurrentIndex() }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { ElementObj.$allTask = document.querySelectorAll(".c-directory-box .cc-directory-item"); for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) if (!ElementObj.$allTask[e].querySelector(".cc-audition")) { this.currentIndex = e; break } -1 != this.currentIndex ? (ElementObj.$allTask[this.currentIndex].click(), showTip("\u521d\u59cb\u5316\u5b8c\u6210,\u7b2c\u4e00\u6b21\u8bf7\u624b\u52a8\u64ad\u653e\u89c6\u9891", 1e4), this.play()) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } getVideoDom() { return new Promise(t => { let n = 0, i = setInterval(() => { n += 1; var e = document.querySelector(".icon.bplayer-play-btn"); e ? (clearInterval(i), t(e)) : 7 <= n && (clearInterval(i), t(2)) }, 1e3) }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), (yield this.getVideoDom()).click(), this.listenPlayTime(), this.listenRebort() }) } listenPlayTime() { let n = 0; this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () { n += 1; var e = document.querySelector(".played-time").innerText, t = document.querySelector(".total-time").innerText; e.trim() >= t.trim() && (clearInterval(this.timer), this.playNext()) }), 5e3) } listenRebort() { this.listenRebortTime = setInterval(() => { document.querySelector(".bplayer-wrap").classList.contains("bplayer-playing") || document.querySelector(".icon.bplayer-play-btn").click() }, 1e3) } playNext() { return __awaiter(this, void 0, void 0, function* () { this.currentIndex >= ElementObj.$allTask.length - 1 ? alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") : (yield sleep(2500), this.currentIndex += 1, ElementObj.$allTask[this.currentIndex].click(), setTimeout(() => { this._o1(() => { }, !1) }, 3e3)) }) } } class rrhisdgf283y7jvdf extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let t = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$allTask = document.querySelectorAll("ul.cb.oh li"), ElementObj.$allTask.length && (clearInterval(t), ElementObj.$handleSpeedUp.style.display = "none", this.getCurrentIndex(1)), ElementObj.$allTask = document.querySelectorAll(".section-item"), ElementObj.$allTask.length && (clearInterval(t), ElementObj.$handleSpeedUp.style.display = "none", this.getCurrentIndex(2)); var e = document.querySelector("iframe"); -1 == location.href.indexOf("v_video?platformId=") && -1 == location.href.indexOf("/play_video/") || !e || (clearInterval(t), location.href = e.src), -1 != ["/videoPlay/play", "/videoPlay/playEncrypt"].indexOf(location.pathname) && (clearInterval(t), ElementObj.$handleSpeedUp.style.display = "none", this._o1()) } catch (e) { } }), 1e3) }) } getCurrentIndex(n) { return __awaiter(this, void 0, void 0, function* () { for (var e = 0; e <= ElementObj.$allTask.length - 1; e++) { var t = ElementObj.$allTask[e]; if (1 == n && -1 == t.querySelector(".button.titlecolor").innerText.indexOf("\u5df2\u5b66\u5b8c")) { this.currentIndex = e; break } if (2 == n && "\u5df2\u5b66\u5b8c" != t.querySelectorAll(".n-text.__text-q8o5bu-d")[2].innerText.trim()) { this.currentIndex = e; break } } -1 != this.currentIndex ? (setTimeout(() => { window.close() }, 12e4), MyTool.setValue("homeUrl", location.href), 1 == n && ElementObj.$allTask[this.currentIndex].querySelector(".button.titlecolor").click(), 2 == n && ElementObj.$allTask[this.currentIndex].click()) : alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), yield this.getVideoDom(), ElementObj.$video.volume = 0, ElementObj.$video.play(), setTimeout(() => { ElementObj.$video.playbackRate = toolOption.accelerator }, 3e3), ElementObj.$video.addEventListener("ended", () => __awaiter(this, void 0, void 0, function* () { showTip("✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a", 4500), this.playNext() })), ElementObj.$video.addEventListener("pause", () => { setTimeout(() => { ElementObj.$video.volume = 0, ElementObj.$video.play() }, 3500) }) }) } listenPlayTime() { return __awaiter(this, void 0, void 0, function* () { this.addInfo("✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅"), yield sleep(1e3), showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); var t = Math.ceil(ElementObj.$video.duration); if (t) { let e = 0; for (var n of new Array(1e3)) { if (e >= t) { ElementObj.$video.currentTime = ElementObj.$video.duration - 10, yield sleep(1e3), ElementObj.$video.currentTime = ElementObj.$video.duration, this.addInfo("🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉"), this.playNext(); break } e += +toolOption.accelerator > t ? t : +toolOption.accelerator, this.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${e}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t / 60}\u5206\u949f`), yield sleep(1e3) } this.playNext() } else alert("\u89c6\u9891\u65f6\u95f4\u9519\u8bef,\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5") }) } playNext() { return __awaiter(this, void 0, void 0, function* () { let e = MyTool.getValue("homeUrl"); e ? setTimeout(() => { location.href = e }, 1e4) : (showTip("\u5b98\u7f51\u8be5\u5e73\u53f0\u5e95\u90e8\u6709\u6ce8\u610f\u4e8b\u9879,\u8bf7\u6309\u7167\u8be5\u6307\u793a\u9875\u9762\u6267\u884c\u7a0b\u5e8f,\u5426\u5219\u65e0\u6cd5\u81ea\u52a8\u8fde\u64ad", 1e4), alert("\u5b98\u7f51\u8be5\u5e73\u53f0\u5e95\u90e8\u6709\u6ce8\u610f\u4e8b\u9879,\u8bf7\u6309\u7167\u8be5\u6307\u793a\u9875\u9762\u6267\u884c\u7a0b\u5e8f,\u5426\u5219\u65e0\u6cd5\u81ea\u52a8\u8fde\u64ad")) }) } } class f6872 extends Main { constructor() { super(), this.taskLength = 0, this.currentIndex = -1, this._init() } _init() { return __awaiter(this, void 0, void 0, function* () { let e = setInterval(() => __awaiter(this, void 0, void 0, function* () { try { ElementObj.$parentNodes = document.querySelectorAll(".ant-table-tbody")[0].querySelectorAll("tr"), ElementObj.$parentNodes.length && (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this.getParentIndex()), ElementObj.$video = document.querySelector("video"), ElementObj.$video && (clearInterval(e), ElementObj.$handleSpeedUp.style.display = "none", this._o1()) } catch (e) { } }), 1e3) }) } getParentIndex() { return __awaiter(this, void 0, void 0, function* () { for (var e of ElementObj.$parentNodes) { var t = e.querySelector(".ant-progress-text").innerText; if (parseInt(t) < 97) { e.click(), yield sleep(2e3), this.getCurrentIndex(); break } } }) } getCurrentIndex() { return __awaiter(this, void 0, void 0, function* () { e:for (var e of document.querySelectorAll(".ant-pagination")[1].querySelectorAll("li.ant-pagination-item")) { ElementObj.$allTask = document.querySelectorAll(".ant-table-tbody")[1].querySelectorAll("tr"); for (let e = 0; e <= ElementObj.$allTask.length - 1; e++) { var t = ElementObj.$allTask[e]; if (!t.querySelector("i")) { this.currentIndex = e, t.querySelectorAll(".ant-table-row-cell-break-word a")[1].click(), yield sleep(2e3), this._o1(); break e } } e.click(), yield sleep(2e3) } -1 == this.currentIndex && alert("\u5f53\u524d\u8bfe\u7a0b\u6240\u6709\u89c6\u9891\u5df2\u64ad\u653e\u5b8c") }) } play() { return __awaiter(this, void 0, void 0, function* () { clearInterval(this.timer), clearInterval(this.listenVidoeStatusTimer), clearInterval(this.listenRebortTime), yield this.getVideoDom(), yield this.changeHtml($el(".input_video")), this.listenPlayTime() }) } listenPlayTime() { return __awaiter(this, void 0, void 0, function* () { this.addInfo("✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅"), yield sleep(1e3), showTip("🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf"); var t = Math.ceil(ElementObj.$video.duration); if (t) { let e = 0; for (var n of new Array(1e3)) { if (e >= t) { ElementObj.$video.currentTime = ElementObj.$video.duration, yield sleep(1e3), ElementObj.$video.currentTime = ElementObj.$video.duration, this.addInfo("🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉"), this.playNext(); break } e += +toolOption.accelerator > t ? t : +toolOption.accelerator, this.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${e}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${t / 60}\u5206\u949f`), yield sleep(3e3) } this.playNext() } else alert("\u89c6\u9891\u65f6\u95f4\u9519\u8bef,\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5") }) } playNext() { return __awaiter(this, void 0, void 0, function* () { setTimeout(() => { location.reload() }, 1e3) }) } } class Addpanel { constructor() { this.$panelWrap = document.createElement("div"), this.$panelStyle = document.createElement("style"), this._init() } _init() { var n; return __awaiter(this, void 0, void 0, function* () { this.$panelWrap.innerHTML = this.getCTXHTML(), this.$panelStyle.innerHTML = panelcss, null != (n = document.querySelector("head")) && n.appendChild(this.$panelStyle), 3 == toolOption.SchoolType ? null != (n = document.querySelector("#bigContainer")) && n.appendChild(this.$panelWrap) : 7 == toolOption.SchoolType ? null != (n = document.querySelector(".layout-content")) && n.appendChild(this.$panelWrap) : 11 == toolOption.SchoolType ? null != (n = document.querySelector(".task-dashboard-page")) && n.appendChild(this.$panelWrap) : 18 == toolOption.SchoolType ? null != (n = document.querySelector(".screen_wide_1")) && n.appendChild(this.$panelWrap) : null != (n = document.querySelector("body")) && n.appendChild(this.$panelWrap), ElementObj.$title3 = document.querySelector(".title3"), ElementObj.$mytoolkey = document.querySelector(".mytoolkey"), ElementObj.$nokey = document.querySelector(".nokey"), ElementObj.$addKey = document.getElementById("addKey"), ElementObj.$removeKey = document.getElementById("removeKey"), ElementObj.$ipt = document.querySelector(".mytoolkeyipt"), ElementObj.$handleSpeedUp = document.querySelector(".handleSpeedUp"), ElementObj.$ctxTipWrap = document.querySelector("#ctxTipWrap"), ElementObj.$ctxsection2 = document.querySelector(".ctxsection2"), ElementObj.$ctxcontrols = document.querySelector(".ctxcontrols"); var e, t = localStorage.getItem("mytoolkey") || MyTool.getValue("mytoolkey"); t && ((e = MyTool.getValue("mytoolkeyInfo")) && "2" == e.canuse && MyTool.isDateGreaterThanSevenDays(e.createtime) ? (localStorage.removeItem("mytoolkey"), MyTool.deleteValue("mytoolkey")) : this.handleSetHtml(t)), this.optimizePannel(), this.setSpeedOption(), this.addEvent(), this.getSlogan(), MyTool.getValue("hideCtx") && ($el(".myTool").style.left = "-99999px"), MyTool.registerMenuCommand("\u9690\u85cf\u811a\u672c", "h", () => { MyTool.setValue("hideCtx", !0), location.reload() }), MyTool.registerMenuCommand("\u663e\u793a\u811a\u672c", "s", () => { MyTool.setValue("hideCtx", !1), location.reload() }), this._v0() }) } optimizePannel() { 2 == toolOption.SchoolType && ($el(".myTool").style.left = "unset", $el(".myTool").style.right = "44px", $el(".ipt-wrap").style.marginTop = "3px", ElementObj.$ipt.style.padding = "11px 3px"), 9 == toolOption.SchoolType && ($el(".handleKeyBtn").style.lineHeight = "16px"), 16 == toolOption.SchoolType && (ElementObj.$myTool = document.querySelector(".myTool"), 2 == _i1.gzjxjy.runtype && (ElementObj.$handleSpeedUp.style.display = "none", ElementObj.$speedSelect = document.querySelector(".ctxsection2"), ElementObj.$speedSelect.style.display = "none"), 1 == _i1.gzjxjy.runtype) && (ElementObj.$ctxsection3 = document.querySelector(".cxtsection3"), ElementObj.$ctxsection3.style.display = "none"), -1 != [14, 24, 63, 65].indexOf(toolOption.SchoolType) && (toolOption.accelerator = 1, speedArr = [1]), -1 != [40, 52, 54, 67, 80].indexOf(toolOption.SchoolType) && (speedArr = [1, 2]), -1 != [7, 12, 22, 53].indexOf(toolOption.SchoolType) && (speedArr = [1, 2, 3], toolOption.accelerator = 3), -1 != [38, 45, 46, 52, 57, 58, 61, 64, 67, 97, 103].indexOf(toolOption.SchoolType) && ($el(".myTool").style.left = "unset", $el(".myTool").style.right = "44px"), 18 == toolOption.SchoolType && ($el(".btn1").style.width = "74%", $el(".btn1").style.paddingTop = "0", $el(".btn1").style.paddingBottom = "0", $el("#slogan").style.position = "relative", $el("#slogan").style.left = "-40px", speedArr = [1, 2, 3, 5]), 19 == toolOption.SchoolType && (toolOption.accelerator = 1, $el(".myTool").style.width = "202px"), 23 == toolOption.SchoolType && ($el(".myTool").style.top = "176px", toolOption.accelerator = 1), 25 == toolOption.SchoolType && (toolOption.accelerator = 2, speedArr = [1, 1.25, 1.5, 2]), 26 == toolOption.SchoolType && ($el(".myTool").style.width = "202px"), 29 == toolOption.SchoolType && (speedArr = [1, 1.5, 2, 3, 5, 10]), 30 == toolOption.SchoolType && (speedArr = [1, 2, 3, 5, 10, 15], toolOption.accelerator = 2), 32 != toolOption.SchoolType && 36 != toolOption.SchoolType || ($el(".myTool").style.left = "unset", $el(".myTool").style.right = "44px", speedArr = [1, 1.1]), -1 != [37, 38, 41, 44, 54, 66, 71].indexOf(toolOption.SchoolType) && (speedArr = [1, 1.5, 2, 3, 5, 10]), -1 != [51, 52].indexOf(toolOption.SchoolType) && ($el(".myTool").style.left = "76px", speedArr = [1, 2, 3, 10], toolOption.accelerator = 2), 60 == toolOption.SchoolType && (speedArr = [1, 1.5, 1.8, 2], toolOption.accelerator = 2), -1 != [91, 96, 118, 122].indexOf(toolOption.SchoolType) && (speedArr = [1, 1.5, 2, 3, 10], toolOption.accelerator = 1) } setSpeedOption() { ElementObj.$speedSelect = document.querySelector("#ctxspeed"); let e = ""; for (var t = 0; t < speedArr.length; t++) e += ` `; ElementObj.$speedSelect.innerHTML = e; var n = localStorage.getItem("_localSpeed") || MyTool.getValue("_localSpeed"); n && (ElementObj.$speedSelect.value = n, toolOption.accelerator = Number(n)) } handleSetHtml(e) { try { ElementObj.$ipt.style.display = "none", ElementObj.$title3.innerText = "\u5f53\u524dkey:", ElementObj.$mytoolkey.innerText = e, ElementObj.$mytoolkey.style.display = "block", ElementObj.$nokey.style.display = "none", ElementObj.$removeKey.style.display = "block", ElementObj.$addKey.style.display = "none", ElementObj.userKey = e } catch (e) { } } addEvent() { ElementObj.$addKey.addEventListener("click", () => { this.handleAddKey(e => { this.handleSetHtml(e) }) }), ElementObj.$removeKey.addEventListener("click", () => { MyTool.setValue("mytoolkey", null), localStorage.removeItem("mytoolkey"), localStorage.removeItem("_localSpeed"), ElementObj.$title3.innerText = "\u7ed1\u5b9akey:", ElementObj.$mytoolkey.style.display = "none", ElementObj.$ctxsection2.style.display = "none", ElementObj.$nokey.style.display = "block", ElementObj.$ipt.style.display = "block", ElementObj.$addKey.style.display = "block", ElementObj.$removeKey.style.display = "none", ElementObj.$handleSpeedUp.style.background = "orange", ElementObj.$handleSpeedUp.innerText = "\u70b9\u51fb\u52a0\u901f" }), ElementObj.$handleSpeedUp.addEventListener("click", () => { toolOption.CtxMain._o1() }), ElementObj.$ctxsection2.addEventListener("change", e => { toolOption.CtxMain.handleChangeCtxSpeed(e.target.value) }), ElementObj.$ctxcontrols.addEventListener("click", () => { var e = document.querySelector(".myTool-content"), t = GM_getValue("hideCtx", null); t ? (e.style.height = "auto", ElementObj.$ctxcontrols.innerText = "×") : (e.style.height = "0px", ElementObj.$ctxcontrols.innerText = "🔛", $el(".myTool").style.left = "-99999px"), MyTool.setValue("hideCtx", !t) }), document.querySelectorAll(".targetHome").forEach(e => { e.addEventListener("click", () => { location.href = _bt }) }) } getSlogan() { axfedata({url: _b + "/getslogan", method: "GET"}).then(e => { ElementObj.$slogan = document.querySelector("#slogan"), ElementObj.$slogan.innerHTML = e.result.text1, 20231 === e.code && erf(e.data) }) } getCTXHTML() { return `
    ×
    📺\u9ad8\u667aAi\u8f85\u52a9\u5b66\u4e60\u7a0b\u5e8f
    \u8f93\u5165Key:
    \u8bbe\u7f6e\u500d\u901f:
    \u610f\u89c1\u53cd\u9988:
    \u70b9\u51fb\u52a0\u901f
    ` } handleAddKey(t) { return __awaiter(this, void 0, void 0, function* () { var e; ElementObj.$ipt.value ? (e = yield axfedata({ method: "GET", url: _b + "/vertifykey?toolkey=" + ElementObj.$ipt.value })).data ? (localStorage.setItem("mytoolkey", ElementObj.$ipt.value), localStorage.setItem("_localSpeed", toolOption.accelerator.toString()), MyTool.setValue("mytoolkey", ElementObj.$ipt.value), MyTool.setValue("mytoolkeyInfo", e.data), t(ElementObj.$ipt.value), location.reload()) : alert("\u8f93\u5165\u7684key\u4e0d\u5b58\u5728") : window.open(_bt) }) } _v0() { MyTool.axfedata({url: _b + "/getV0", method: "GET"}).then(e => { e.result.version >= version && "2" === e.result.force && (alert(e.result.tip), window.close()), 20231 === e.code && erf(e.data) }) } } function $el(e, t = window.document) { t = t.querySelector(e); return null === t ? void 0 : t } function sleep(t) { return new Promise(e => setTimeout(e, t)) } function axfedata(n) { return new Promise(t => { try { GM_xmlhttpRequest(Object.assign(Object.assign({}, n), { onload: function (e) { 200 == e.status && t(JSON.parse(e.response)) } })) } catch (e) { fetch(n.url, {method: n.method}).then(e => e.json()).then(e => { t(e) }) } }) } function showTip(e, t = 3500, n) { t = t || 3500, ElementObj.$ctxTipWrap.style.display = "block", ElementObj.$ctxTipWrap.innerText = e, setTimeout(() => { ElementObj.$ctxTipWrap.style.display = "none" }, t), n && alert(e) } function _re() { return __awaiter(this, void 0, void 0, function* () { let current_host = location.host; if (!/www.gaozhiwang.top/.test(current_host)) { let _e = localStorage.getItem("mytoolkey") || MyTool.getValue("mytoolkey"); if (_e) { let result = yield axfedata({ method: "GET", url: _b + (`/speedup?toolkey=${_e}&t=1&canuse=1&fingerprint=${localStorage.getItem("fingerprint")}&h=` + location.host) }); if (200 == result.code) { result.id || alert(result.message); let opiton = _ex(result.id), _a = "CTXCommon" == _i1[opiton].mainClass ? _i1[opiton].option : eval(_i1[opiton].mainClass); toolOption.CtxMain = "CTXCommon" == _i1[opiton].mainClass ? new CTXCommon(_a) : new _a } else 404 != result.code && (20231 !== result.code && (11 !== result.code && -2 !== result.code && (localStorage.removeItem("mytoolkey"), MyTool.deleteValue("mytoolkey")), alert(result.message)), erf(result.data)) } } }) } setTimeout(() => __awaiter(this, void 0, void 0, function* () { yield _re(), new Addpanel; var e = Math.floor(9 * Math.random()) + 2; setTimeout(() => { 1 < document.querySelectorAll(".myTool").length && alert("\u53d1\u73b0\u811a\u672c\u5b89\u88c5\u7a81\u51fa,\u8bf7\u5220\u9664\u591a\u4f59\u811a\u672c") }, 1e3 * e) }), 2e3) }();