From ca2ecd401479a03e76389ff4164be6e0d05a558e Mon Sep 17 00:00:00 2001 From: ygfxz <1126598912@qq.com> Date: Sat, 12 Aug 2023 12:48:26 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/4khdr.js | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++ js/dygang.js | 74 +++++++++++++++++++++++++++++++++++ js/jiyingw.js | 75 ++++++++++++++++++++++++++++++++++++ 3 files changed, 254 insertions(+) create mode 100644 js/4khdr.js create mode 100644 js/dygang.js create mode 100644 js/jiyingw.js diff --git a/js/4khdr.js b/js/4khdr.js new file mode 100644 index 0000000..9cbea71 --- /dev/null +++ b/js/4khdr.js @@ -0,0 +1,105 @@ +var rule = { + title:'4KHDR[磁]', + host:'https://www.4khdr.cn', + homeUrl: "/forum.php?mod=forumdisplay&fid=2&page=1", + url: '/forum.php?mod=forumdisplay&fid=2&filter=typeid&typeid=fyclass&page=fypage', + filter_url:'{{fl.class}}', + filter:{ + }, + searchUrl: '', + searchable:0, + quickSearch:0, + filterable:0, + headers:{ + 'User-Agent': 'PC_UA' + }, + timeout:5000, + class_name: "4K电影&4K美剧&4K华语&4K动画&4K纪录片&4K日韩印&蓝光电影&蓝光美剧&蓝光华语&蓝光动画&蓝光日韩印", + class_url:"3&8&15&6&11&4&29&31&33&32&34", + play_parse:false, + lazy:'', + limit:6, + 推荐:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href', + 一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href', + 二级:{ + title:"#thead_subject&&Text", + img:"img.zoom&&src", + desc:'td[id^="postmessage_"] font&&Text', + content:'td[id^="postmessage_"] font&&Text', + tabs:`js: + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + TABS=[] + var d = pdfa(html, 'table.t_table'); + let magnetIndex=0; + let aliIndex=0; + d.forEach(function(it) { + let burl = pdfh(it, 'a&&href'); + log("burl >>>>>>" + burl); + if (burl.startsWith("https://www.aliyundrive.com/s/")){ + let result = 'aliyun' + aliIndex; + aliIndex = aliIndex + 1; + TABS.push(result); + } + }); + d.forEach(function(it) { + let burl = pdfh(it, 'a&&href'); + log("burl >>>>>>" + burl); + if (burl.startsWith("magnet")){ + let result = 'magnet' + magnetIndex; + magnetIndex = magnetIndex + 1; + TABS.push(result); + } + }); + log('TABS >>>>>>>>>>>>>>>>>>' + TABS); + `, + lists:`js: + log(TABS); + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + LISTS = []; + var d = pdfa(html, 'table.t_table'); + TABS.forEach(function(tab) { + log('tab >>>>>>>>' + tab); + if (/^aliyun/.test(tab)) { + let targetindex = parseInt(tab.substring(6)); + let index = 0; + d.forEach(function(it){ + let burl = pdfh(it, 'a&&href'); + if (burl.startsWith("https://www.aliyundrive.com/s/")){ + if (index == targetindex){ + let title = pdfh(it, 'a&&Text'); + log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl); + log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let loopresult = title + '$' + burl; + LISTS.push([loopresult]); + } + index = index + 1; + } + }); + } + }); + TABS.forEach(function(tab) { + log('tab >>>>>>>>' + tab); + if (/^magnet/.test(tab)) { + let targetindex = parseInt(tab.substring(6)); + let index = 0; + d.forEach(function(it){ + let burl = pdfh(it, 'a&&href'); + if (burl.startsWith("magnet")){ + if (index == targetindex){ + let title = pdfh(it, 'a&&Text'); + log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let loopresult = title + '$' + burl; + LISTS.push([loopresult]); + } + index = index + 1; + } + }); + } + }); + `, + + }, + 搜索:'', +} diff --git a/js/dygang.js b/js/dygang.js new file mode 100644 index 0000000..bfb1bc0 --- /dev/null +++ b/js/dygang.js @@ -0,0 +1,74 @@ +var rule = { + title:'电影港[磁]', + host:'https://www.dygang.tv', + homeUrl:'/', + url: '/fyclass/index_fypage.htm?', + filter_url:'{{fl.class}}', + filter:{ + }, + searchUrl: '/e/search/index.php#tbname=article&show=title,smalltext&tempid=1&Submit=%CB%D1%CB%F7&keyboard=**;post', + searchable:2, + quickSearch:1, + filterable:0, + headers:{ + 'User-Agent': 'PC_UA' + }, + timeout:5000, + class_name:'最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题', + class_url:'ys&bd&gy&gp&dsj&dsj1&yx&zy&dmq&jilupian&1080p&4K&3d&dyzt', + play_parse:false, + lazy:'', + limit:6, + 推荐:'div#tl table.border1;img&&alt;img&&src;;a&&href', + 一级:'table.border1;img&&alt;img&&src;;a&&href', + 二级:{ + title:"div.title a&&Text", + img:"#dede_content img&&src", + desc:"#dede_content p:eq(3)&&Text", + content:"#dede_content p:eq(2)&&Text", + tabs:`js: + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + TABS=[] + var d = pdfa(html, '#dede_content&&a'); + var index=0; + d.forEach(function(it) { + let burl = pdfh(it, 'a&&href'); + log("burl >>>>>>" + burl); + if (burl.startsWith("magnet")){ + let result = 'magnet' + index; + index = index + 1; + TABS.push(result); + } + }); + log('TABS >>>>>>>>>>>>>>>>>>' + TABS); + `, + lists:`js: + log(TABS); + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + LISTS = []; + var d = pdfa(html, '#dede_content&&a'); + TABS.forEach(function(tab) { + log('tab >>>>>>>>' + tab); + if (/^magnet/.test(tab)) { + let targetindex = parseInt(tab.substring(6)); + let index = 0; + d.forEach(function(it){ + let burl = pdfh(it, 'a&&href'); + if (burl.startsWith("magnet")){ + if (index == targetindex){ + let title = pdfh(it, 'a&&Text'); + log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let loopresult = title + '$' + burl; + LISTS.push([loopresult]); + } + index = index + 1; + } + }); + } + }); + `, + + }, + 搜索:'table.border1;img&&alt;img&&src;img&&alt;a&&href;img&&alt', +} diff --git a/js/jiyingw.js b/js/jiyingw.js new file mode 100644 index 0000000..602c97f --- /dev/null +++ b/js/jiyingw.js @@ -0,0 +1,75 @@ +var rule = { + title:'极影网[磁]', + host:'http://jiyingw.net', + homeUrl:'/', + url: '/fyclass/page/fypage?', + filter_url:'{{fl.class}}', + filter:{ + "movie":[{"key":"class","name":"标签","value":[{"n":"全部","v":"movie"},{"n":"4k","v":"tag/4k"}, {"n":"人性","v":"tag/人性"}, {"n":"传记","v":"tag/chuanji"}, {"n":"儿童","v":"tag/儿童"}, {"n":"冒险","v":"tag/adventure"}, {"n":"剧情","v":"tag/剧情"}, {"n":"加拿大","v":"tag/加拿大"}, {"n":"动作","v":"tag/dongzuo"}, {"n":"动漫","v":"tag/动漫"}, {"n":"励志","v":"tag/励志"}, {"n":"历史","v":"tag/history"}, {"n":"古装","v":"tag/古装"}, {"n":"同性","v":"tag/gay"}, {"n":"喜剧","v":"tag/comedy"}, {"n":"国剧","v":"tag/国剧"}, {"n":"奇幻","v":"tag/qihuan"}, {"n":"女性","v":"tag/女性"}, {"n":"家庭","v":"tag/family"}, {"n":"德国","v":"tag/德国"}, {"n":"恐怖","v":"tag/kongbu"}, {"n":"悬疑","v":"tag/xuanyi"}, {"n":"惊悚","v":"tag/jingsong"}, {"n":"意大利","v":"tag/意大利"}, {"n":"战争","v":"tag/zhanzheng"}, {"n":"战斗","v":"tag/战斗"}, {"n":"搞笑","v":"tag/搞笑"}, {"n":"故事","v":"tag/故事"}, {"n":"文艺","v":"tag/文艺"}, {"n":"日常","v":"tag/日常"}, {"n":"日本","v":"tag/日本"}, {"n":"日语","v":"tag/日语"}, {"n":"校园","v":"tag/校园"}, {"n":"武侠","v":"tag/wuxia"}, {"n":"法国","v":"tag/法国"}, {"n":"游戏","v":"tag/游戏"}, {"n":"灾难","v":"tag/zainan"}, {"n":"爱情","v":"tag/爱情"}, {"n":"犯罪","v":"tag/crime"}, {"n":"真人秀","v":"tag/zhenrenxiu"}, {"n":"短片","v":"tag/duanpian"}, {"n":"科幻","v":"tag/kehuan"}, {"n":"纪录","v":"tag/jilu"}, {"n":"美剧","v":"tag/meiju"}, {"n":"舞台","v":"tag/stage"}, {"n":"西部","v":"tag/xibu"}, {"n":"运动","v":"tag/yundong"}, {"n":"韩剧","v":"tag/韩剧"}, {"n":"韩国","v":"tag/韩国"}, {"n":"音乐","v":"tag/yinyue"}, {"n":"高清电影","v":"tag/高清电影"}]}] + }, + searchUrl: '/?s=**', + searchable:2, + quickSearch:1, + filterable:1, + headers:{ + 'User-Agent': 'PC_UA' + }, + timeout:5000, + class_name:'电影&电视剧&动漫&综艺&影评', + class_url:'movie&tv&cartoon&movie/variety&yingping', + play_parse:false, + lazy:'', + limit:6, + 推荐:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href', + 一级:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href', + 二级:{ + title:"h1&&Text", + img:"#post_content img&&src", + desc:"#post_content&&Text", + content:".movie-introduce&&Text", + tabs:`js: + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + TABS=[] + var d = pdfa(html, '#down&&a'); + var index=0; + d.forEach(function(it) { + let burl = pdfh(it, 'a&&href'); + log("burl >>>>>>" + burl); + if (burl.startsWith("magnet")){ + let result = 'magnet' + index; + index = index + 1; + TABS.push(result); + } + }); + log('TABS >>>>>>>>>>>>>>>>>>' + TABS); + `, + lists:`js: + log(TABS); + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + LISTS = []; + var d = pdfa(html, '#down&&a'); + TABS.forEach(function(tab) { + log('tab >>>>>>>>' + tab); + if (/^magnet/.test(tab)) { + let targetindex = parseInt(tab.substring(6)); + let index = 0; + d.forEach(function(it){ + let burl = pdfh(it, 'a&&href'); + if (burl.startsWith("magnet")){ + if (index == targetindex){ + let title = pdfh(it, 'a&&Text'); + log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let loopresult = title + '$' + burl; + LISTS.push([loopresult]); + } + index = index + 1; + } + }); + } + }); + `, + + }, + 搜索:'#post_container li.post;a.zoom&&title;a.zoom img&&src;.info&&Text;a&&href;.article&&Text', +}