Add files via upload

This commit is contained in:
alantang 2023-08-21 14:05:17 +08:00 committed by GitHub
parent f6a787df3b
commit 206bb3fd0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 242 additions and 84 deletions

View file

@ -37,52 +37,83 @@ var rule = {
tabs:`js: tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[] TABS=[]
let d = pdfa(html, 'table.t_table'); let d = pdfa(html, 'table.t_table a');
let aliIndex=1; let tabsa = [];
let tabsq = [];
let tabsm = false;
let tabse = false;
d.forEach(function(it) { d.forEach(function(it) {
let burl = pdfh(it, 'a&&href'); let burl = pdfh(it, 'a&&href');
log("burl >>>>>>" + burl);
if (burl.startsWith("https://www.aliyundrive.com/s/")){ if (burl.startsWith("https://www.aliyundrive.com/s/")){
TABS.push("aliyun"+aliIndex); tabsa.push("阿里云盤");
aliIndex = aliIndex + 1; }else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
} }
}); });
d = pdfa(html, 'table.t_table a[href^="magnet"]'); let tmpIndex;
if (d.length>0){ tmpIndex=1;
tabsa.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
tmpIndex=1;
tabsq.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
if (tabsm === true){
TABS.push("磁力"); TABS.push("磁力");
} }
if (tabse === true){
TABS.push("電驢");
}
log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS); log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS);
`, `,
lists:`js: lists:`js:
log(TABS); log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = []; LISTS = [];
let d = pdfa(html, 'table.t_table'); let d = pdfa(html, 'table.t_table a');
let lista = [];
let listq = [];
let listm = [];
let liste = [];
d.forEach(function(it){ d.forEach(function(it){
let burl = pdfh(it, 'a&&href'); let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
let title = pdfh(it, 'a&&Text'); let title = pdfh(it, 'a&&Text');
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl); log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl; let loopresult = title + '$' + burl;
LISTS.push([loopresult]); if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult);
}else if (burl.startsWith("ed2k")){
liste.push(loopresult);
} }
}); });
let listm = []; lista.forEach(function(it){
d.forEach(function(it){ LISTS.push([it]);
let burl = pdfh(it, 'a&&href'); });
if (burl.startsWith("magnet")){ listq.forEach(function(it){
let title = pdfh(it, 'a&&Text'); LISTS.push([it]);
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
listm.push(loopresult);
}
}); });
if (listm.length>0){ if (listm.length>0){
LISTS.push(listm); LISTS.push(listm);
} }
if (liste.length>0){
LISTS.push(liste);
}
`, `,
}, },

View file

@ -33,8 +33,7 @@ var rule = {
d.push({ d.push({
title: pdfh(it, 'h2&&Text'), title: pdfh(it, 'h2&&Text'),
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'), desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
pic_url: pd(it, '.card-img&&style'), pic_url: pd(it, '.card-img&&style')
url: pd(it, 'a&&href')
}); });
}) })
setResult(d); setResult(d);
@ -52,8 +51,7 @@ var rule = {
d.push({ d.push({
title: pdfh(it, 'h2&&Text'), title: pdfh(it, 'h2&&Text'),
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'), desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
pic_url: pdfh(it, '.card-img&&style'), pic_url: pdfh(it, '.card-img&&style')
url: ''
}); });
}) })
setResult(d); setResult(d);

View file

@ -39,12 +39,38 @@ var rule = {
tabs:`js: tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[] TABS=[]
var d = pdfa(html, '#dede_content table tbody tr a[href^="magnet"]'); let d = pdfa(html, '#dede_content table tbody tr a');
if (d.length>0){ let tabsa = [];
let tabsq = [];
let tabsm = false;
let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里云盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
let tmpIndex;
tmpIndex=1;
tabsa.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
tmpIndex=1;
tabsq.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
if (tabsm === true){
TABS.push("磁力"); TABS.push("磁力");
} }
d = pdfa(html, '#dede_content table tbody tr a[href^="ed2k"]'); if (tabse === true){
if (d.length>0){
TABS.push("電驢"); TABS.push("電驢");
} }
log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS); log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS);
@ -53,7 +79,9 @@ log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS);
log(TABS); log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = []; LISTS = [];
var d = pdfa(html, '#dede_content table tbody tr'); let d = pdfa(html, '#dede_content table tbody tr a');
let lista = [];
let listq = [];
let listm = []; let listm = [];
let liste = []; let liste = [];
d.forEach(function(it){ d.forEach(function(it){
@ -62,12 +90,26 @@ d.forEach(function(it){
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl; let loopresult = title + '$' + burl;
if (burl.startsWith("magnet")){ if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult); listm.push(loopresult);
}else if (burl.startsWith("ed2k")){ }else if (burl.startsWith("ed2k")){
liste.push(loopresult); liste.push(loopresult);
} }
}); });
lista.forEach(function(it){
LISTS.push([it]);
});
listq.forEach(function(it){
LISTS.push([it]);
});
if (listm.length>0){ if (listm.length>0){
LISTS.push(listm); LISTS.push(listm);
} }

View file

