mirror of
https://github.com/alantang1977/X.git
synced 2024-12-25 19:03:10 +02:00
Add files via upload
This commit is contained in:
parent
29506e8e97
commit
91033887b0
2 changed files with 75 additions and 47 deletions
16
js/mp4us.js
16
js/mp4us.js
|
@ -60,6 +60,9 @@ if (tabsm === true){
|
||||||
if (tabse === true){
|
if (tabse === true){
|
||||||
TABS.push("電驢");
|
TABS.push("電驢");
|
||||||
}
|
}
|
||||||
|
if (tabsa.length + tabsq.length > 1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
let tmpIndex;
|
let tmpIndex;
|
||||||
tmpIndex=1;
|
tmpIndex=1;
|
||||||
tabsa.forEach(function(it){
|
tabsa.forEach(function(it){
|
||||||
|
@ -89,19 +92,27 @@ d.forEach(function(it){
|
||||||
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
let loopresult = title + '$' + burl;
|
let loopresult = title + '$' + burl;
|
||||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||||
|
if (false){
|
||||||
if (TABS.length==1){
|
if (TABS.length==1){
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
}else{
|
}else{
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
burl = "push://" + burl;
|
||||||
|
}
|
||||||
loopresult = title + '$' + burl;
|
loopresult = title + '$' + burl;
|
||||||
lista.push(loopresult);
|
lista.push(loopresult);
|
||||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||||
|
if (false){
|
||||||
if (TABS.length==1){
|
if (TABS.length==1){
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
}else{
|
}else{
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
burl = "push://" + burl;
|
||||||
|
}
|
||||||
loopresult = title + '$' + burl;
|
loopresult = title + '$' + burl;
|
||||||
listq.push(loopresult);
|
listq.push(loopresult);
|
||||||
}else if (burl.startsWith("magnet")){
|
}else if (burl.startsWith("magnet")){
|
||||||
|
@ -116,6 +127,9 @@ if (listm.length>0){
|
||||||
if (liste.length>0){
|
if (liste.length>0){
|
||||||
LISTS.push(liste.reverse());
|
LISTS.push(liste.reverse());
|
||||||
}
|
}
|
||||||
|
if (lista.length + listq.length > 1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
lista.forEach(function(it){
|
lista.forEach(function(it){
|
||||||
LISTS.push([it]);
|
LISTS.push([it]);
|
||||||
});
|
});
|
||||||
|
@ -135,7 +149,7 @@ if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||||
log('mp4us seach cookie>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
log('mp4us seach cookie>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
//log("mp4us search params>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
//log("mp4us search params>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||||
let search_html = request( HOST + '/search/' + KEY + '-1.html', _fetch_params)
|
let search_html = request( HOST + '/search/' + encodeURIComponent(KEY) + '-1.html', _fetch_params)
|
||||||
//log("mp4us search result>>>>>>>>>>>>>>>" + search_html);
|
//log("mp4us search result>>>>>>>>>>>>>>>" + search_html);
|
||||||
let d=[];
|
let d=[];
|
||||||
//'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text',
|
//'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text',
|
||||||
|
|
106
js/xb6v.js
106
js/xb6v.js
|
@ -29,55 +29,55 @@ var rule = {
|
||||||
limit:6,
|
limit:6,
|
||||||
推荐:'',
|
推荐:'',
|
||||||
推荐:`js:
|
推荐:`js:
|
||||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
let d = [];
|
let d = [];
|
||||||
let html = request(input);
|
let html = request(input);
|
||||||
let list = pdfa(html, 'div.mainleft ul#post_container li');
|
let list = pdfa(html, 'div.mainleft ul#post_container li');
|
||||||
list.forEach(it => {
|
list.forEach(it => {
|
||||||
d.push({
|
d.push({
|
||||||
title: pdfh(it, 'div.thumbnail img&&alt'),
|
title: pdfh(it, 'div.thumbnail img&&alt'),
|
||||||
desc: pdfh(it, 'div.info&&span.info_date&&Text') + ' / ' + pdfh(it, 'div.info&&span.info_category&&Text'),
|
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),
|
pic_url: pd(it, 'div.thumbnail img&&src', HOST),
|
||||||
url: pdfh(it, 'div.thumbnail&&a&&href')
|
url: pdfh(it, 'div.thumbnail&&a&&href')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
setResult(d);
|
setResult(d);
|
||||||
`,
|
`,
|
||||||
一级:'',
|
一级:'',
|
||||||
一级:`js:
|
一级:`js:
|
||||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
let d = [];
|
let d = [];
|
||||||
if (MY_CATE !== 'qian50m.html') {
|
if (MY_CATE !== 'qian50m.html') {
|
||||||
let turl = (MY_PAGE === 1)? '/' : '/index_'+ MY_PAGE + '.html';
|
let turl = (MY_PAGE === 1)? '/' : '/index_'+ MY_PAGE + '.html';
|
||||||
input = rule.homeUrl + MY_CATE + turl;
|
input = rule.homeUrl + MY_CATE + turl;
|
||||||
let html = request(input);
|
let html = request(input);
|
||||||
let list = pdfa(html, 'div.mainleft ul#post_container li');
|
let list = pdfa(html, 'div.mainleft ul#post_container li');
|
||||||
list.forEach(it => {
|
list.forEach(it => {
|
||||||
d.push({
|
d.push({
|
||||||
title: pdfh(it, 'div.thumbnail img&&alt'),
|
title: pdfh(it, 'div.thumbnail img&&alt'),
|
||||||
desc: pdfh(it, 'div.info&&span.info_date&&Text') + ' / ' + pdfh(it, 'div.info&&span.info_category&&Text'),
|
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),
|
pic_url: pd(it, 'div.thumbnail img&&src', HOST),
|
||||||
url: pdfh(it, 'div.thumbnail&&a&&href')
|
url: pdfh(it, 'div.thumbnail&&a&&href')
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
input = rule.homeUrl + MY_CATE;
|
input = rule.homeUrl + MY_CATE;
|
||||||
let html = request(input);
|
let html = request(input);
|
||||||
let list = pdfa(html, 'div.container div#tab-content&&ul&&li');
|
let list = pdfa(html, 'div.container div#tab-content&&ul&&li');
|
||||||
list.forEach(it => {
|
list.forEach(it => {
|
||||||
let title = pdfh(it, 'a&&Text');
|
let title = pdfh(it, 'a&&Text');
|
||||||
if (title!==""){
|
if (title!==""){
|
||||||
d.push({
|
d.push({
|
||||||
title: title,
|
title: title,
|
||||||
desc: pdfh(it, 'a&&Text'),
|
desc: pdfh(it, 'a&&Text'),
|
||||||
pic_url: '',
|
pic_url: '',
|
||||||
url: pdfh(it, 'a&&href')
|
url: pdfh(it, 'a&&href')
|
||||||
});
|
});
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
setResult(d);
|
})
|
||||||
`,
|
}
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
二级:{
|
二级:{
|
||||||
title:"div.article_container h1&&Text",
|
title:"div.article_container h1&&Text",
|
||||||
img:"div#post_content img&&src",
|
img:"div#post_content img&&src",
|
||||||
|
@ -116,6 +116,9 @@ if (tabsm === true){
|
||||||
if (tabse === true){
|
if (tabse === true){
|
||||||
TABS.push("電驢");
|
TABS.push("電驢");
|
||||||
}
|
}
|
||||||
|
if (tabsa.length + tabsq.length > 1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
let tmpIndex;
|
let tmpIndex;
|
||||||
tmpIndex=1;
|
tmpIndex=1;
|
||||||
tabsa.forEach(function(it){
|
tabsa.forEach(function(it){
|
||||||
|
@ -149,19 +152,27 @@ d.forEach(function(it){
|
||||||
log('xb6v burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
log('xb6v burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
let loopresult = title + '$' + burl;
|
let loopresult = title + '$' + burl;
|
||||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||||
|
if (false){
|
||||||
if (TABS.length==1){
|
if (TABS.length==1){
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
}else{
|
}else{
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
burl = "push://" + burl;
|
||||||
|
}
|
||||||
loopresult = title + '$' + burl;
|
loopresult = title + '$' + burl;
|
||||||
lista.push(loopresult);
|
lista.push(loopresult);
|
||||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||||
|
if (false){
|
||||||
if (TABS.length==1){
|
if (TABS.length==1){
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
}else{
|
}else{
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
burl = "push://" + burl;
|
||||||
|
}
|
||||||
loopresult = title + '$' + burl;
|
loopresult = title + '$' + burl;
|
||||||
listq.push(loopresult);
|
listq.push(loopresult);
|
||||||
}else if (burl.startsWith("magnet")){
|
}else if (burl.startsWith("magnet")){
|
||||||
|
@ -212,6 +223,9 @@ if (listm.length>0){
|
||||||
if (liste.length>0){
|
if (liste.length>0){
|
||||||
LISTS.push(liste);
|
LISTS.push(liste);
|
||||||
}
|
}
|
||||||
|
if (lista.length + listq.length > 1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
lista.forEach(function(it){
|
lista.forEach(function(it){
|
||||||
LISTS.push([it]);
|
LISTS.push([it]);
|
||||||
});
|
});
|
||||||
|
@ -238,7 +252,7 @@ delete(_fetch_params.headers['Content-Type']);
|
||||||
Object.assign(_fetch_params, postData);
|
Object.assign(_fetch_params, postData);
|
||||||
log("xb6v search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
log("xb6v search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||||
let search_html = request( HOST + '/e/search/index.php', _fetch_params, true);
|
let search_html = request( HOST + '/e/search/index.php', _fetch_params, true);
|
||||||
log("xb6v search result>>>>>>>>>>>>>>>" + search_html);
|
//log("xb6v search result>>>>>>>>>>>>>>>" + search_html);
|
||||||
let d=[];
|
let d=[];
|
||||||
let dlist = pdfa(search_html, 'div.mainleft&&ul#post_container&&li');
|
let dlist = pdfa(search_html, 'div.mainleft&&ul#post_container&&li');
|
||||||
dlist.forEach(function(it){
|
dlist.forEach(function(it){
|
||||||
|
|
Loading…
Reference in a new issue