京训钉自动播放下一章(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);

使用方法:打开谷歌浏览器 --> 按F12 --> 找到console控制台 —> 复制粘贴 --> 回车