2020年最新智慧樹自動刷課代碼腳本--Javascript、Jquery

登錄後打開課程視頻播放
按下F12鍵或者右鍵打開審查元素
切換到console欄下
複製粘貼以下指令
回車

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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;更多精彩內容請訪問www.yaunsine.xyz/homeweb&nbsp;&nbsp;&nbsp;&nbsp;"+now.getFullYear()+"-"+month+"-"+now.getDate()+"&nbsp;"+now.getHours()+":"+now.getMinutes()+"</marquee>");
main.append(msg);
video.css("color", "blue");
setTimeout(function () {
    $('.speedTab15').click();
    $('.volumeIcon').click();
    console.log("已進行靜音和1.5倍加速");
}, 1000);
ti.on("DOMNodeInserted", function (e) {
    if (e.target.textContent.indexOf("彈題測驗")>=0) {
        
        setTimeout(function () {
	        $(".dialog-test").remove();
	        $(".v-modal").remove();//移除彈窗
        }, 1000);
        $("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倍加速");
		}, 1000);
    }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倍加速");
		}, 1000);
    }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倍加速");
		    }, 1000);
        }else{
            if( $(".current_play").next().length==1){
                $('#nextBtn').click();
                setTimeout(function () {
			    $('.speedTab15').click();
			    $('.volumeIcon').click();
			    console.log("已進行靜音和1.5倍加速");
		    }, 1000);
            }else{
                $(".current_play").parent().next().contents().click();//播放下一個視頻
                setTimeout(function () {
			    $('.speedTab15').click();
			    $('.volumeIcon').click();
			    console.log("已進行靜音和1.5倍加速");
		    }, 1000);
            }
            
        }
    }
}
},3000);

在這裏插入圖片描述

已於2020年03月08日更新

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章