Add files via upload

This commit is contained in:
n3rddd 2023-09-15 21:13:15 +08:00 committed by GitHub
parent 8b155c033f
commit 21f17ebed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 587 additions and 155 deletions

View File

@ -45,9 +45,9 @@ let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){

203
JN/EXT/JS/97tvs.js Normal file
View 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/")){
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/")){
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);
`,
}

View File

@ -38,7 +38,7 @@ var rule = {
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[]
TABS.push("夸克盤");
TABS.push("夸克盤");
log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS);
`,
lists:`js:
@ -96,7 +96,7 @@ if (typeof setCk !== "undefined"){
rule_fetch_params.headers.Cookie=cookie;
}
log('aipanso search cookie >>>>>>>>>>>>>>>>>>>>>' + cookie);
log('aipanso search body >>>>>>>>>>>>>>>>>>>>>' + json['body'].substring(4096));
//log('aipanso search body >>>>>>>>>>>>>>>>>>>>>' + json['body'].substring(4096));
new_html = json['body'];
@ -104,22 +104,22 @@ 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 (false && searchObj.quick === true){
if (title.includes(KEY)){
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
})
}
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);
`,

View File

@ -152,7 +152,7 @@ let tabsq=[];
d.forEach(function(it){
let burl = pd(it, 'a&&href', HOST);
if (burl.includes("pan.quark.cn")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.includes("www.aliyundrive.com")){
tabsq.push("阿里雲盤");
}

View File

@ -45,9 +45,9 @@ let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){

View File

@ -58,18 +58,18 @@ var rule = {
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[]
let d = pdfa(html, '#dede_content table tbody tr a');
let d = pdfa(html, '#dede_content table tbody tr');
let tabsa = [];
let tabsq = [];
let tabsm = false;
let tabse = false;
let tabm3u8 = [];
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
let burl = pd(it, 'a&&href',HOST);
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
@ -111,14 +111,14 @@ log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS);
log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = [];
let d = pdfa(html, '#dede_content table tbody tr a');
let d = pdfa(html, '#dede_content table tbody tr');
let lista = [];
let listq = [];
let listm = [];
let liste = [];
let listm3u8 = {};
d.forEach(function(it){
let burl = pdfh(it, 'a&&href');
let burl = pd(it, 'a&&href',HOST);
let title = pdfh(it, 'a&&Text');
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
@ -153,51 +153,12 @@ d.forEach(function(it){
liste.push(loopresult);
}
});
if (false){
d = pdfa(html, 'div:has(>div#post_content) div.widget:has(>h3)');
d.forEach(function(it){
let index = pdfh(it, 'h3&&Text');
let burl = pd(it, 'a&&href', HOST);
let title = pdfh(it, 'a&&Text');
log('xb6v title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('xb6v burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let m3u8_html = request(burl);
let playerUrl = pd(m3u8_html, 'div.video&&iframe&&src', HOST);
log('xb6v playerUrl >>>>>>>>>>>>>>>>>>>>>>>>>>' + playerUrl);
if (!listm3u8.hasOwnProperty(index)){
listm3u8[index] = [];
}
let loopresult = title + '$' + ' ';
if (/(\/player\/|\/share\/)/.test(playerUrl)){
let player_html = request(playerUrl);
let m3u8Url="";
try{
m3u8Url = player_html.match(/'([^']*.m3u8)'/)[1];
}catch(e){
try{
m3u8Url = player_html.match(/"([^"]*.m3u8)"/)[1];
}catch(e){
m3u8Url = "";
}
}
if (m3u8Url !== ""){
m3u8Url = urljoin2(playerUrl, m3u8Url);
log('xb6v m3u8Url >>>>>>>>>>>>>>>>>>>>>>>>>>' + m3u8Url);
loopresult = title + '$' + m3u8Url;
}
}
listm3u8[index].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]);
});
@ -230,7 +191,7 @@ let dlist = pdfa(search_html, 'table.border1');
dlist.forEach(function(it){
let title = pdfh(it, 'img&&alt');
if (searchObj.quick === true){
if (title.includes(KEY)){
if (false && title.includes(KEY)){
title = KEY;
}
}

View File

@ -31,11 +31,11 @@ var rule = {
推荐:'',
一级:'',
二级:`js:
VOD.vod_play_from = "夸克盤";
VOD.vod_play_from = "夸克盤";
VOD.vod_remarks = detailUrl;
VOD.vod_actor = "沒有二級,只有一級鏈接直接推送播放";
VOD.vod_content = MY_URL;
VOD.vod_play_url = "夸克盤$" + detailUrl;
VOD.vod_play_url = "夸克盤$" + detailUrl;
`,
搜索:`js:
let postJson = {

View File

@ -51,9 +51,9 @@ let d = pdfa(html, '#post_content p a');
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
@ -64,9 +64,9 @@ 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("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){

View File

@ -51,9 +51,9 @@ let d = pdfa(html, '#post_content p a');
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
@ -64,9 +64,9 @@ 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("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){

View File

@ -63,7 +63,7 @@ if (false && d.length>1){
TABS.push("選擇右側綫路");
}
d.forEach(function(it) {
TABS.push("夸克盤" + index);
TABS.push("夸克盤" + index);
index = index + 1;
});
log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS);

View File

@ -44,7 +44,7 @@ d.forEach(function(it) {
if (!/(猜你|喜欢|剧情|热播)/.test(name)){
log("libvio tabs name>>>>>>>>>>>>>>>" + name);
if (name.includes("夸克")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (name.includes("阿里")){
tabsq.push("阿里雲盤");
}else{

View File

@ -189,7 +189,7 @@ playGroups.forEach(function (it) {
haveDelay = true;
TABS.push("選擇右側綫路");
}
TABS.push("夸克盤" + groupIndex);
TABS.push("夸克盤" + groupIndex);
}
groupIndex = groupIndex + 1;
}

View File

@ -189,7 +189,7 @@ playGroups.forEach(function (it) {
haveDelay = true;
TABS.push("選擇右側綫路");
}
TABS.push("夸克盤" + groupIndex);
TABS.push("夸克盤" + groupIndex);
}
groupIndex = groupIndex + 1;
}

91
JN/EXT/JS/meow.js Normal file
View File

@ -0,0 +1,91 @@
var rule = {
title:'meow.tg[搜]',
host:'https://meow.tg',
homeUrl:'/',
url:'*',
filter_url:'{{fl.class}}',
filter:{
},
searchUrl: '/api/results/query?page=fypage&perPage=20&keyword=**',
searchable:2,
quickSearch:0,
filterable:0,
headers:{
'User-Agent': PC_UA,
'Accept': '*/*',
'Referer': 'https://meow.tg/',
},
timeout:5000,
class_name:'',
class_url:'',
play_parse:true,
play_json:[{
re:'*',
json:{
parse:0,
jx:0
}
}],
lazy:'',
limit:6,
推荐:'',
一级:'',
二级:`js:
VOD.vod_play_from = "雲盤";
VOD.vod_remarks = detailUrl;
VOD.vod_actor = "沒有二級,只有一級鏈接直接推送播放";
VOD.vod_content = MY_URL;
VOD.vod_play_url = "雲盤$" + detailUrl;
`,
搜索:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let newurl = rule.homeUrl + 'api/results/query?page=' + MY_PAGE+ '&perPage=20&keyword=' + encodeURIComponent(KEY);
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
log("meow search param>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
let new_html=request(newurl, _fetch_params);
let json=JSON.parse(new_html);
let d=[];
for(const it in json.finalList){
if (json.finalList.hasOwnProperty(it)){
//log("meow search it>>>>>>>>>>>>>>>" + JSON.stringify(json.finalList[it]));
let text = json.finalList[it]["results"]["text"];
let high = json.finalList[it]["results"]["highLight"];
if (/(www.aliyundrive.com|pan.quark.cn)/.test(text)){
text = text;
}else if (/(www.aliyundrive.com|pan.quark.cn)/.test(high)){
text = high;
}else{
text = "";
}
if (text.length>0){
let title = "";
if (/.*名称(:|)([^\\n]*)/.test(text)){
title = text.match(/.*名称(:|)([^\\n]*)/)[2].trim();
}
let content = "";
if (/.*描述(:|)([^\\n]*)/.test(text)){
content = text.match(/.*描述(:|)([^\\n]*)/)[2].trim();
}
let desc = json.finalList[it]["source"]["name_zh"];
let img = json.finalList[it]["source"]["avatar"];
let matches = text.match(/(www.aliyundrive.com|pan.quark.cn)([^? \\n]*)/);
let burl = "https://" + matches[1] + matches[2];
if (title.includes(KEY)){
log("meow search title,url,img>>>>>>>>>>>>>>>" + title + ",[" + burl + "], " + img);
if (searchObj.quick === true){
title = KEY;
}
d.push({
title:title,
img:img,
content:content,
desc:desc,
url:'push://'+burl
});
}
}
}
}
setResult(d);
`,
}

View File

@ -45,9 +45,9 @@ let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
@ -156,22 +156,22 @@ let d=[];
let dlist = pdfa(search_html, 'div#list_all li');
dlist.forEach(function(it){
let title = pdfh(it, 'img.lazy&&alt');
if (searchObj.quick === true){
if (title.includes(KEY)){
if (title.includes(KEY)){
if (searchObj.quick === true){
title = KEY;
}
let img = pd(it, 'img.lazy&&src', HOST);
let content = pdfh(it, 'div.text_info h2&&Text');
let desc = pdfh(it, 'p.info&&Text');
let url = pd(it, 'a&&href', HOST);
d.push({
title:title,
img:img,
content:content,
desc:desc,
url:url
})
}
let img = pd(it, 'img.lazy&&src', HOST);
let content = pdfh(it, 'div.text_info h2&&Text');
let desc = pdfh(it, 'p.info&&Text');
let url = pd(it, 'a&&href', HOST);
d.push({
title:title,
img:img,
content:content,
desc:desc,
url:url
})
});
setResult(d);
`,

63
JN/EXT/JS/qimiao.js Normal file
View File

@ -0,0 +1,63 @@
var rule = {
title:'奇妙搜[夸]',
host:'https://www.magicalsearch.top',
homeUrl:'/',
url: '/search?',
filter_url:'{{fl.class}}',
filter:{
},
搜索编码: 'utf-8',
searchUrl: '/api/pshou/getData?type=%E9%98%BF%E9%87%8C%E7%BD%91%E7%9B%98&word=**',
searchable:2,
quickSearch:0,
filterable:0,
headers:{
'User-Agent': PC_UA,
'Accept': '*/*',
'Referer': 'https://www.magicalsearch.top/'
},
timeout:5000,
class_name:'',
class_url:'',
play_parse:true,
play_json:[{
re:'*',
json:{
parse:0,
jx:0
}
}],
lazy:'',
limit:6,
推荐:'',
一级:'',
二级:`js:
VOD.vod_play_from = "網盤";
VOD.vod_remarks = detailUrl;
VOD.vod_actor = "沒有二級,只有一級鏈接直接推送播放";
VOD.vod_content = MY_URL;
VOD.vod_play_url = "播放$" + detailUrl;
`,
搜索:`js:
let new_html=request(input);
//log("qimiao search result>>>>>>>>>>>>>>>" + new_html);
let json=JSON.parse(JSON.parse(new_html));
json = json.result.items;
let d=[];
for(const it in json){
if (json.hasOwnProperty(it)){
log("qimiao search it>>>>>>>>>>>>>>>" + JSON.stringify(json[it]));
if (json[it].title.includes(KEY)){
d.push({
title:json[it].title,
img:'',
content:json[it].content.title,
desc:json[it].insert_time,
url:'push://'+json[it].page_url
});
}
}
}
setResult(d);
`,
}

130
JN/EXT/JS/rrdyw.js Normal file
View File

@ -0,0 +1,130 @@
var rule = {
title: 'RRDY網',
host: 'https://www.rrdynb.com',
homeUrl: '/',
url: '/fyclass_fypage.html?',
filter_url: '{{fl.class}}',
filter: {},
searchUrl: '/plus/search.php?q=**&pagesize=10&submit=',
searchable: 2,
quickSearch: 1,
filterable: 0,
headers: {
'User-Agent': 'PC_UA',
'Cookie': ''
},
timeout: 5000,
class_name: '影视&電視劇&老電影&動漫',
class_url: 'movie/list_2&dianshiju/list_6&zongyi/list_10&dongman/list_13',
play_parse: true,
play_json: [{
re: '*',
json: {
parse: 0,
jx: 0
}
}],
lazy: '',
limit: 6,
推荐: '',
一级: 'li:has(img);img&&alt;img&&data-original;;a&&href',
二级: {
title: "h1&&Text",
img: "img&&src",
desc: "",
content: "span&&Text",
tabs: `js: pdfh = jsp.pdfh;
pdfa = jsp.pdfa;
pd = jsp.pd;
TABS = []
let d = pdfa(html, 'span 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/")) {
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;
});
log('alyps TABS >>>>>>>>>>>>>>>>>>' + TABS);`,
lists: `js: log(TABS);
pdfh = jsp.pdfh;
pdfa = jsp.pdfa;
pd = jsp.pd;
LISTS = [];
let d = pdfa(html, 'span 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('alyps title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('alyps burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
if (burl.startsWith("https://www.aliyundrive.com/s/")) {
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);
}
loopresult = title + '$' + burl;
lista.push(loopresult);
} else if (burl.startsWith("https://pan.quark.cn/s/")) {
if (TABS.length == 1) {
burl = burl.replace("?entry=sjss", ""),
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
} else {
burl = burl.replace("?entry=sjss", ""),
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);
}
});
if (listm.length > 0) {
LISTS.push(listm.reverse());
}
if (liste.length > 0) {
LISTS.push(liste.reverse());
}
lista.forEach(function(it) {
LISTS.push([it]);
});
listq.forEach(function(it) {
LISTS.push([it]);
});`,
},
搜索: 'li:has(img);h2&&Text;img&&data-original;.tags&&Text;a&&href',
}

View File

@ -6,7 +6,7 @@ var rule = {
filter_url:'{{fl.class}}',
filter:{
},
searchUrl: '/?s=**',
searchUrl: '/?s=**&type=post',
searchable:2,
quickSearch:0,
filterable:0,
@ -29,7 +29,6 @@ var rule = {
}],
lazy:'',
limit:6,
// 推荐:'main#main article:has(img);a&&title;img&&data-src;div.entry-wrapper a&&Text;a&&href',
推荐:'*',
一级:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
@ -37,35 +36,31 @@ let d = [];
log("tzfiles input>>>>>>>>>>>>>>"+input);
let html = request(input);
//log("tzfiles 1level html>>>>>>>>>>>>>>"+html);
let list = pdfa(html, 'main#main article:has(img)');
let list = pdfa(html, '#primary-home ul li:has(img)');
list.forEach(function(it) {
d.push({
title: pdfh(it, 'a&&title'),
desc: pdfh(it, 'div.entry-wrapper a&&Text'),
pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&data-src', HOST),
title: pdfh(it, 'img&&alt'),
desc: pdfh(it, 'div.post-info .post-list-cat&&Text'),
pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&src', HOST),
url: pd(it, 'a&&href', HOST)
});
})
setResult(d);
`,
//一级:`js:
//let html=request(input);
//log("html>>>>>>>>>>>>>>>>"+html);
//`,
二级:{
title:"#app .container header h1&&Text",
img:"#main article div.entry-content img&&src",
desc:"#app .container header .meta-date time&&datetime",
content:"#main article .entry-content&&Text",
title:"#primary-home h1&&Text",
img:"#primary-home article div.entry-content img&&src",
desc:"#primary-home .post-meta li.single-date&&Text",
content:"#primary-home article .entry-content&&Text",
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[];
let d = pdfa(html, '#main article div.entry-content p');
let d = pdfa(html, '#primary-home article div.entry-content p');
let tabsq=[];
d.forEach(function(it) {
let purl = pd(it, 'a&&href', HOST);
if (purl.includes("pan.quark.cn")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
} else if (purl.includes("www.aliyundrive.com")){
tabsq.push("阿里雲盤");
}
@ -85,7 +80,7 @@ log('tzfile TABS >>>>>>>>>>>>>>>>>>' + TABS);
log(TABS);
LISTS=[];
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let d = pdfa(html, '#main article div.entry-content p');
let d = pdfa(html, '#primary-home article div.entry-content p');
d.forEach(function(it) {
let purl = pd(it, 'a&&href', HOST);
if (/(pan.quark.cn|www.aliyundrive.com)/.test(purl)){
@ -105,5 +100,31 @@ d.forEach(function(it) {
`,
},
搜索:'main#main div.container article:has(img);a&&title;img&&data-src;div.entry-wrapper a&&Text;a&&href',
搜索:`js:
//'#primary-home ul li:has(img);img&&alt;img&&src;div.post-info .post-list-cat&&Text;a&&href',
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let html = request(input);
let d=[];
let dlist = pdfa(html, '#primary-home ul li:has(img)');
dlist.forEach(function(it){
let title=pdfh(it, 'img&&alt');
if (title.includes(KEY)){
if (searchObj.quick === true){
title = KEY;
}
let img='http://127.0.0.1:10079/i/0/s/' + pd(it, 'img&&src',HOST);
let content=pdfh(it, 'div.text_info h2&&Text');
let url=pd(it, 'a&&href', HOST);
let desc=pdfh(it, 'p.info&&Text');
d.push({
title:title,
img:img,
content:content,
desc:desc,
url:url
})
}
});
setResult(d);
`,
}

View File

@ -27,7 +27,6 @@ var rule = {
}],
lazy:'',
limit:6,
推荐:'',
推荐:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let d = [];
@ -95,9 +94,9 @@ let tabm3u8 = [];
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
@ -181,42 +180,6 @@ d.forEach(function(it){
liste.push(loopresult);
}
});
if (false){
d = pdfa(html, 'div:has(>div#post_content) div.widget:has(>h3)');
d.forEach(function(it){
let index = pdfh(it, 'h3&&Text');
let burl = pd(it, 'a&&href', HOST);
let title = pdfh(it, 'a&&Text');
log('xb6v title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('xb6v burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let m3u8_html = request(burl);
let playerUrl = pd(m3u8_html, 'div.video&&iframe&&src', HOST);
log('xb6v playerUrl >>>>>>>>>>>>>>>>>>>>>>>>>>' + playerUrl);
if (!listm3u8.hasOwnProperty(index)){
listm3u8[index] = [];
}
let loopresult = title + '$' + ' ';
if (/(\\/player\\/|\\/share\\/)/.test(playerUrl)){
let player_html = request(playerUrl);
let m3u8Url="";
try{
m3u8Url = player_html.match(/'([^']*.m3u8)'/)[1];
}catch(e){
try{
m3u8Url = player_html.match(/"([^"]*.m3u8)"/)[1];
}catch(e){
m3u8Url = "";
}
}
if (m3u8Url !== ""){
m3u8Url = urljoin2(playerUrl, m3u8Url);
log('xb6v m3u8Url >>>>>>>>>>>>>>>>>>>>>>>>>>' + m3u8Url);
loopresult = title + '$' + m3u8Url;
}
}
listm3u8[index].push(loopresult);
});
}
if (listm.length>0){
LISTS.push(listm);
}
@ -258,7 +221,7 @@ 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 (searchObj.quick === true){
if (title.includes(KEY)){
if (false && title.includes(KEY)){
title = KEY;
}
}

View File

@ -45,9 +45,9 @@ let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里盤");
tabsa.push("阿里盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克盤");
tabsq.push("夸克盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){