From 1e657bfb7211416d9bbea18526bab77c0160faa7 Mon Sep 17 00:00:00 2001 From: alantang <107459091+alantang1977@users.noreply.github.com> Date: Tue, 5 Sep 2023 10:44:44 +0800 Subject: [PATCH] Add files via upload --- js/dygang.js | 2 +- js/mp4us.js | 2 +- js/qimiao.js | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++ js/xb6v.js | 2 +- 4 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 js/qimiao.js diff --git a/js/dygang.js b/js/dygang.js index 654b2f17..5499ffdf 100644 --- a/js/dygang.js +++ b/js/dygang.js @@ -230,7 +230,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/js/mp4us.js b/js/mp4us.js index f4e64195..3a6efe33 100644 --- a/js/mp4us.js +++ b/js/mp4us.js @@ -157,7 +157,7 @@ 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 (false && title.includes(KEY)){ title = KEY; } } diff --git a/js/qimiao.js b/js/qimiao.js new file mode 100644 index 00000000..d67466c7 --- /dev/null +++ b/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/js/xb6v.js b/js/xb6v.js index 8936a3d5..d0d64382 100644 --- a/js/xb6v.js +++ b/js/xb6v.js @@ -258,7 +258,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; } }