上传文件至 js
This commit is contained in:
parent
61ed201a36
commit
39d56e7dba
5 changed files with 586 additions and 0 deletions
186
js/4khdr.js
Normal file
186
js/4khdr.js
Normal file
|
@ -0,0 +1,186 @@
|
||||||
|
var rule = {
|
||||||
|
title:'4KHDR[磁]',
|
||||||
|
host:'https://www.4khdr.cn',
|
||||||
|
homeUrl: "/forum.php?mod=forumdisplay&fid=2&page=1",
|
||||||
|
url: '/forum.php?mod=forumdisplay&fid=2&filter=typeid&typeid=fyclass&page=fypage',
|
||||||
|
filter_url:'{{fl.class}}',
|
||||||
|
filter:{
|
||||||
|
},
|
||||||
|
searchUrl: '/search.php#searchsubmit=yes&srchtxt=**;post',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:1,
|
||||||
|
filterable:0,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': 'PC_UA',
|
||||||
|
'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/4khdr.txt',
|
||||||
|
},
|
||||||
|
timeout:5000,
|
||||||
|
class_name: "4K电影&4K美剧&4K华语&4K动画&4K纪录片&4K日韩印&蓝光电影&蓝光美剧&蓝光华语&蓝光动画&蓝光日韩印",
|
||||||
|
class_url:"3&8&15&6&11&4&29&31&33&32&34",
|
||||||
|
play_parse:true,
|
||||||
|
play_json:[{
|
||||||
|
re:'*',
|
||||||
|
json:{
|
||||||
|
parse:0,
|
||||||
|
jx:0
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
lazy:'',
|
||||||
|
limit:6,
|
||||||
|
推荐:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
|
||||||
|
一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
|
||||||
|
二级:{
|
||||||
|
title:"#thead_subject&&Text",
|
||||||
|
img:"img.zoom&&src",
|
||||||
|
desc:'td[id^="postmessage_"] font&&Text',
|
||||||
|
content:'td[id^="postmessage_"] font&&Text',
|
||||||
|
tabs:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
TABS=[]
|
||||||
|
let d = pdfa(html, 'div.pcb table.t_table a');
|
||||||
|
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/") || burl.startsWith("https://www.alipan.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;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (tabsm === true){
|
||||||
|
TABS.push("磁力");
|
||||||
|
}
|
||||||
|
if (tabse === true){
|
||||||
|
TABS.push("電驢");
|
||||||
|
}
|
||||||
|
if (false && tabsa.length + tabsq.length > 1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
});
|
||||||
|
log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||||
|
`,
|
||||||
|
lists:`js:
|
||||||
|
log(TABS);
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
LISTS = [];
|
||||||
|
let d = pdfa(html, 'div.pcb table.t_table a');
|
||||||
|
let lista = [];
|
||||||
|
let listq = [];
|
||||||
|
let listm = [];
|
||||||
|
let liste = [];
|
||||||
|
d.forEach(function(it){
|
||||||
|
let burl = pdfh(it, 'a&&href');
|
||||||
|
let title = pdfh(it, 'a&&Text');
|
||||||
|
log('4khdr title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
|
log('4khdr burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
|
let loopresult = title + '$' + burl;
|
||||||
|
if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.com/s/")){
|
||||||
|
if (true){
|
||||||
|
if (TABS.length==1){
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
|
}else{
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
burl = 'push://' + burl;
|
||||||
|
}
|
||||||
|
loopresult = title + '$' + burl;
|
||||||
|
lista.push(loopresult);
|
||||||
|
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||||
|
if (true){
|
||||||
|
if (TABS.length==1){
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
|
}else{
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
burl = 'push://' + burl;
|
||||||
|
}
|
||||||
|
loopresult = title + '$' + burl;
|
||||||
|
listq.push(loopresult);
|
||||||
|
}else if (burl.startsWith("magnet")){
|
||||||
|
listm.push(loopresult);
|
||||||
|
}else if (burl.startsWith("ed2k")){
|
||||||
|
liste.push(loopresult);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (listm.length>0){
|
||||||
|
LISTS.push(listm);
|
||||||
|
}
|
||||||
|
if (liste.length>0){
|
||||||
|
LISTS.push(liste);
|
||||||
|
}
|
||||||
|
if (false && lista.length + listq.length > 1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
|
lista.forEach(function(it){
|
||||||
|
LISTS.push([it]);
|
||||||
|
});
|
||||||
|
listq.forEach(function(it){
|
||||||
|
LISTS.push([it]);
|
||||||
|
});
|
||||||
|
`,
|
||||||
|
|
||||||
|
},
|
||||||
|
搜索:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||||
|
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
||||||
|
let cookie = rule_fetch_params.headers.Cookie;
|
||||||
|
setItem(RULE_CK, cookie);
|
||||||
|
};
|
||||||
|
log('4khdr search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||||
|
let new_host= HOST + '/search.php';
|
||||||
|
let new_html=request(new_host);
|
||||||
|
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
|
||||||
|
log("4khdr formhash>>>>>>>>>>>>>>>" + formhash);
|
||||||
|
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + encodeURIComponent(KEY);
|
||||||
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
|
let postData = {
|
||||||
|
body: params
|
||||||
|
};
|
||||||
|
Object.assign(_fetch_params, postData);
|
||||||
|
log("4khdr search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||||
|
let search_html = post( HOST + '/search.php?mod=forum', _fetch_params)
|
||||||
|
//log("4khdr search result>>>>>>>>>>>>>>>" + search_html);
|
||||||
|
let d=[];
|
||||||
|
let dlist = pdfa(search_html, 'div#threadlist ul li');
|
||||||
|
dlist.forEach(function(it){
|
||||||
|
let title = pdfh(it, 'h3&&Text');
|
||||||
|
if (searchObj.quick === true){
|
||||||
|
if (title.includes(KEY)){
|
||||||
|
title = KEY;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let img = "";
|
||||||
|
let content = pdfh(it, 'p:eq(2)&&Text');
|
||||||
|
let desc = pdfh(it, 'p:eq(3)&&Text');
|
||||||
|
let url = pd(it, 'a&&href', HOST);
|
||||||
|
d.push({
|
||||||
|
title:title,
|
||||||
|
img:img,
|
||||||
|
content:content,
|
||||||
|
desc:desc,
|
||||||
|
url:url
|
||||||
|
})
|
||||||
|
});
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
}
|
203
js/97tvs.js
Normal file
203
js/97tvs.js
Normal file
|
@ -0,0 +1,203 @@
|
||||||
|
var rule = {
|
||||||
|
title:'高清MP4吧',
|
||||||
|
host:'https://www.97tvs.com',
|
||||||
|
homeUrl: '/',
|
||||||
|
url: '/fyclass/page/fypage?',
|
||||||
|
filter_url:'{{fl.class}}',
|
||||||
|
filter:{
|
||||||
|
},
|
||||||
|
searchUrl: '/?s=**',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:0,
|
||||||
|
filterable:0,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': 'PC_UA',
|
||||||
|
'Cookie':'',
|
||||||
|
'Referer': 'http://www.97tvs.com/'
|
||||||
|
},
|
||||||
|
图片来源:'@Headers={"Accept":"*/*","Referer":"https://www.97tvs.com/","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36"}',
|
||||||
|
timeout:5000,
|
||||||
|
class_name: "动作片&科幻片&爱情片&喜剧片&剧情片&惊悚片&战争片&灾难片&罪案片&动画片&综艺&电视剧",
|
||||||
|
class_url: "action&science&love&comedy&story&thriller&war&disaster&crime&cartoon&variety&sitcoms",
|
||||||
|
play_parse:true,
|
||||||
|
play_json:[{
|
||||||
|
re:'*',
|
||||||
|
json:{
|
||||||
|
parse:0,
|
||||||
|
jx:0
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
lazy:'',
|
||||||
|
limit:6,
|
||||||
|
推荐:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
let d = [];
|
||||||
|
let html = request(input);
|
||||||
|
let list = pdfa(html, 'div.mainleft ul#post_container li');
|
||||||
|
list.forEach(it => {
|
||||||
|
d.push({
|
||||||
|
title: pdfh(it, 'div.thumbnail img&&alt'),
|
||||||
|
desc: pdfh(it, 'div.info&&span.info_date&&Text') + ' / ' + pdfh(it, 'div.info&&span.info_category&&Text'),
|
||||||
|
pic_url: pd(it, 'div.thumbnail img&&src', HOST),
|
||||||
|
url: pd(it, 'div.thumbnail&&a&&href',HOST)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
一级:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
let d = [];
|
||||||
|
let html = request(input);
|
||||||
|
let list = pdfa(html, 'div.mainleft ul#post_container li');
|
||||||
|
list.forEach(it => {
|
||||||
|
d.push({
|
||||||
|
title: pdfh(it, 'div.thumbnail img&&alt'),
|
||||||
|
desc: pdfh(it, 'div.info&&span.info_date&&Text') + ' / ' + pdfh(it, 'div.info&&span.info_category&&Text'),
|
||||||
|
pic_url: pd(it, 'div.thumbnail img&&src', HOST),
|
||||||
|
url: pd(it, 'div.thumbnail&&a&&href',HOST)
|
||||||
|
});
|
||||||
|
})
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
二级:{
|
||||||
|
title:"div.article_container h1&&Text",
|
||||||
|
img:"div#post_content img&&src",
|
||||||
|
desc:"div#post_content&&Text",
|
||||||
|
content:"div#post_content&&Text",
|
||||||
|
tabs:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
TABS=[]
|
||||||
|
let d = pdfa(html, 'div#post_content p');
|
||||||
|
let tabsa = [];
|
||||||
|
let tabsq = [];
|
||||||
|
let tabsm = false;
|
||||||
|
let tabse = false;
|
||||||
|
let tabm3u8 = [];
|
||||||
|
d.forEach(function(it) {
|
||||||
|
let burl = pdfh(it, 'a&&href');
|
||||||
|
if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.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;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (tabsm === true){
|
||||||
|
TABS.push("磁力");
|
||||||
|
}
|
||||||
|
if (tabse === true){
|
||||||
|
TABS.push("電驢");
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
});
|
||||||
|
tabm3u8.forEach(function(it){
|
||||||
|
TABS.push(it);
|
||||||
|
});
|
||||||
|
log('97tvs TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||||
|
`,
|
||||||
|
lists:`js:
|
||||||
|
log(TABS);
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
LISTS = [];
|
||||||
|
let d = pdfa(html, 'div#post_content p');
|
||||||
|
let lista = [];
|
||||||
|
let listq = [];
|
||||||
|
let listm = [];
|
||||||
|
let liste = [];
|
||||||
|
let listm3u8 = {};
|
||||||
|
d.forEach(function(it){
|
||||||
|
let burl = pdfh(it, 'a&&href');
|
||||||
|
let title = pdfh(it, 'a&&Text');
|
||||||
|
log('97tvs title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
|
log('97tvs burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
|
let loopresult = title + '$' + burl;
|
||||||
|
if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.com/s/")){
|
||||||
|
if (true){
|
||||||
|
if (TABS.length==1){
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
|
}else{
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
burl = "push://" + burl;
|
||||||
|
}
|
||||||
|
loopresult = title + '$' + burl;
|
||||||
|
lista.push(loopresult);
|
||||||
|
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||||
|
if (true){
|
||||||
|
if (TABS.length==1){
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
|
}else{
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
burl = "push://" + burl;
|
||||||
|
}
|
||||||
|
loopresult = title + '$' + burl;
|
||||||
|
listq.push(loopresult);
|
||||||
|
}else if (burl.startsWith("magnet")){
|
||||||
|
listm.push(loopresult);
|
||||||
|
}else if (burl.startsWith("ed2k")){
|
||||||
|
liste.push(loopresult);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (listm.length>0){
|
||||||
|
LISTS.push(listm);
|
||||||
|
}
|
||||||
|
if (liste.length>0){
|
||||||
|
LISTS.push(liste);
|
||||||
|
}
|
||||||
|
lista.forEach(function(it){
|
||||||
|
LISTS.push([it]);
|
||||||
|
});
|
||||||
|
listq.forEach(function(it){
|
||||||
|
LISTS.push([it]);
|
||||||
|
});
|
||||||
|
for ( const key in listm3u8 ){
|
||||||
|
if (listm3u8.hasOwnProperty(key)){
|
||||||
|
LISTS.push(listm3u8[key]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
`,
|
||||||
|
|
||||||
|
},
|
||||||
|
搜索:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
let search_html = request(input)
|
||||||
|
//log("97tvs search result>>>>>>>>>>>>>>>" + search_html);
|
||||||
|
let d=[];
|
||||||
|
let dlist = pdfa(search_html, 'div.mainleft ul#post_container li');
|
||||||
|
dlist.forEach(function(it){
|
||||||
|
let title = pdfh(it, 'div.thumbnail img&&alt').replace( /(<([^>]+)>)/ig, '');
|
||||||
|
if (title.includes(KEY)){
|
||||||
|
if (searchObj.quick === true){
|
||||||
|
title = KEY;
|
||||||
|
}
|
||||||
|
let img = pd(it, 'div.thumbnail img&&src', HOST);
|
||||||
|
let content = pdfh(it, 'div.article div.entry_post&&Text');
|
||||||
|
let desc = pdfh(it, 'div.info&&span.info_date&&Text');
|
||||||
|
let url = pd(it, 'div.thumbnail&&a&&href', HOST);
|
||||||
|
d.push({
|
||||||
|
title:title,
|
||||||
|
img:img,
|
||||||
|
content:content,
|
||||||
|
desc:desc,
|
||||||
|
url:url
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
}
|
126
js/aipanso.js
Normal file
126
js/aipanso.js
Normal file
|
@ -0,0 +1,126 @@
|
||||||
|
var rule = {
|
||||||
|
title:'爱盘搜[夸]',
|
||||||
|
host:'https://aipanso.com',
|
||||||
|
homeUrl:'/',
|
||||||
|
url: '/forum-fyclass-fypage.html?',
|
||||||
|
filter_url:'{{fl.class}}',
|
||||||
|
filter:{
|
||||||
|
},
|
||||||
|
searchUrl: '/search?page=fypage&s=1&t=-1&k=**',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:0,
|
||||||
|
filterable:0,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': PC_UA,
|
||||||
|
'Accept': '*/*',
|
||||||
|
'Referer': 'https://aipanso.com/'
|
||||||
|
},
|
||||||
|
timeout:5000,
|
||||||
|
class_name:'',
|
||||||
|
class_url:'',
|
||||||
|
play_parse:true,
|
||||||
|
play_json:[{
|
||||||
|
re:'*',
|
||||||
|
json:{
|
||||||
|
parse:0,
|
||||||
|
jx:0
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
lazy:'',
|
||||||
|
limit:6,
|
||||||
|
推荐:'',
|
||||||
|
一级:'',
|
||||||
|
二级:{
|
||||||
|
title:"van-row h3&&Text",
|
||||||
|
img:"",
|
||||||
|
desc:"van-row h3&&Text",
|
||||||
|
content:"van-row h3&&Text",
|
||||||
|
tabs:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
TABS=[]
|
||||||
|
TABS.push("夸克網盤");
|
||||||
|
log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||||
|
`,
|
||||||
|
lists:`js:
|
||||||
|
log(TABS);
|
||||||
|
LISTS=[];
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
let requestHeaders = {
|
||||||
|
withHeaders: true,
|
||||||
|
redirect: 0,
|
||||||
|
headers:{
|
||||||
|
Referer: MY_URL
|
||||||
|
}
|
||||||
|
};
|
||||||
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
|
Object.assign(_fetch_params, requestHeaders);
|
||||||
|
let new_html = request ( MY_URL.replace("/s/","/cv/"), _fetch_params);
|
||||||
|
let json=JSON.parse(new_html);
|
||||||
|
let redirectUrl = "";
|
||||||
|
if (json.hasOwnProperty("Location")){
|
||||||
|
redirectUrl = json["Location"];
|
||||||
|
}else if (json.hasOwnProperty("location")){
|
||||||
|
redirectUrl = json["location"];
|
||||||
|
}
|
||||||
|
let title = pdfh(html, 'van-row h3&&Text');
|
||||||
|
LISTS.push([title + '$' + 'push://' + redirectUrl]);
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
搜索:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
|
||||||
|
log("aipanso enter search >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + KEY);
|
||||||
|
let withHeaders = {
|
||||||
|
withHeaders: true
|
||||||
|
};
|
||||||
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
|
Object.assign(_fetch_params, withHeaders);
|
||||||
|
|
||||||
|
log('aipanso search params >>>>>>>>>>>>>>>>>>>>>' + JSON.stringify(_fetch_params));
|
||||||
|
let new_html=request(rule.homeUrl + 'search?page=' + MY_PAGE + '&s=1&t=-1&k=' + encodeURIComponent(KEY) , _fetch_params);
|
||||||
|
//log('aipanso search new_html >>>>>>>>>>>>>>>>>>>>>' + new_html);
|
||||||
|
let json=JSON.parse(new_html);
|
||||||
|
let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
|
||||||
|
let cookie="";
|
||||||
|
if (typeof setCk !== "undefined"){
|
||||||
|
let d=[];
|
||||||
|
for(const key in json[setCk]){
|
||||||
|
if (typeof json[setCk][key] === "string"){
|
||||||
|
log("aipanso header setCk key>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + json[setCk][key] + " " + (typeof json[setCk][key]));
|
||||||
|
d.push(json[setCk][key].split(";")[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cookie=d.join(";");
|
||||||
|
setItem(RULE_CK, cookie);
|
||||||
|
fetch_params.headers.Cookie=cookie;
|
||||||
|
rule_fetch_params.headers.Cookie=cookie;
|
||||||
|
}
|
||||||
|
log('aipanso search cookie >>>>>>>>>>>>>>>>>>>>>' + cookie);
|
||||||
|
//log('aipanso search body >>>>>>>>>>>>>>>>>>>>>' + json['body'].substring(4096));
|
||||||
|
|
||||||
|
new_html = json['body'];
|
||||||
|
|
||||||
|
let d=[];
|
||||||
|
let dlist = pdfa(new_html, 'van-row:has(>a[href^="/s/"])');
|
||||||
|
dlist.forEach(function(it){
|
||||||
|
let title = pdfh(it, 'van-card template&&Text');
|
||||||
|
if (title.includes(KEY)){
|
||||||
|
if (searchObj.quick === true){
|
||||||
|
title = KEY;
|
||||||
|
}
|
||||||
|
let img = pd(it, 'van-card&&thumb', HOST);
|
||||||
|
let content = pdfh(it, 'van-card template:eq(1)&&Text');
|
||||||
|
let desc = pdfh(it, 'van-card template:eq(1)&&Text');
|
||||||
|
let url = pd(it, 'a&&href', HOST);
|
||||||
|
d.push({
|
||||||
|
title:title,
|
||||||
|
img:img,
|
||||||
|
content:content,
|
||||||
|
desc:desc,
|
||||||
|
url:url
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
}
|
10
js/alistjar.json
Normal file
10
js/alistjar.json
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"drives": [
|
||||||
|
{
|
||||||
|
"name": "alist.jar",
|
||||||
|
"search": true,
|
||||||
|
"searchable": true,
|
||||||
|
"server": "http://192.168.101.13:5244"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
61
js/cilixiong.js
Normal file
61
js/cilixiong.js
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
var rule = {
|
||||||
|
title:'磁力熊[磁]',
|
||||||
|
host:'https://www.cilixiong.com',
|
||||||
|
homeUrl:'/',
|
||||||
|
url: '/fyclassfyfilter-(fypage-1).html',
|
||||||
|
//host:'http://127.0.0.1:10079',
|
||||||
|
//homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.cilixiong.com',
|
||||||
|
//url:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.cilixiong.com/fyclassfyfilter-(fypage-1).html',
|
||||||
|
filter_url:'-{{fl.class or "0"}}-{{fl.area or "0"}}',
|
||||||
|
filter:{
|
||||||
|
"1":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}],
|
||||||
|
"2":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}]
|
||||||
|
},
|
||||||
|
searchUrl: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.cilixiong.com/e/search/index.php#classid=1,2&show=title&tempid=1&keyboard=**;post',
|
||||||
|
searchable:0,
|
||||||
|
quickSearch:0,
|
||||||
|
filterable:1,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': 'MOBILE_UA'
|
||||||
|
},
|
||||||
|
timeout:5000,
|
||||||
|
class_name:'电影&剧集&豆瓣电影Top250&IMDB Top250&高分悬疑片&高分喜剧片&高分传记片&高分爱情片&高分犯罪片&高分恐怖片&高分冒险片&高分武侠片&高分奇幻片&高分历史片&高分战争片&高分歌舞片&高分灾难片&高分情色片&高分西部片&高分音乐片&高分科幻片&高分动作片&高分动画片&高分纪录片&冷门佳片',
|
||||||
|
class_url:'1&2&/top250/&/s/imdbtop250/&/s/suspense/&/s/comedy/&/s/biopic/&/s/romance/&/s/crime/&/s/horror/&/s/adventure/&/s/martial/&/s/fantasy/&/s/history/&/s/war/&/s/musical/&/s/disaster/&/s/erotic/&/s/west/&/s/music/&/s/sci-fi/&/s/action/&/s/animation/&/s/documentary/&/s/unpopular/',
|
||||||
|
play_parse:false,
|
||||||
|
lazy:'',
|
||||||
|
limit:6,
|
||||||
|
推荐: `js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
var d = [];
|
||||||
|
var html = request(input);
|
||||||
|
var list = pdfa(html, 'body&&.col');
|
||||||
|
list.forEach(it => {
|
||||||
|
d.push({
|
||||||
|
title: pdfh(it, 'h2&&Text'),
|
||||||
|
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
|
||||||
|
pic_url: pd(it, '.card-img&&style')
|
||||||
|
});
|
||||||
|
})
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
一级: `js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
var d = [];
|
||||||
|
if (MY_CATE !== '1' && MY_CATE !== '2') {
|
||||||
|
let turl = (MY_PAGE === 1)? 'index' : 'index_'+ MY_PAGE;
|
||||||
|
input = rule.homeUrl + MY_CATE + turl + '.html';
|
||||||
|
}
|
||||||
|
var html = request(input);
|
||||||
|
var list = pdfa(html, 'body&&.col');
|
||||||
|
list.forEach(it => {
|
||||||
|
d.push({
|
||||||
|
title: pdfh(it, 'h2&&Text'),
|
||||||
|
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
|
||||||
|
pic_url: pdfh(it, '.card-img&&style')
|
||||||
|
});
|
||||||
|
})
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
二级:'',
|
||||||
|
搜索:'',
|
||||||
|
}
|
Loading…
Reference in a new issue