From 21f17ebed75ead679171b675e007130ff28500c7 Mon Sep 17 00:00:00 2001 From: n3rddd <119649988+n3rddd@users.noreply.github.com> Date: Fri, 15 Sep 2023 21:13:15 +0800 Subject: [PATCH] Add files via upload --- JN/EXT/JS/4khdr.js | 4 +- JN/EXT/JS/97tvs.js | 203 ++++++++++++++++++++++++++++++++++++++++++ JN/EXT/JS/aipanso.js | 30 +++---- JN/EXT/JS/ddyspg.js | 2 +- JN/EXT/JS/dydhhy.js | 4 +- JN/EXT/JS/dygang.js | 53 ++--------- JN/EXT/JS/funletu.js | 4 +- JN/EXT/JS/jiyingw.js | 8 +- JN/EXT/JS/jiyingwp.js | 8 +- JN/EXT/JS/kkpans.js | 2 +- JN/EXT/JS/libvio.js | 2 +- JN/EXT/JS/meijumi.js | 2 +- JN/EXT/JS/meijumip.js | 2 +- JN/EXT/JS/meow.js | 91 +++++++++++++++++++ JN/EXT/JS/mp4us.js | 30 +++---- JN/EXT/JS/qimiao.js | 63 +++++++++++++ JN/EXT/JS/rrdyw.js | 130 +++++++++++++++++++++++++++ JN/EXT/JS/tzfile.js | 57 ++++++++---- JN/EXT/JS/xb6v.js | 43 +-------- JN/EXT/JS/xzys.js | 4 +- 20 files changed, 587 insertions(+), 155 deletions(-) create mode 100644 JN/EXT/JS/97tvs.js create mode 100644 JN/EXT/JS/meow.js create mode 100644 JN/EXT/JS/qimiao.js create mode 100644 JN/EXT/JS/rrdyw.js diff --git a/JN/EXT/JS/4khdr.js b/JN/EXT/JS/4khdr.js index 32a58470..832fc975 100644 --- a/JN/EXT/JS/4khdr.js +++ b/JN/EXT/JS/4khdr.js @@ -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")){ diff --git a/JN/EXT/JS/97tvs.js b/JN/EXT/JS/97tvs.js new file mode 100644 index 00000000..4a4da154 --- /dev/null +++ b/JN/EXT/JS/97tvs.js @@ -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); +`, +} diff --git a/JN/EXT/JS/aipanso.js b/JN/EXT/JS/aipanso.js index 79801fce..932cb8d0 100644 --- a/JN/EXT/JS/aipanso.js +++ b/JN/EXT/JS/aipanso.js @@ -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); `, diff --git a/JN/EXT/JS/ddyspg.js b/JN/EXT/JS/ddyspg.js index d4ef5cd1..120f2c33 100644 --- a/JN/EXT/JS/ddyspg.js +++ b/JN/EXT/JS/ddyspg.js @@ -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("阿里雲盤"); } diff --git a/JN/EXT/JS/dydhhy.js b/JN/EXT/JS/dydhhy.js index 08f520a9..59ae181d 100644 --- a/JN/EXT/JS/dydhhy.js +++ b/JN/EXT/JS/dydhhy.js @@ -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")){ diff --git a/JN/EXT/JS/dygang.js b/JN/EXT/JS/dygang.js index 654b2f17..fe342f20 100644 --- a/JN/EXT/JS/dygang.js +++ b/JN/EXT/JS/dygang.js @@ -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; } } diff --git a/JN/EXT/JS/funletu.js b/JN/EXT/JS/funletu.js index f304d891..1772133e 100644 --- a/JN/EXT/JS/funletu.js +++ b/JN/EXT/JS/funletu.js @@ -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 = { diff --git a/JN/EXT/JS/jiyingw.js b/JN/EXT/JS/jiyingw.js index 74c0b598..237f0150 100644 --- a/JN/EXT/JS/jiyingw.js +++ b/JN/EXT/JS/jiyingw.js @@ -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")){ diff --git a/JN/EXT/JS/jiyingwp.js b/JN/EXT/JS/jiyingwp.js index 8768e69d..71e2c7ba 100644 --- a/JN/EXT/JS/jiyingwp.js +++ b/JN/EXT/JS/jiyingwp.js @@ -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")){ diff --git a/JN/EXT/JS/kkpans.js b/JN/EXT/JS/kkpans.js index 5f4bb28d..748f1990 100644 --- a/JN/EXT/JS/kkpans.js +++ b/JN/EXT/JS/kkpans.js @@ -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); diff --git a/JN/EXT/JS/libvio.js b/JN/EXT/JS/libvio.js index bb3eb203..12f86358 100644 --- a/JN/EXT/JS/libvio.js +++ b/JN/EXT/JS/libvio.js @@ -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{ diff --git a/JN/EXT/JS/meijumi.js b/JN/EXT/JS/meijumi.js index bb006267..fb3d4016 100644 --- a/JN/EXT/JS/meijumi.js +++ b/JN/EXT/JS/meijumi.js @@ -189,7 +189,7 @@ playGroups.forEach(function (it) { haveDelay = true; TABS.push("選擇右側綫路"); } - TABS.push("夸克雲盤" + groupIndex); + TABS.push("夸克網盤" + groupIndex); } groupIndex = groupIndex + 1; } diff --git a/JN/EXT/JS/meijumip.js b/JN/EXT/JS/meijumip.js index 944b5393..e1ec452e 100644 --- a/JN/EXT/JS/meijumip.js +++ b/JN/EXT/JS/meijumip.js @@ -189,7 +189,7 @@ playGroups.forEach(function (it) { haveDelay = true; TABS.push("選擇右側綫路"); } - TABS.push("夸克雲盤" + groupIndex); + TABS.push("夸克網盤" + groupIndex); } groupIndex = groupIndex + 1; } diff --git a/JN/EXT/JS/meow.js b/JN/EXT/JS/meow.js new file mode 100644 index 00000000..22f5fbd3 --- /dev/null +++ b/JN/EXT/JS/meow.js @@ -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); +`, +} diff --git a/JN/EXT/JS/mp4us.js b/JN/EXT/JS/mp4us.js index f4e64195..75e1afbb 100644 --- a/JN/EXT/JS/mp4us.js +++ b/JN/EXT/JS/mp4us.js @@ -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); `, diff --git a/JN/EXT/JS/qimiao.js b/JN/EXT/JS/qimiao.js new file mode 100644 index 00000000..d67466c7 --- /dev/null +++ b/JN/EXT/JS/qimiao.js @@ -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); +`, +} diff --git a/JN/EXT/JS/rrdyw.js b/JN/EXT/JS/rrdyw.js new file mode 100644 index 00000000..f6b9e63d --- /dev/null +++ b/JN/EXT/JS/rrdyw.js @@ -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', +} diff --git a/JN/EXT/JS/tzfile.js b/JN/EXT/JS/tzfile.js index 2f099b14..660c3715 100644 --- a/JN/EXT/JS/tzfile.js +++ b/JN/EXT/JS/tzfile.js @@ -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); +`, } diff --git a/JN/EXT/JS/xb6v.js b/JN/EXT/JS/xb6v.js index 8936a3d5..9301b4c0 100644 --- a/JN/EXT/JS/xb6v.js +++ b/JN/EXT/JS/xb6v.js @@ -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; } } diff --git a/JN/EXT/JS/xzys.js b/JN/EXT/JS/xzys.js index cba0d784..ac0dd311 100644 --- a/JN/EXT/JS/xzys.js +++ b/JN/EXT/JS/xzys.js @@ -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")){