@ -41,23 +41,52 @@ var rule = {
tabs:`js: tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[] TABS=[]
let d = pdfa(html, '.movie-introduce p a[href^="magnet"]'); let tabsa = [];
if (d.length > 0){ let tabsq = [];
TABS.push("磁力"); let tabsm = false;
}else{ let tabse = false;
d = pdfa(html, 'div#down p.down-list3 a[href^="magnet"]'); let d = pdfa(html, '.movie-introduce p a');
if (d.length > 0){ d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里云盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
d = pdfa(html, 'div#down p.down-list3 a');
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里云盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
let tmpIndex;
tmpIndex=1;
tabsa.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
tmpIndex=1;
tabsq.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
if (tabsm === true){
TABS.push("磁力"); TABS.push("磁力");
} }
} if (tabse === true){
d = pdfa(html, '.movie-introduce p a[href^="ed2k"]');
if (d.length > 0){
TABS.push("電驢"); TABS.push("電驢");
}else{
d = pdfa(html, 'div#down p.down-list3 a[href^="ed2k');
if (d.length > 0){
TABS.push("電驢");
}
} }
log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS); log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS);
`, `,
@ -65,42 +94,58 @@ log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS);
log(TABS); log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = []; LISTS = [];
let lista = [];
let listq = [];
let listm = []; let listm = [];
let liste = []; let liste = [];
let d = pdfa(html, '.movie-introduce p'); let d = pdfa(html, '.movie-introduce p');
d.forEach(function(it){ d.forEach(function(it){
let burl = pdfh(it, 'a[href^="magnet"]&&href'); let burl = pdfh(it, 'a&&href');
let title = pdfh(it, 'a[href^="magnet"]&&Text'); let title = pdfh(it, 'a&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl; let loopresult = title + '$' + burl;
listm.push(loopresult); if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
burl = pdfh(it, 'a[href^="ed2k"]&&href');
title = pdfh(it, 'a[href^="ed2k"]&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
loopresult = title + '$' + burl; loopresult = title + '$' + burl;
liste.push(loopresult); lista.push(loopresult);
}); }else if (burl.startsWith("https://pan.quark.cn/s/")){
if (listm.length<=0){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
d = pdfa(html, 'div#down p.down-list3');
d.forEach(function(it){
let burl = pdfh(it, 'a[href^="magnet"]&&href');
let title = pdfh(it, 'a[href^="magnet"]&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
listm.push(loopresult);
burl = pdfh(it, 'a[href^="ed2k"]&&href');
title = pdfh(it, 'a[href^="ed2k"]&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
loopresult = title + '$' + burl; loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult);
}else if (burl.startsWith("ed2k")){
liste.push(loopresult); liste.push(loopresult);
});
} }
});
d = pdfa(html, 'div#down p.down-list3 a');
d.forEach(function(it){
let burl = pdfh(it, 'a&&href');
let title = pdfh(it, 'a&&Text');
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult);
}else if (burl.startsWith("ed2k")){
liste.push(loopresult);
}
});
lista.forEach(function(it){
LISTS.push([it]);
});
listq.forEach(function(it){
LISTS.push([it]);
});
if (listm.length>0){ if (listm.length>0){
LISTS.push(listm); LISTS.push(listm);
} }

View file

@ -37,12 +37,38 @@ var rule = {
tabs:`js: tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[] TABS=[]
let d = pdfa(html, 'ul.down-list&&li a[href^="magnet"]'); let d = pdfa(html, 'ul.down-list&&li a');
if (d.length > 0){ let tabsa = [];
let tabsq = [];
let tabsm = false;
let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里云盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
let tmpIndex;
tmpIndex=1;
tabsa.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
tmpIndex=1;
tabsq.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
if (tabsm === true){
TABS.push("磁力"); TABS.push("磁力");
} }
d = pdfa(html, 'ul.down-list&&li a[href^="ed2k"]'); if (tabse === true){
if (d.length > 0){
TABS.push("電驢"); TABS.push("電驢");
} }
log('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS); log('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS);
@ -51,21 +77,37 @@ log('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS);
log(TABS); log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = []; LISTS = [];
let d = pdfa(html, 'ul.down-list&&li'); let d = pdfa(html, 'ul.down-list&&li a');
let lista = [];
let listq = [];
let listm = []; let listm = [];
let liste = []; let liste = [];
d.forEach(function(it){ d.forEach(function(it){
let burl = pdfh(it, 'a&&href'); let burl = pdfh(it, 'a&&href');
let title = pdfh(it, 'a&&Text'); let title = pdfh(it, 'a&&Text');
log('mp4us title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('mp4us burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl; let loopresult = title + '$' + burl;
if (burl.startsWith("magnet")){ if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult); listm.push(loopresult);
}else if (burl.startsWith("ed2k")){ }else if (burl.startsWith("ed2k")){
liste.push(loopresult); liste.push(loopresult);
} }
}); });
lista.forEach(function(it){
LISTS.push([it]);
});
listq.forEach(function(it){
LISTS.push([it]);
});
if (listm.length>0){ if (listm.length>0){
LISTS.push(listm.reverse()); LISTS.push(listm.reverse());
} }