You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Juying/test.js

43 lines
1.3 KiB

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(() => {
//fy_bridge_app.log(location.href);
function check() {
fy_bridge_app.log("check");
let iframes = document.querySelectorAll("iframe");
for(var i = 0; i < iframes.length; i++) {
fy_bridge_app.log(iframes[i].src);
}
if (iframes[1]) {
location.href = iframes.src;
} else {
setTimeout(check, 200);
}
}
if (location.href.includes("jqqzx.me/play/")) {
check();
}
function check2() {
fy_bridge_app.log("check2");
let a = document.querySelector("#start");
if(a) {
fy_bridge_app.log("click");
a.click();
} else {
setTimeout(check2, 200);
}
}
if (!location.href.includes("jqqzx.me/play/")) {
check2();
}
})
}
});
setResult(d);