刷网课具体方法,打开谷歌浏览器,按F12,然后选择 console,把下面的代码粘进去,然后回车,这个时候屏幕中间会有一个按钮,点一下,挂机就可以了(感谢fls)。
https://paste.ubuntu.com/p/8hq6Mw9BqS/
代码:
1 var fa=$("body");
2 var btn=$("<li></li>");
3 var json={
4 "background":"#31e16d",
5 "height":"16px",
6 "padding":"5px",
7 "cursor": "pointer",
8 "top":"300px",
9 "right":"80px",
10 "position": "fixed"
11 };
12 btn.css(json);
13 btn.html("<span id='lfsenior'>开启自动播放模式</span>");
14 fa.append(btn);
15 var bodywidth=$("#body").css("width");
16 var mainwidth=$("#main").css("width");
17 btn.click(function () {
18 $("#lfsenior").html("自动模式已开启");
19 //关闭弹题
20 setInterval(function(){
21 $(".popboxes_close").click();
22 //获取当前进度
23 var spans=$(".current_play span");
24 var progress=spans[spans.size()-1].innerHTML;
25 if("100"==progress.substring(progress.lastIndexOf("『")+1,progress.lastIndexOf("』")-1)){
26 //播放完毕
27 $(".next_lesson a").click();
28 }else{
29 $("#vjs_mediaplayer_html5_api")[0].play();
30 $("#vjs_mediaplayer_html5_api")[0].muted=true;
31 }
32 $("#lfsenior").html("自动模式已开启,本章进度:"+progress+"%");
33 },100);
34
35
36 });
37
来源:https://www.cnblogs.com/letlifestop/p/10262831.html