// ==UserScript== // @name 电大中专-自动看课 // @namespace oneMiku // @email 704191499@qq.com // @version 1.0.1 // @license MIT // @description 中央广播电视中等专业学校-电大中专,自动看课,将所选科目课程全部自动看完 // @author oneMiku // @match *://zzx.ouchn.edu.cn/* // @downloadURL none // ==/UserScript== (function () { 'use strict'; setInterval(function () { if (window.location.href.indexOf("courseList") !== -1) { $(".cour_process .jdb").filter((i, o) => o.innerText !== "100%").first().parent().parent().parent().find("img")[0].click(); } else if (window.location.href.indexOf("courseInfo") !== -1) { $(".video_process .jdb").filter((i, o) => o.innerText !== "100%").first()[0].click(); } else if (window.location.href.indexOf("sectionVideo") !== -1) { if ($(".setionItem.active .jdb").eq(0).text() === "100%") { let o = $(".jdb").filter((i, o) => o.innerText !== "100%").first() if (o.length === 1) o.click(); else window.location = "https://zzx.ouchn.edu.cn/edu/public/student/#/courseList/1" } let btns = $(".nextbtn.btn"); if (btns.length !== 0) btns[0].click() } }, 2000) })();