From e14de627e77d6186ab934996065df306eabc5386 Mon Sep 17 00:00:00 2001 From: SessionHu <102411014+SessionHu@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:46:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(index.js):=20=E8=A7=86=E9=A2=91=E6=9C=AA?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E5=B0=B1=E6=98=BE=E7=A4=BA=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6479ea3..3d143f0 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Etw360ff // @namespace org.sessx6cf.etw360ff -// @version 0.1.1 +// @version 0.1.2 // @description Etw360ff // @author SessionHu // @license mit @@ -29,6 +29,7 @@ const skipBtn = document.querySelector("div.btn.action-skip"); if (skipBtn !== null) { skipBtn.click(); + console.log("[Etw360ff] 有题目! 喵喵才不做呢~"); } // 继续播放 const continuePlayBtn = document.querySelector(`img[alt="继续播放"]`); @@ -39,7 +40,8 @@ // 提示播放结束 const videoDuration = document.querySelector("span.vjs-duration-display"); const videoCurrent = document.querySelector("span.vjs-current-time-display"); - if (videoCurrent !== null && videoDuration.innerText !== "0:00" && (videoDuration.innerText === videoCurrent.innerText)) { + if (videoCurrent !== null && videoCurrent.innerText !== "" && videoDuration.innerText !== "0:00" && (videoDuration.innerText === videoCurrent.innerText)) + { window.clearInterval(sessEtw360ffIntervalId); console.log("[Etw360ff] 结束了喵!"); document.title = "播放结束";