赞
踩
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);
function fn() { let dom = document.querySelector("video"); let btn = document.querySelector(".mvp-toggle-play"); let nextBtn = document.querySelector(".next-btn"); if (dom) { dom.playbackRate = "16"; btn.click(); dom.addEventListener("ended", function () { // 视频播放结束时执行的操作 nextBtn.click(); setTimeout(() => { fn(); }, 1500); }); } else { nextBtn.click(); setTimeout(() => { fn(); }, 1500); } } fn();
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。