新2020智慧树自动刷课脚本代码(1.5倍速,自动答题,自动跳转)
现在网上的很多个版本都已经不行了,这个是可以使用的版本,觉得不错的,请留下你的赞,谢谢
var main=$("body");
var msg=$("<li></li>");
var json={
"background":"#3D84FF",
"height":"30px",
"padding":"5px",
"top":"100px",
"right":"340px",
"font-size":"16px",
"position": "fixed",
"color":"white",
"line-height":"30px"
};
var ti = $("body");
var video = $(".catalogue_ul1 li[id*=video-]");
var i = 1;
var v = 1;
var now = new Date();
var month = now.getMonth()+1;
msg.css(json);
msg.html("<marquee>\u5df2\u4e3a\u60a8\u5f00\u542f\u81ea\u52a8\u64ad\u653e\u6a21\u5f0f\uff0c\u66f4\u591a\u9ed1\u79d1\u6280\u8bf7\u5173\u6ce8\u006c\u0073\u0069\u0072\u0033\u0034\u0035\u0036\u0037 更多精彩内容请访问www.yaunsine.xyz/homeweb "+now.getFullYear()+"-"+month+"-"+now.getDate()+" "+now.getHours()+":"+now.getMinutes()+"</marquee>");
main.append(msg);
video.css("color", "blue");
setTimeout(function () {
$('.speedTab15').click();
$('.volumeIcon').click();
console.log("已进行静音和1.5倍加速");
}, 3000);
ti.on("DOMNodeInserted", function (e) {
if (e.target.textContent.indexOf("弹题测验")>=0) {
setTimeout(function () {
$(".dialog-test").remove();
$(".v-modal").remove();//移除弹窗
}, 3000);
$("video")[0].play();
console.log("检测到第" + i + "个弹题窗口");
console.log("已关闭");
i++;
} else{
}
});
var ainterval = setInterval(function(){
if($("video")[0].pause){ $("video")[0].play();}
var len = $(".current_play").find(".time_icofinish").length;//找到当前播放已完成
var nextlen = $(".current_play").parent().nextAll().length;
var le = $(".current_play").nextAll().length;
if(len == 1){
console.clear();
if(nextlen==1){
$(".current_play").parents("ul").next().children()[2].getElementsByClassName("clearfix video")[0].click();
setTimeout(function () {
$('.speedTab15').click();
$('.volumeIcon').click();
console.log("已进行静音和1.5倍加速");
}, 1000);
}else if(nextlen==0 && le==1){
$(".current_play").next().contents().click();
setTimeout(function () {
$('.speedTab15').click();
$('.volumeIcon').click();
console.log("已进行静音和1.5倍加速");
}, 3000);
}else if(nextlen==0 && le==0){
$('#nextBtn').click();
//if($(".current_play").parents("div").next().contents()[0].innerText.indexOf("章测试")>=0){
//$(".current_play").parents("ul").next().children()[2].getElementsByClassName("clearfix video")[0].click();
// $('#nextBtn').click();
//}else{
// $('#nextBtn').click();
//$(".current_play").parents("div").next().contents().click();
// }
setTimeout(function () {
$('.speedTab15').click();
$('.volumeIcon').click();
console.log("已进行静音和1.5倍加速");
}, 3000);
}else{
if($(".current_play").parent().next().find('.clearfix').length>1){
$(".current_play").parent().next().find('.clearfix')[1].click();
setTimeout(function () {
$('.speedTab15').click();
$('.volumeIcon').click();
console.log("已进行静音和1.5倍加速");
}, 3000);
}else{
if( $(".current_play").next().length==1){
$('#nextBtn').click();
setTimeout(function () {
$('.speedTab15').click();
$('.volumeIcon').click();
console.log("已进行静音和1.5倍加速");
}, 3000);
}else{
$(".current_play").parent().next().contents().click();//播放下一个视频
setTimeout(function () {
$('.speedTab15').click();
$('.volumeIcon').click();
console.log("已进行静音和1.5倍加速");
}, 3000);
}
}
}
}
},3000);