Greasy Fork is available in English.
(自动播放、自动下一节)
当前为
// ==UserScript==
// @name 暑假研
// @namespace http://tampermonkey.net/
// @version 0.1
// @description (自动播放、自动下一节)
// @author You
// @match https://www.zxx.edu.cn/*
// @grant none
// @license You
// ==/UserScript==
(function() {
'use strict';
//document.querySelector('video').play();
//current_video.volume = 0
// Your code here...
setInterval(function () {
for (var i = 0; i < document.getElementsByTagName('video').length; i++) {
var current_video = document.getElementsByTagName('video')[i]
// 静音
current_video.volume = 0
// 如果视频被暂停
if (current_video.paused) {
current_video.play()
}
var zaiyici = document.querySelector("#root > div > div > div > div > div > div > div.index-module_detail-top_1krVu > div.index-module_detail-top-l_29FcP > div:nth-child(2) > div > div > div.course-video-reload-main > div.course-video-reload")
if (zaiyici.innerText == '再学一遍'){
var dierge = document.querySelector("#root > div > div > div > div > div > div > div.index-module_detail-top_1krVu > div.index-module_detail-top-r_11YZB > div.index-module_catalog-wrapper_IW_l9 > div.index-module_course-catalog_3sMOn > div > div > div:nth-child(2)")
dierge.click();
}
}
}, 2000)
})();