diff --git a/JN/EXT/JS/4khdr.js b/JN/EXT/JS/4khdr.js index 52ae1386..32a58470 100644 --- a/JN/EXT/JS/4khdr.js +++ b/JN/EXT/JS/4khdr.js @@ -60,7 +60,7 @@ if (tabsm === true){ if (tabse === true){ TABS.push("電驢"); } -if (tabsa.length + tabsq.length > 1){ +if (false && tabsa.length + tabsq.length > 1){ TABS.push("選擇右側綫路"); } let tmpIndex; @@ -92,7 +92,7 @@ d.forEach(function(it){ log('4khdr burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; if (burl.startsWith("https://www.aliyundrive.com/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -104,7 +104,7 @@ d.forEach(function(it){ loopresult = title + '$' + burl; lista.push(loopresult); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -127,7 +127,7 @@ if (listm.length>0){ if (liste.length>0){ LISTS.push(liste); } -if (lista.length + listq.length > 1){ +if (false && lista.length + listq.length > 1){ LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); } lista.forEach(function(it){ diff --git a/JN/EXT/JS/dygang.js b/JN/EXT/JS/dygang.js index a726de2e..654b2f17 100644 --- a/JN/EXT/JS/dygang.js +++ b/JN/EXT/JS/dygang.js @@ -88,7 +88,7 @@ if (tabsm === true){ if (tabse === true){ TABS.push("電驢"); } -if (tabsa.length + tabsq.length > 1){ +if (false && tabsa.length + tabsq.length > 1){ TABS.push("選擇右側綫路"); } let tmpIndex; @@ -124,7 +124,7 @@ d.forEach(function(it){ log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; if (burl.startsWith("https://www.aliyundrive.com/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -136,7 +136,7 @@ d.forEach(function(it){ loopresult = title + '$' + burl; lista.push(loopresult); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -195,7 +195,7 @@ if (listm.length>0){ if (liste.length>0){ LISTS.push(liste); } -if (lista.length + listq.length > 1){ +if (false && lista.length + listq.length > 1){ LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); } lista.forEach(function(it){ diff --git a/JN/EXT/JS/jiyingw.js b/JN/EXT/JS/jiyingw.js index 7001b09e..74c0b598 100644 --- a/JN/EXT/JS/jiyingw.js +++ b/JN/EXT/JS/jiyingw.js @@ -79,7 +79,7 @@ if (tabsm === true){ if (tabse === true){ TABS.push("電驢"); } -if (tabsa.length + tabsq.length > 1){ +if (false && tabsa.length + tabsq.length > 1){ TABS.push("選擇右側綫路"); } let tmpIndex; @@ -111,7 +111,7 @@ d.forEach(function(it){ log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; if (burl.startsWith("https://www.aliyundrive.com/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -123,7 +123,7 @@ d.forEach(function(it){ loopresult = title + '$' + burl; lista.push(loopresult); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -148,7 +148,7 @@ d.forEach(function(it){ log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; if (burl.startsWith("https://www.aliyundrive.com/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -160,7 +160,7 @@ d.forEach(function(it){ loopresult = title + '$' + burl; lista.push(loopresult); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -183,7 +183,7 @@ if (listm.length>0){ if (liste.length>0){ LISTS.push(liste); } -if (lista.length + listq.length > 1){ +if (false && lista.length + listq.length > 1){ LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); } lista.forEach(function(it){ diff --git a/JN/EXT/JS/jiyingwp.js b/JN/EXT/JS/jiyingwp.js index e547e28b..8768e69d 100644 --- a/JN/EXT/JS/jiyingwp.js +++ b/JN/EXT/JS/jiyingwp.js @@ -79,7 +79,7 @@ if (tabsm === true){ if (tabse === true){ TABS.push("電驢"); } -if (tabsa.length + tabsq.length > 1){ +if (false && tabsa.length + tabsq.length > 1){ TABS.push("選擇右側綫路"); } let tmpIndex; @@ -111,7 +111,7 @@ d.forEach(function(it){ log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; if (burl.startsWith("https://www.aliyundrive.com/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -123,7 +123,7 @@ d.forEach(function(it){ loopresult = title + '$' + burl; lista.push(loopresult); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -148,7 +148,7 @@ d.forEach(function(it){ log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; if (burl.startsWith("https://www.aliyundrive.com/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -160,7 +160,7 @@ d.forEach(function(it){ loopresult = title + '$' + burl; lista.push(loopresult); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -183,7 +183,7 @@ if (listm.length>0){ if (liste.length>0){ LISTS.push(liste); } -if (lista.length + listq.length > 1){ +if (false && lista.length + listq.length > 1){ LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); } lista.forEach(function(it){ diff --git a/JN/EXT/JS/kkpans.js b/JN/EXT/JS/kkpans.js index e0c3b6cc..0597240f 100644 --- a/JN/EXT/JS/kkpans.js +++ b/JN/EXT/JS/kkpans.js @@ -60,7 +60,7 @@ pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; TABS=[] let d = pdfa(html, 'div.viewthread div.message a[href^="https://pan.quark.cn/s/"]'); let index = 1; -if (d.length>1){ +if (false && d.length>1){ TABS.push("選擇右側綫路"); } d.forEach(function(it) { @@ -75,12 +75,12 @@ LISTS=[]; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; let d = pdfa(html, 'div.viewthread div.message a[href^="https://pan.quark.cn/s/"]'); let index = 1; -if (d.length>1){ +if (false && d.length>1){ LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); } d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); - if (false){ + if (true){ if (d.length==1){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ diff --git a/JN/EXT/JS/meijumi.js b/JN/EXT/JS/meijumi.js index 11636713..bb006267 100644 --- a/JN/EXT/JS/meijumi.js +++ b/JN/EXT/JS/meijumi.js @@ -1,12 +1,15 @@ var rule = { title:'美剧迷[磁]', - host:'https://www.meijumi.net', - homeUrl:'/', - url: '/fyclass/page/fypage/?', + //host:'https://www.meijumi.net', + //homeUrl:'/', + //url: '/fyclass/page/fypage/?', + host:'http://127.0.0.1:10078', + homeUrl:'/p/0/s/https://www.meijumi.net/', + url: '/p/0/s/https://www.meijumi.net/fyclass/page/fypage/?', filter_url:'{{fl.class}}', filter:{ }, - searchUrl: '/?s=**', + searchUrl: '/p/0/s/https://www.meijumi.net/?s=**', searchable:2, quickSearch:0, filterable:0, @@ -36,43 +39,47 @@ let html = request(input); let items; items = pdfa(html, 'main#main div.hd ul li:has(>a>img)'); items.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'li&&Text'), desc: '', pic_url: pd(it, 'img&&src', HOST), - url: pdfh(it, 'a&&href') + url: burl }); }); items = pdfa(html, 'main#main div.hd div.huandeng span:has(>a>img)'); if (typeof items !== "undefined") { items.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'span&&Text'), desc: '', pic_url: pd(it, 'img&&src', HOST), - url: pdfh(it, 'a&&href') + url: burl }); }); } items = pdfa(html, 'main#main div#pingbi_gg div:has(>div>a>img)'); if (typeof items !== "undefined") { items.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'a&&title'), desc: pdfh(it, 'div&&span b&&Text'), pic_url: pd(it, 'img&&src', HOST), - url: pdfh(it, 'a&&href') + url: burl }); }); } items = pdfa(html, 'main#main div#pingbi_gg div:has(>header>div>a)'); if (typeof items !== "undefined") { items.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'header a&&Text'), desc: pdfh(it, 'header&&div span&&Text'), pic_url: pd(it, 'figure img&&src', HOST), - url: pdfh(it, 'header a&&href') + url: burl }); }); } @@ -86,11 +93,12 @@ if (MY_CATE !== "news" ){ let html = request(input); let list = pdfa(html, 'div#post_list_box article'); list.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'header a&&Text'), desc: pdfh(it, 'div.entry-content span:eq(1)&&Text'), pic_url: pd(it, 'figure img&&src', HOST), - url: pdfh(it, 'header a&&href') + url: burl }); }) }else{ @@ -98,11 +106,12 @@ if (MY_CATE !== "news" ){ let html = request(input); let list = pdfa(html, 'article ol&&li'); list.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'a&&Text'), desc: pdfh(it, 'li&&span:eq(3)&&Text') + ' / 更新' + pdfh(it, 'li&&span:eq(1)&&Text'), pic_url: '', - url: pdfh(it, 'a&&href') + url: burl }); }) } @@ -165,18 +174,18 @@ playGroups.forEach(function (it) { }else{ if (magCount>0){ TABS.push("磁力" + groupIndex); - haveMag= true; + haveMag = true; haveDelay = true; } if (aliCount === 1){ - if (!haveMag && !haveDelay){ + if (false && !haveMag && !haveDelay){ haveDelay = true; TABS.push("選擇右側綫路"); } TABS.push("阿里雲盤" + groupIndex); } if (quarkCount === 1){ - if (!haveMag && !haveDelay){ + if (false && !haveMag && !haveDelay){ haveDelay = true; TABS.push("選擇右側綫路"); } @@ -255,37 +264,37 @@ playGroups.forEach(function(it){ LISTS.push(newd); } if (Object.keys(it["ali"]).length==1){ - if (!haveMag && !haveDelay){ - haveDelay = true; - LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); - } let d = []; for(const key in it["ali"]){ if (it["ali"].hasOwnProperty(key)){ let title = it["ali"][key]; - //let burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(key); - let burl = "push://" + key; + let burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(key); + //let burl = "push://" + key; log('meijumi ali title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('meijumi ali burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); d.push(title + '$' + burl); + if (false && !haveMag && !haveDelay){ + haveDelay = true; + LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); + } } } LISTS.push(d); } if (Object.keys(it["quark"]).length==1){ - if (!haveMag && !haveDelay){ - haveDelay = true; - LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); - } let d = []; for(const key in it["quark"]){ if (it["quark"].hasOwnProperty(key)){ let title = it["quark"][key]; - //let burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(key); - let burl = "push://" + key; + let burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(key); + //let burl = "push://" + key; log('meijumi quark title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('meijumi quark burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); d.push(title + '$' + burl); + if (false && !haveMag && !haveDelay){ + haveDelay = true; + LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); + } } } LISTS.push(d); diff --git a/JN/EXT/JS/meijumip.js b/JN/EXT/JS/meijumip.js index 44af04d9..01ba7711 100644 --- a/JN/EXT/JS/meijumip.js +++ b/JN/EXT/JS/meijumip.js @@ -3,13 +3,13 @@ var rule = { //host:'https://www.meijumi.xyz', //homeUrl:'/', //url: '/fyclass/page/fypage/?', - host:'http://127.0.0.1:10079', - homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/', - url: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/fyclass/page/fypage/?', + host:'http://127.0.0.1:10078', + homeUrl:'/p/0/socks5%3A%2F%2F192.168.101.1%3A1080/https://www.meijumi.net/', + url: '/p/0/socks5%3A%2F%2F192.168.101.1%3A1080/https://www.meijumi.net/fyclass/page/fypage/?', filter_url:'{{fl.class}}', filter:{ }, - searchUrl: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/?s=**', + searchUrl: '/p/0/socks5%3A%2F%2F192.168.101.1%3A1080/https://www.meijumi.net/?s=**', searchable:2, quickSearch:0, filterable:0, @@ -39,43 +39,47 @@ let html = request(input); let items; items = pdfa(html, 'main#main div.hd ul li:has(>a>img)'); items.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'li&&Text'), desc: '', pic_url: pd(it, 'img&&src', HOST), - url: pdfh(it, 'a&&href') + url: burl }); }); items = pdfa(html, 'main#main div.hd div.huandeng span:has(>a>img)'); if (typeof items !== "undefined") { items.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'span&&Text'), desc: '', pic_url: pd(it, 'img&&src', HOST), - url: pdfh(it, 'a&&href') + url: burl }); }); } items = pdfa(html, 'main#main div#pingbi_gg div:has(>div>a>img)'); if (typeof items !== "undefined") { items.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'a&&title'), desc: pdfh(it, 'div&&span b&&Text'), pic_url: pd(it, 'img&&src', HOST), - url: pdfh(it, 'a&&href') + url: burl }); }); } items = pdfa(html, 'main#main div#pingbi_gg div:has(>header>div>a)'); if (typeof items !== "undefined") { items.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'header a&&Text'), desc: pdfh(it, 'header&&div span&&Text'), pic_url: pd(it, 'figure img&&src', HOST), - url: pdfh(it, 'header a&&href') + url: burl }); }); } @@ -89,11 +93,12 @@ if (MY_CATE !== "news" ){ let html = request(input); let list = pdfa(html, 'div#post_list_box article'); list.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'header a&&Text'), desc: pdfh(it, 'div.entry-content span:eq(1)&&Text'), pic_url: pd(it, 'figure img&&src', HOST), - url: pdfh(it, 'header a&&href') + url: burl }); }) }else{ @@ -101,11 +106,12 @@ if (MY_CATE !== "news" ){ let html = request(input); let list = pdfa(html, 'article ol&&li'); list.forEach(it => { + let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net"); d.push({ title: pdfh(it, 'a&&Text'), desc: pdfh(it, 'li&&span:eq(3)&&Text') + ' / 更新' + pdfh(it, 'li&&span:eq(1)&&Text'), pic_url: '', - url: pdfh(it, 'a&&href') + url: burl }); }) } @@ -172,14 +178,14 @@ playGroups.forEach(function (it) { haveDelay = true; } if (aliCount === 1){ - if (!haveMag && !haveDelay){ + if (false && !haveMag && !haveDelay){ haveDelay = true; TABS.push("選擇右側綫路"); } TABS.push("阿里雲盤" + groupIndex); } if (quarkCount === 1){ - if (!haveMag && !haveDelay){ + if (false && !haveMag && !haveDelay){ haveDelay = true; TABS.push("選擇右側綫路"); } @@ -262,12 +268,12 @@ playGroups.forEach(function(it){ for(const key in it["ali"]){ if (it["ali"].hasOwnProperty(key)){ let title = it["ali"][key]; - //let burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(key); - let burl = "push://" + key; + let burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(key); + //let burl = "push://" + key; log('meijumi ali title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('meijumi ali burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); d.push(title + '$' + burl); - if (!haveMag && !haveDelay){ + if (false && !haveMag && !haveDelay){ haveDelay = true; LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); } @@ -280,12 +286,12 @@ playGroups.forEach(function(it){ for(const key in it["quark"]){ if (it["quark"].hasOwnProperty(key)){ let title = it["quark"][key]; - //let burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(key); - let burl = "push://" + key; + let burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(key); + //let burl = "push://" + key; log('meijumi quark title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('meijumi quark burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); d.push(title + '$' + burl); - if (!haveMag && !haveDelay){ + if (false && !haveMag && !haveDelay){ haveDelay = true; LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); } diff --git a/JN/EXT/JS/mp4us.js b/JN/EXT/JS/mp4us.js index fb072324..f4e64195 100644 --- a/JN/EXT/JS/mp4us.js +++ b/JN/EXT/JS/mp4us.js @@ -60,7 +60,7 @@ if (tabsm === true){ if (tabse === true){ TABS.push("電驢"); } -if (tabsa.length + tabsq.length > 1){ +if (false && tabsa.length + tabsq.length > 1){ TABS.push("選擇右側綫路"); } let tmpIndex; @@ -92,7 +92,7 @@ d.forEach(function(it){ log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; if (burl.startsWith("https://www.aliyundrive.com/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -104,7 +104,7 @@ d.forEach(function(it){ loopresult = title + '$' + burl; lista.push(loopresult); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -127,7 +127,7 @@ if (listm.length>0){ if (liste.length>0){ LISTS.push(liste.reverse()); } -if (lista.length + listq.length > 1){ +if (false && lista.length + listq.length > 1){ LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); } lista.forEach(function(it){ diff --git a/JN/EXT/JS/xb6v.js b/JN/EXT/JS/xb6v.js index cfd57a95..24083e58 100644 --- a/JN/EXT/JS/xb6v.js +++ b/JN/EXT/JS/xb6v.js @@ -116,7 +116,7 @@ if (tabsm === true){ if (tabse === true){ TABS.push("電驢"); } -if (tabsa.length + tabsq.length > 1){ +if (false && tabsa.length + tabsq.length > 1){ TABS.push("選擇右側綫路"); } let tmpIndex; @@ -152,7 +152,7 @@ d.forEach(function(it){ log('xb6v burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; if (burl.startsWith("https://www.aliyundrive.com/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -164,7 +164,7 @@ d.forEach(function(it){ loopresult = title + '$' + burl; lista.push(loopresult); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - if (false){ + if (true){ if (TABS.length==1){ burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); }else{ @@ -223,7 +223,7 @@ if (listm.length>0){ if (liste.length>0){ LISTS.push(liste); } -if (lista.length + listq.length > 1){ +if (false && lista.length + listq.length > 1){ LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); } lista.forEach(function(it){ diff --git a/JN/EXT/JS/xzys.js b/JN/EXT/JS/xzys.js new file mode 100644 index 00000000..cba0d784 --- /dev/null +++ b/JN/EXT/JS/xzys.js @@ -0,0 +1,177 @@ +var rule = { + title:'校长影视[云盘]', + host:'https://xzys.fun', + homeUrl: '/', + url: '/fyclass.html?page=fypage', + filter_url:'{{fl.class}}', + filter:{ + }, + searchUrl: '/search.html?keyword=**', + searchable:2, + quickSearch:0, + filterable:0, + headers:{ + 'User-Agent': 'PC_UA', + 'Cookie':'' + }, + timeout:5000, + class_name: '电视剧&电影&动漫&纪录片&综艺', + class_url: 'dsj&dy&dm&jlp&zy', + play_parse:true, + play_json:[{ + re:'*', + json:{ + parse:0, + jx:0 + } + }], + lazy:'', + limit:6, + 推荐:'div.container div.row a:has(>img);img&&alt;img&&src;img&&alt;a&&href', + 一级:'div.container div.row div.list-boxes;img&&alt;img&&src;div.list-actions&&Text;a&&href', + 二级:{ + title:"div.container div.row h1&&Text", + img:"div.container div.row img&&src", + desc:'div.container div.row div.article-infobox&&Text', //remark + content:'div.container div.row div#info&&Text', + tabs:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +TABS=[] +let d = pdfa(html, 'div.container div.row 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("電驢"); +} +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('xzys TABS >>>>>>>>>>>>>>>>>>' + TABS); +`, + lists:`js: +log(TABS); +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +LISTS = []; +let d = pdfa(html, 'div.container div.row 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('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('dygang 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); +} +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('xzys seach cookie>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie); +let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params)); +log("xzys search params>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params)); +let search_html = request( HOST + '/search.html?keyword=' + encodeURIComponent(KEY), _fetch_params) +//log("xzys search result>>>>>>>>>>>>>>>" + search_html); +let d=[]; +let dlist = pdfa(search_html, 'div.container div.row div.list-boxes'); +dlist.forEach(function(it){ + let title = pdfh(it, 'h2 a img&&alt'); + if (searchObj.quick === true){ + if (title.includes(KEY)){ + title = KEY; + } + } + let img = pd(it, 'h2 a img&&src', HOST); + let content = pdfh(it, 'p.text_p&&Text'); + let desc = pdfh(it, 'div.list-actions&&Text'); //remark + let url = pd(it, 'h2 a&&href', HOST); + d.push({ + title:title, + img:img, + content:content, + desc:desc, + url:url + }) +}); +setResult(d); +`, +}