Greasy Fork is available in English.
自动点击未观看的课程,自动点击确定,自动下一章,自动刷新页面,省去频繁点击的烦恼
// ==UserScript==
// @name xx职业技能提升自动点击
// @namespace http://tampermonkey.net/
// @version 1.4
// @description 自动点击未观看的课程,自动点击确定,自动下一章,自动刷新页面,省去频繁点击的烦恼
// @author spark
// @match https://www.bjjnts.cn/lessonStudy/*
// @license GPL-3.0-or-later
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
var seace=0;
var num=Math.round(Math.random()*(7-3))+3;
if($("a[data-lock='1']").length>0){
setTimeout(function (){
$("a[data-lock='0']").last().click();
}, 5000);
}
$("body").bind('DOMNodeInserted', function(e) {
var roundtime=Math.round(Math.random()*10000);
if($(".layui-layer-title").length >0){
setTimeout(function (){
$(".layui-layer-btn0").click();
}, roundtime);
}
if($('.face_recogn').css('display')=='block'){
setTimeout(function (){
$(".face_startbtn").click();
}, roundtime);
}
});
// 播放结束
video.addEventListener('ended', function(e) {
var roundtime=(Math.round(Math.random()*(20-5))+5)*1000;
if(seace==num&&$("a[data-lock='1']").length>0){
location.reload();
}
setTimeout(function (){
if($(".course_study_sonmenu.on").parent().next().children("div").children("a").attr("data-lock")=="0"){
$(".course_study_sonmenu.on").parent().next().children("div").children("a").click();
}
}, roundtime);
seace++;
})
})();