From 09cbae94829d9c9ba83e09320b12ee82d4098dda Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 6 Dec 2024 13:38:35 +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 | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/SrcJyMethod.js b/SrcJyMethod.js index 3d28b27e..9dd96c80 100644 --- a/SrcJyMethod.js +++ b/SrcJyMethod.js @@ -16,31 +16,9 @@ function extraJS(playUrl) { check(); },p1,p2) } - function click2() { - return $.toString(() => { - function check() { - try { - // 获取所有具有 id 属性的元素 - var elementsWithId = document.querySelectorAll('[id]'); - // 遍历每个元素,检查文本内容并触发点击事件 - elementsWithId.forEach(function(element) { - // 检查元素的文本内容是否包含 "点击播放" - if (element.textContent.includes("播放")) { - fba.log("点击"); - element.click(); - } - }); - } catch (e) { - setTimeout(check, 100); - } - } - check(); - }) - } + if(/jqqzx\.me|dadazhu\.me/.test(playUrl)){ return click1('#playleft iframe','#start'); - }else if(/media\.staticfile\.link/.test(playUrl)){ - return click2(); }else{ return undefined; }