京训钉自动播放下一章(2021版)


var buttons = document.getElementsByClassName("next_button___YGZWZ");
setInterval(function() {
    var button = buttons[0];
    if(typeof(button) != 'undefined'){
        console.log("next chapter!!!")
        button.click();
    }
},5000);
var outters = document.getElementsByClassName("outter");
setInterval(function() {
    var playing = document.getElementsByClassName("prism-big-play-btn");
    var attr = playing[0].getAttribute('class');
    if(attr.indexOf('playing') < 0){
        var outter = outters[0];
        if(typeof(outter) != 'undefined'){
            console.log("video start!!!")
            outter.click();
        }
    }
},5000);
setInterval(function() {
    var ant = document.getElementsByClassName("ant-btn-primary");
    if(ant.length != 0){
        ant[0].click();
    }
},5000);

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM