From 5db907f35a2282ea59e1bd3ca4578346a7174641 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 10 Dec 2024 17:00:39 +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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SrcJyMethod.js b/SrcJyMethod.js index f3ee0d8f..b6acb799 100644 --- a/SrcJyMethod.js +++ b/SrcJyMethod.js @@ -23,7 +23,13 @@ function extraJS(playUrl) { // 获取所有具有 id 属性的元素 var elementsWithId2 = Array.from(document.querySelectorAll('[id]')); fba.log("" + elementsWithId2.length); - fba.log(Array.from(elementsWithId2)); + if(elementsWithId2.length>0){ + fba.log(elementsWithId2[0].outerHTML); + fba.log(elementsWithId2[1].outerHTML); + fba.log(elementsWithId2[2].outerHTML); + fba.log(elementsWithId2[3].outerHTML); + } + //var elementsWithId = document.querySelectorAll('[id]'); // 遍历每个元素,检查文本内容并触发点击事件 elementsWithId2.forEach(element => {