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.
hk/test.js

34 lines
1.1 KiB

2 years ago
js:
let d = [];
let Color = "#f13b66a";
let html = request("https://getpodcast.xyz/");
//log(html)
let class_ids = pdfa(html, "body&&.classify_title");
let classlists = pdfa(html, "body&&.pic_list");
for (let i in class_ids) {
let classname = pdfh(class_ids[i],"body&&Text");
d.push({
2 years ago
title: getMyVar('SrcBoKe$classname', '播客') === classname ? '““””<b><span style="color:' + Color + '">' + classname + '</span></b>' : classname,
2 years ago
url: $('#noLoading#').lazyRule((classname, i) => {
putMyVar('SrcBoKe$classname', classname);
2 years ago
putMyVar('SrcBoKe$classid', i);
2 years ago
refreshPage(false);
return "hiker://empty";
}, classname, i),
col_type: 'scroll_button'
});
}
2 years ago
let lists = pdfa(classlists[Math.floor(getMyVar('SrcBoKe$classid','0'))], "body&&li");
2 years ago
lists.forEach(item => {
d.push({
title: pdfh(item, ".title&&Text"),
url: "hiker://empty##" + pdfh(item, "a&&href"),
2 years ago
pic: pdfh(item, ".pic&&img&&src"),
2 years ago
col_type: 'card_pic_2'
});
})
2 years ago
2 years ago
setResult(d);