更新 'SrcJyMethod.js'

master
src48597962 3 months ago
parent 241728deac
commit ed15703815
  1. 11
      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);
}

Loading…
Cancel
Save