超星学习通加速刷网课

3/18/2024

复制最下方代码 打开学习通,并且选择某个科目,然后进入学习界面 按 F12 打开控制台,然后选择 Console 粘贴进代码。

人工代刷网课

将复制的代码粘贴进去,然后回车即可。

如果包含章节测试,则最好再次按下F12将控制台关闭

配置高的电脑可以适当的加快视频的播放倍速,默认是八倍。性能的查的电脑尽量降低倍率。 倍率控制的代码在第45行:v.playbackRate = 8;,将8改为其他数字即可,注意:测试最大速度为16倍速播放,再快可能会报错。****

window.unitCount = $(".ncells h4").index($(".currents")) + 1;
// 获取小节数量
window.unit = $(".ncells h4").length;

function main(){
    const frameObj = $("iframe").eq(0).contents().find("iframe.ans-insertvideo-online");
    const videoNum = frameObj.length;
    if(videoNum > 0){
        console.log("%c当前小节中包含 " + videoNum + " 个视频","color:#FF7A38;font-size:18px");
        var v_done = 0;
        // 添加事件处理程序
        addEventListener("playdone" ,()=>{
            v_done++;
            if(v_done > videoNum){
                // 下一节
            } else if(v_done < videoNum){
                watchVideo(frameObj, v_done)
            } else {
                console.log("%c本小节视频播放完毕,等待跳转至下一小节...","font-size:18px");nextUnit();
            }
        });
        // 播放
        watchVideo(frameObj, v_done);
    } else {
        if(window.unitCount < window.unit){
            console.log("%c当前小节中无视频,6秒后将跳转至下一节","font-size:18px");
            nextUnit();
        } else {
            console.log("%c好了好了,毕业了","color:red;font-size:18px");
        }
    }
}
function watchVideo(frameObj, v_done){
    // 添加播放事件
    var playDoneEvent = new Event("playdone");
    // 获取播放对象
    var v = undefined;
    v = frameObj.contents().eq(v_done).find("video#video_html5_api").get(0);window.a = v;
    // 设置倍速
    try{ v.playbackRate = 8;}
    catch(e){console.error("倍速设置失败!此节可能有需要回复内容,不影响,跳至下一节。错误信息:"+e); nextUnit(); return;}
    // 播放
    v.play();
    console.log("%c正在 " + v.playbackRate + " 倍速播放第 " + (v_done + 1) + " 个视频","font-size:18px");
    // 循环获取播放进度
    window.inter = setInterval(()=>{
        v = window.a;
        if(v.currentTime >= v.duration){
            dispatchEvent(playDoneEvent);
            clearInterval(window.inter);
        }
        if(v.paused){
            v.play();
        }
    },1000);
}
function nextUnit(){
    console.log("%c即将进入下一节...","color:red;font-size:18px");
    setTimeout(() => {
        $(document).scrollTop($(document).height()-$(window).height());
        $(".orientationright").click();
        console.log("%c行了别看了,我知道你学会了,下一节","color:red;font-size:18px");// (已经跳转" +(++window.unitCount)+"次)");
        if(window.unitCount++ < window.unit){ setTimeout(() => main(), 10000) }
    }, 6000);
}
console.log("%c 欢迎使用本脚本,此科目有%c %d %c个小节,当前为 %c第%d小节 %c-chao", "color:#6dbcff", "color:red", window.unit, "color:#6dbcff", "color:red", window.unitCount, "font-size:8px");
main();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

人工代刷网课 1:1走进度 网课代刷人工代 包视频+作业! (opens new window)

学习通代刷,超星尔雅代刷,学习通答案,智慧树代刷,知到代刷 – 网课代刷 (opens new window)