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); }