From ed1570381558e38dc7b1867fa165d122a34ec8f6 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 6 Dec 2024 11:20:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyMethod.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyMethod.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/SrcJyMethod.js b/SrcJyMethod.js index b21a8646..3d28b27e 100644 --- a/SrcJyMethod.js +++ b/SrcJyMethod.js @@ -22,21 +22,14 @@ function extraJS(playUrl) { try { // 获取所有具有 id 属性的元素 var elementsWithId = document.querySelectorAll('[id]'); - fba.log(document); - //fba.log(elementsWithId); // 遍历每个元素,检查文本内容并触发点击事件 - /* elementsWithId.forEach(function(element) { // 检查元素的文本内容是否包含 "点击播放" - if (element.textContent.includes("点击播放")) { + if (element.textContent.includes("播放")) { + fba.log("点击"); element.click(); } }); - */ - // 遍历每个元素并触发点击事件 - elementsWithId.forEach(function(element) { - element.click(); - }); } catch (e) { setTimeout(check, 100); }