From 72f65df62b18a068ef453cf17a92ffe552384361 Mon Sep 17 00:00:00 2001 From: alantang <107459091+alantang1977@users.noreply.github.com> Date: Wed, 31 Jan 2024 11:57:42 +0800 Subject: [PATCH] Add files via upload --- js/喵物次元.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 js/喵物次元.js diff --git a/js/喵物次元.js b/js/喵物次元.js new file mode 100644 index 0000000..0242aef --- /dev/null +++ b/js/喵物次元.js @@ -0,0 +1,44 @@ +var rule = { + title: '喵物次元', + host: 'https://catw.moe', + 模板:'短视2', + searchUrl: '/index.php/vod/search/wd/**.html', + url:'/index.php/api/vod#type=fyclass&page=fypage', + searchable: 2,//是否启用全局搜索, + quickSearch: 1,//是否启用快速搜索, + filterable: 0,//是否启用分类筛选, + headers: { + 'User-Agent': 'MOBILE_UA' + }, + play_parse: true, + lazy: '', + limit: 6, + class_name:'TV动画&剧场版&特摄剧', + class_url:'1&2&20', + double: false, // 推荐内容是否双层定位 + 推荐: '.public-list-exp;a&&title;img&&data-src;.ft2&&Text;a&&href', + 一级:`js: + let body = input.split("#")[1]; + let t = Math.round(new Date / 1e3).toString(); + let key = md5("DS" + t + "DCC147D11943AF75"); + let url = input.split("#")[0]; + body = body + "&time=" + t + "&key=" + key; + print(body); + fetch_params.body = body; + let html = post(url, fetch_params); + let data = JSON.parse(html); + VODS = data.list.map(function(it) { + it.vod_pic = it.vod_pic.replace(/mac/, "https"); + return it + }); + `, + 二级: { + "title": "h1&&Text;.hl-ma0&&Text", + "img": ".module-item-pic&&img&&data-src", + "desc": ".slide-info-remarks&&Text;.video-info-items:eq(2)&&Text;.video-infs&&Text;.video-info-item:eq(1)&&Text;.video-info-items:eq(0)&&Text", + "content": "#height_limit&&Text", + "tabs": ".anthology-tab&&a", + "lists": ".anthology-list-box:eq(#id)&&li" + }, + 搜索: '.public-list-box;.thumb-txt&&Text;.public-list-exp&&img&&data-src;.public-list-prb&&Text;a&&href' + } \ No newline at end of file