From 8047edcdfb0a2f329c8c7407c11c673a257500db Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Mon, 21 Oct 2024 17:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'test.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 test.js diff --git a/test.js b/test.js new file mode 100644 index 00000000..960306c2 --- /dev/null +++ b/test.js @@ -0,0 +1,37 @@ + +let d = []; +d.push({ + title: "点我播放", + url: "video://https://www.jqqzx.me/play/614-9-1.html", + col_type: "text_1", + desc: "", + pic_url: "", + extra: { + js: $.toString(() => { + function check() { + fy_bridge_app.log("check"); + let src = document.querySelectorAll("iframe")[1]; + if (src) { + location.href = src.src; + } else { + setTimeout(check, 200); + } + } + if (location.href.includes(".xiangdao.me/")) { + check(); + } + function check2() { + fy_bridge_app.log("check2"); + let a = document.querySelector("#start"); + if(a) { + a.click(); + } else { + setTimeout(check2, 200); + } + } + check2(); + }) + } +}); + +setResult(d);