优化视频播放结束后的返回逻辑并更新版本号
This commit is contained in:
parent
33128b5c7e
commit
6594f77a8f
|
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 平顶山学院(青书学堂)自动学习脚本
|
// @name 平顶山学院(青书学堂)自动学习脚本
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 2025-11-24
|
// @version 2025-11-26
|
||||||
// @description try to take over the world!
|
// @description try to take over the world!
|
||||||
// @author You
|
// @author You
|
||||||
// @match https://degree.qingshuxuetang.com/pdsu/Student/Course/CourseStudy*
|
// @match https://degree.qingshuxuetang.com/pdsu/Student/Course/CourseStudy*
|
||||||
|
|
@ -68,11 +68,7 @@
|
||||||
if (video.currentTime >= video.duration - 1) {
|
if (video.currentTime >= video.duration - 1) {
|
||||||
console.log("视频播放结束,返回准备页面");
|
console.log("视频播放结束,返回准备页面");
|
||||||
clearInterval(videoInterval);
|
clearInterval(videoInterval);
|
||||||
document
|
document.querySelector(".back-link").click();
|
||||||
.querySelector(
|
|
||||||
"body > div.wrapper > div:nth-child(66) > ol > li:nth-child(3) > a"
|
|
||||||
)
|
|
||||||
.click();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (video.playbackRate === 1) {
|
if (video.playbackRate === 1) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue