TV-BOX/hikerviewrules/data/rules.json
2025-02-24 22:09:02 +08:00

231 lines
13 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"pageList": [],
"title": "斗鱼直播",
"type": "live",
"author": "TyrantGenesis",
"version": 5,
"url": "https://m.douyu.com",
"col_type": "movie_2",
"class_name": "",
"class_url": "",
"area_name": "",
"area_url": "",
"sort_name": "",
"year_name": "",
"sort_url": "",
"year_url": "",
"find_rule": "js:\neval(fetch(\"hiker://files/rules/TyrantG/LIVE/douyu.js\"))\nbaseParse()",
"searchFind": "js:\neval(fetch(\"hiker://files/rules/TyrantG/LIVE/douyu.js\"))\nsearchParse()",
"search_url": "https://m.douyu.com/api/search/anchor?limit=10&offset=fypage@-1@*10@&sk=**;POST",
"group": "⑳TyrantG",
"detail_col_type": "movie_1",
"detail_find_rule": "",
"sdetail_col_type": "movie_1",
"sdetail_find_rule": "",
"ua": "pc",
"preRule": "const BASE_URL = \"https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/\"\nconst LOCAL_URL = \"hiker://files/rules/TyrantG/\"\n\n/* Base Function */\nconst godWriteFile = (path) => {\n if (Array.isArray(path))\n\tpath.forEach(item => writeFile(LOCAL_URL+item, fetch(BASE_URL+item)))\n else\n\twriteFile(LOCAL_URL+path, fetch(BASE_URL+path))\n}\n\nconst godSaveFile = (path) => {\n if (Array.isArray(path))\n\tpath.forEach(item => {\n\t if (! fileExist(LOCAL_URL+item)) writeFile(LOCAL_URL+item, fetch(BASE_URL+item))\n\t})\n else\n\tif (! fileExist(LOCAL_URL+path)) writeFile(LOCAL_URL+path, fetch(BASE_URL+path))\n \n}\n/* Base Function */\n\ngodWriteFile([\"LIVE/douyu.js\", \"public/douyu-tabs.html\"])\ngodSaveFile([\"public/css/element-ui.css\", \"public/js/vue.min.js\", \"public/js/element-ui.js\"])",
"pages": "[]",
"icon": "https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/assets/images/douyu.png",
"titleColor": "#bdb2ff"
},
{
"last_chapter_rule": "",
"title": "虎牙直播",
"author": "TyrantGenesis",
"url": "https://m.huya.com",
"version": 4,
"col_type": "movie_3",
"class_name": "",
"type": "live",
"class_url": "",
"area_name": "",
"area_url": "",
"sort_name": "",
"year_name": "",
"sort_url": "",
"year_url": "",
"find_rule": "js:\neval(fetch('hiker://files/TyrantG/LIVE/huya.js'))\nbaseParse()",
"search_url": "https://search.cdn.huya.com/?m=Search&do=getSearchContent&plt=m&q=**&uid=0&app=11&v=1&typ=-5&start=fypage@-1@*12@&rows=12",
"group": "TyrantG",
"searchFind": "js:\neval(fetch('hiker://files/TyrantG/LIVE/huya.js'))\nsearchParse()",
"detail_col_type": "movie_1",
"detail_find_rule": "js:\neval(fetch('hiker://files/TyrantG/LIVE/huya.js'))\nsecParse()",
"sdetail_col_type": "movie_1",
"sdetail_find_rule": "*",
"ua": "mobile",
"preRule": "eval(fetch(\"https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/God_Plan.js\"))\nhuya_live()",
"pages": "[]",
"icon": "https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/assets/images/huya.png",
"proxy": ""
},
{
"last_chapter_rule": "",
"title": "企鹅体育",
"author": "TyrantGenesis",
"url": "hiker://empty?page=fypage&_=_",
"version": 1,
"col_type": "scroll_button",
"class_name": "",
"type": "live",
"class_url": "",
"area_name": "",
"area_url": "",
"sort_name": "",
"year_name": "",
"sort_url": "",
"year_url": "",
"find_rule": "js:\neval(fetch('hiker://files/TyrantG/LIVE/qie_sport.js'))\nbaseParse()",
"search_url": "https://live.qq.com/api/info/search?keyword=**&from=room;post",
"group": "⑳TyrantG",
"searchFind": "js:\neval(fetch('hiker://files/TyrantG/LIVE/qie_sport.js'))\nsearchParse()",
"detail_col_type": "movie_1",
"detail_find_rule": "",
"sdetail_col_type": "movie_1",
"sdetail_find_rule": "",
"ua": "auto",
"preRule": "eval(fetch(\"https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/God_Plan.js\"))\nqie_sport_live()",
"pages": "[]",
"icon": "https://live.qq.com/nextStatic/img/head/logo.png"
},
{
"title": "YouTube",
"type": "video",
"icon": "https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/assets/images/youtube.png",
"author": "TyrantGenesis",
"version": 2,
"url": "hiker://empty",
"col_type": "movie_3",
"class_name": "",
"class_url": "",
"area_name": "",
"area_url": "",
"sort_name": "",
"year_name": "",
"sort_url": "",
"year_url": "",
"find_rule": "js:\neval(fetch('hiker://files/TyrantG/TEST/youtube.js'))\nbaseParse()",
"searchFind": "",
"search_url": "",
"titleColor": "#bdb2ff",
"group": "⑳TyrantG",
"detail_col_type": "movie_1",
"detail_find_rule": "",
"sdetail_col_type": "movie_1",
"sdetail_find_rule": "",
"ua": "mobile",
"preRule": "eval(fetch(\"https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/God_Plan.js\"))\nyoutube()"
},
{
"title": "机核GCORES",
"type": "news",
"author": "TyrantGenesis",
"url": "hiker://empty$$fypage",
"version": 1,
"col_type": "movie_3",
"class_name": "",
"class_url": "",
"area_name": "",
"area_url": "",
"sort_name": "",
"year_name": "",
"sort_url": "",
"year_url": "",
"find_rule": "js:\neval(fetch('https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/COLLECTION/gcores.js'))\ngcores.baseParse()",
"search_url": "",
"group": "TyrantG",
"searchFind": "",
"detail_col_type": "movie_1",
"detail_find_rule": "",
"sdetail_col_type": "movie_1",
"sdetail_find_rule": "",
"ua": "pc",
"preRule": "if (! fileExist('hiker://files/TyrantG/public/gcores_banners.html')) writeFile('hiker://files/TyrantG/public/gcores_banners.html', request('https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/public/gcores_banners.html'))",
"pages": "[]",
"icon": "https://www.gcores.com/apple-touch-icon.png?v=jw7pQOOwRY"
},
{
"title": "站酷",
"type": "picture",
"icon": "https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/assets/images/zcool.jpg",
"author": "TyrantGenesis",
"version": "2",
"group": "⑳TyrantG",
"titleColor": "#bdb2ff",
"url": "https://www.zcool.com.cn/p1/discover/list##fypage",
"col_type": "",
"class_name": "",
"class_url": "",
"area_name": "",
"area_url": "",
"year_name": "",
"year_url": "",
"sort_name": "",
"sort_url": "",
"find_rule": "js:\neval(fetch('hiker://files/TyrantG/IMAGE/zcool.js'))\nbaseParse()",
"search_url": "https://www.zcool.com.cn/p1/search/content?JsonBody={\"word\":\"**\",\"cate_id\":0,\"recommend_level\":0,\"time\":0,\"has_video\":0,\"city_id\":0,\"college_id\":0,\"sort\":5,\"ps\":20,\"column\":4,\"p\":\"fypage\"};POST",
"searchFind": "js:\neval(fetch('hiker://files/TyrantG/IMAGE/zcool.js'))\nsearchParse()",
"detail_col_type": "",
"detail_find_rule": "",
"sdetail_col_type": "",
"sdetail_find_rule": "",
"ua": "pc",
"preRule": "eval(fetch(\"https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/God_Plan.js\"))\nzcool()"
},
{
"title": "稀土掘金",
"type": "news",
"icon": "https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/assets/images/juejin.png",
"author": "TyrantGenesis",
"url": "hiker://empty##fypage",
"version": 1,
"col_type": "movie_3",
"class_name": "",
"class_url": "",
"area_name": "",
"area_url": "",
"sort_name": "",
"year_name": "",
"sort_url": "",
"year_url": "",
"find_rule": "js:\naddListener(\"onClose\", $.toString(() => {\n clearItem('cate_level_1_id')\n clearItem('cate_level_2_id')\n clearItem('cursor')\n}))\nconst d = []\nconst EMPTY = 'hiker://empty'\nconst CATE_URL = 'https://juejin.cn'\nconst SEC_CARE_API = 'https://api.juejin.cn/recommend_api/v1/tag/recommend_tag_list'\nconst CONTENT_LIST_API = 'https://api.juejin.cn/recommend_api/v1/article/recommend_cate_tag_feed'\nconst CURRENT_PAGE = MY_URL.split('##')[1].toString()\nconst CATE_LEVEL_1_ID = getItem('cate_level_1_id', '')\nconst CATE_LEVEL_2_ID = getItem('cate_level_2_id', '')\n\nconst CATE_LEVEL_1_ARRAY = pdfa(fetch(CATE_URL, {headers: {\"User-Agent\": PC_UA}}), '.view-nav&&a')\n\nif (CURRENT_PAGE === '1') {\n clearItem('cursor')\n CATE_LEVEL_1_ARRAY.forEach(item => {\n let id = pdfh(item, '.category-popover-box&&st:state') || ''\n let title = pdfh(item, '.category-popover-box&&Text')\n let url = pdfh(item, 'a&&href')\n\n d.push({\n title: id === CATE_LEVEL_1_ID ? '<strong><font color=\"red\">'+title+'</font></strong>' : title,\n url: $(EMPTY).lazyRule(params => {\n setItem('cursor', '0')\n setItem('cate_level_1_id', params.id)\n setItem('cate_level_2_id', '')\n refreshPage(true)\n return 'hiker://empty'\n }, {\n id: id\n }),\n col_type: 'scroll_button'\n })\n })\n d.push({\n col_type: \"blank_block\"\n })\n\n if (CATE_LEVEL_1_ID) {\n d.push({\n title: CATE_LEVEL_2_ID === '' ? '<strong><font color=\"red\">全部</font></strong>' : '全部',\n url: $(EMPTY).lazyRule(_ => {\n setItem('cate_level_2_id', '')\n refreshPage(true)\n return 'hiker://empty'\n }),\n col_type: 'scroll_button'\n })\n let data = {\"cate_id\": CATE_LEVEL_1_ID}\n\n let headers = {\n \"User-Agent\": PC_UA,\n \"Content-Type\": 'application/json',\n \"Referer\": 'https://juejin.cn/',\n }\n const CATE_LEVEL_2_JSON = fetch(SEC_CARE_API, {headers: headers, method:'POST', body: JSON.stringify(data)})\n const CATE_LEVEL_2_RESULT = JSON.parse(CATE_LEVEL_2_JSON)\n\n if (CATE_LEVEL_2_RESULT && CATE_LEVEL_2_RESULT.err_no === 0) {\n const CATE_LEVEL_2_ARRAY = CATE_LEVEL_2_RESULT.data\n CATE_LEVEL_2_ARRAY.forEach(item => {\n d.push({\n title: CATE_LEVEL_2_ID === item.tag_id.toString() ? '<strong><font color=\"'+item.color+'\">'+item.tag_name+'</font></strong>' : item.tag_name,\n url: $(EMPTY).lazyRule(params => {\n setItem('cursor', '0')\n setItem('cate_level_2_id', params.id)\n refreshPage(true)\n return 'hiker://empty'\n }, {\n id: item.tag_id\n }),\n col_type: 'scroll_button'\n })\n })\n d.push({\n col_type: \"blank_block\"\n })\n }\n }\n}\n\nconst CURSOR = getItem('cursor', '0')\ndata = {\n cate_id: \"6809637769959178254\",\n cursor: CURSOR,\n id_type: 2,\n limit: 20,\n sort_type: 200,\n}\nif (CATE_LEVEL_1_ID) data.cate_id = CATE_LEVEL_1_ID\nif (CATE_LEVEL_2_ID) data.tag_id = CATE_LEVEL_2_ID\n\nheaders = {\n \"User-Agent\": PC_UA,\n \"Content-Type\": 'application/json',\n \"Referer\": 'https://juejin.cn/',\n}\nconst LIST_JSON = fetch(CONTENT_LIST_API, {headers: headers, method:'POST', body: JSON.stringify(data)})\nconst LIST_RESULT = JSON.parse(LIST_JSON)\n\nif (LIST_RESULT && LIST_RESULT.err_no === 0) {\n setItem('cursor', LIST_RESULT.cursor)\n log('Data')\n log(getItem('cursor', '0'))\n const LIST = LIST_RESULT.data\n LIST.forEach(item => {\n d.push({\n title: item.article_info.title,\n desc: item.article_info.brief_content,\n pic_url: item.article_info.cover_image,\n url: $(CATE_URL+'/post/'+item.article_id).rule(_ => {\n const d = []\n\n d.push({\n desc: '100% && float',\n url: MY_URL,\n col_type:\"x5_webview_single\"\n })\n\n setResult(d)\n }),\n col_type: 'movie_1'\n })\n })\n}\n\nsetResult(d)\n",
"search_url": "",
"group": "⑳TyrantG",
"searchFind": "",
"detail_col_type": "movie_1",
"detail_find_rule": "",
"sdetail_col_type": "movie_1",
"sdetail_find_rule": "",
"ua": "mobile",
"preRule": "",
"pages": "[]"
},
{
"title": "触站",
"icon": "https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/assets/images/chuzhan.png",
"author": "TyrantGenesis",
"url": "hiker://empty##fypage",
"version": 1,
"col_type": "movie_3",
"class_name": "",
"type": "picture",
"class_url": "",
"area_name": "",
"area_url": "",
"sort_name": "",
"year_name": "",
"sort_url": "",
"year_url": "",
"find_rule": "js:\neval(fetch('hiker://files/TyrantG/IMAGE/huashi6.js'))\nbaseParse()",
"search_url": "https://rt.huashi6.com/front/works/search?index=fypage&title=**",
"group": "⑩TyrantG",
"searchFind": "js:\neval(fetch('hiker://files/TyrantG/IMAGE/huashi6.js'))\nsearchParse()",
"detail_col_type": "movie_1",
"detail_find_rule": "js:\neval(fetch('hiker://files/TyrantG/IMAGE/huashi6.js'))\nsecParse()",
"sdetail_col_type": "movie_1",
"sdetail_find_rule": "js:\neval(fetch('hiker://files/TyrantG/IMAGE/huashi6.js'))\nsecParse()",
"ua": "pc",
"preRule": "eval(fetch(\"https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/God_Plan.js\"))\nhuashi6()",
"pages": "[]"
}
]