Last updated on 2021-11-29T16:07:10+08:00
In three words I can sum up everything I've learned about life: it
goes on. 几个字足以概括我学到的人生:一切都在继续。
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
| var fa = $("body"); var btn = $("<li></li>"); var json = { "background": "#66ccff", "height": "16px", "padding": "5px", "z-index": 0xFFFFF, "cursor": "pointer", "top": "300px", "right": "120px", "position": "fixed" }; btn.css(json); btn.html("<span id='lfsenior'>开启自动播放模式</span>"); fa.append(btn); btn.click(function () { setInterval(function () { var video = $("iframe").contents().find("iframe").contents(); var play = function () { video.find("#video > button").click(); var jy = video.find("#video > div.vjs-control-bar > div.vjs-volume-panel.vjs-control.vjs-volume-panel-vertical > button"); if (jy.attr("title") != "取消静音") { jy.click() } } var load = video.find("#loading"); if (load.css("visibility") != "hidden") { return; } var spans = video.find("#video > div.vjs-control-bar > div.vjs-progress-control.vjs-control > div").attr("aria-valuenow"); if (spans != 100) { play(); } $("#lfsenior").html("自动模式已开启,本章进度:" + spans + "%"); }, 100); });
|
以Chrome为例,按F12打开Console,复制代码回车即可。
2019-10-18更新
目前部分课程网站添加了前端反调试,表现为页面不断debugger,Chrome只需Ctrl
+ F8禁止断点即可。