From 948c01c89de93a7eef7faceda4b6fc0fd7c73d20 Mon Sep 17 00:00:00 2001 From: Virgil Clyne Date: Tue, 29 Oct 2024 17:07:47 +0800 Subject: [PATCH] build: rspack --- .github/workflows/deploy.yml | 13 +- arguments-builder.config.ts | 242 ++++++------------------ modules/BiliBili.Global.beta.plugin | 35 ---- modules/BiliBili.Global.beta.sgmodule | 37 ---- modules/BiliBili.Global.beta.snippet | 49 ----- modules/BiliBili.Global.beta.stoverride | 136 ------------- package-lock.json | 18 +- src/types.d.ts | 75 ++++++++ template/boxjs.settings.json | 1 + template/egern.handlebars | 131 +++++++++++++ template/loon.handlebars | 20 +- template/shadowrocket.handlebars | 36 ++++ template/surge.handlebars | 15 +- 13 files changed, 336 insertions(+), 472 deletions(-) delete mode 100644 modules/BiliBili.Global.beta.plugin delete mode 100644 modules/BiliBili.Global.beta.sgmodule delete mode 100644 modules/BiliBili.Global.beta.snippet delete mode 100644 modules/BiliBili.Global.beta.stoverride create mode 100644 src/types.d.ts create mode 100644 template/boxjs.settings.json create mode 100644 template/egern.handlebars create mode 100644 template/shadowrocket.handlebars diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5bafea7..84382cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,10 +21,17 @@ jobs: uses: actions/download-artifact@master with: name: artifact - - name: Deploy Composite.Subtitles.response + - name: Deploy Request uses: exuanbo/actions-deploy-gist@main with: token: ${{ secrets.GIST_TOKEN }} - gist_id: 97d7611df1c0b29a254ce8f527137576 - gist_description: "📺 BiliBili: ⚙️ Enhanced β" + gist_id: 6b5c5164cc46cc9ac47f30b9824ec9b3 + gist_description: "📺 BiliBili: 🌐 Global β" + file_path: dist/request.bundle.js + - name: Deploy Response + uses: exuanbo/actions-deploy-gist@main + with: + token: ${{ secrets.GIST_TOKEN }} + gist_id: 6b5c5164cc46cc9ac47f30b9824ec9b3 + gist_description: "📺 BiliBili: 🌐 Global β" file_path: dist/response.bundle.js diff --git a/arguments-builder.config.ts b/arguments-builder.config.ts index acaf210..a460708 100644 --- a/arguments-builder.config.ts +++ b/arguments-builder.config.ts @@ -3,26 +3,26 @@ import { defineConfig } from "@iringo/arguments-builder"; export default defineConfig({ output: { surge: { - path: "./dist/Enhanced.sgmodule", + path: "./dist/BiliBili.Global.sgmodule", }, loon: { - path: "./dist/Enhanced.plugin", + path: "./dist/BiliBili.Global.plugin", }, customItems: [ { - path: "./dist/Enhanced.stoverride", + path: "./dist/BiliBili.Global.stoverride", template: "./template/stash.handlebars", }, { - path: "./dist/Enhanced.yaml", + path: "./dist/BiliBili.Global.yaml", template: "./template/egern.handlebars", }, { - path: "./dist/Enhanced.snippet", + path: "./dist/BiliBili.Global.snippet", template: "./template/quantumultx.handlebars", }, { - path: "./dist/Enhanced.srmodule", + path: "./dist/BiliBili.Global.srmodule", template: "./template/shadowrocket.handlebars", }, ], @@ -32,7 +32,7 @@ export default defineConfig({ }, boxjsSettings: { path: "./template/boxjs.settings.json", - scope: "@BiliBili.Enhanced.Settings", + scope: "@BiliBili.Global.Settings", }, }, args: [ @@ -45,210 +45,84 @@ export default defineConfig({ exclude: ["surge", "loon"], }, { - key: "Home.Tab", - name: "[首页]标签页", - defaultValue: ["直播tab", "推荐tab", "hottopic", "bangumi", "anime", "film", "koreavtw"], - type: "array", - boxJsType: "checkboxes", - description: "请选择启用的首页标签页,建议不超过7个。", + key: "ForceHost", + name: "强制CDN主机名类型", + defaultValue: "1", + type: "number", + boxJsType: "selects", + description: "请设置强制返回的CDN主机名类型。", options: [ { - key: "直播tab", - label: "直播", - }, - { - key: "推荐tab", - label: "推荐", - }, - { - key: "hottopic", - label: "热门", - }, - { - key: "bangumi", - label: "番剧", - }, - { - key: "anime", - label: "动画(港澳台)", + key: "0", + label: "IP: 返回远端DNS解析地址(强烈不推荐!严重影响域名分流规则与CDN重定向)", }, { - key: "film", - label: "影视", + key: "1", + label: "HTTP: 返回HTTP域名(推荐,免去重定向时MitM操作)", }, { - key: "koreavtw", - label: "韩综(港澳台)", - }, - { - key: "game", - label: "游戏", - }, - { - key: "mctab", - label: "minecraft", - }, - { - key: "dhtr", - label: "动画同人", - }, - { - key: "gaoxiao", - label: "搞笑", - }, - { - key: "school", - label: "校园", - }, - { - key: "kj", - label: "数码", + key: "2", + label: "HTTPS: 返回HTTPS域名(不推荐,重定向时需对指定域名启用MitM)", }, ], }, { - key: "Home.Tab_default", - name: "[首页]默认标签页", - defaultValue: "推荐tab", - type: "string", - boxJsType: "selects", - description: "请选择启动APP时默认展示的标签页,需选择已启用的标签页。", + key: "Locales", + name: "启用自动识别与分流功能的地区", + defaultValue: ["CHN", "HKG", "TWN"], + type: "array", + boxJsType: "checkboxes", + description: "请选择启用自动识别与分流功能的地区。", options: [ { - key: "直播tab", - label: "直播", - }, - { - key: "推荐tab", - label: "推荐", - }, - { - key: "hottopic", - label: "热门", - }, - { - key: "bangumi", - label: "番剧", - }, - { - key: "anime", - label: "动画(港澳台)", - }, - { - key: "film", - label: "影视", - }, - { - key: "koreavtw", - label: "韩综(港澳台)", - }, - { - key: "game", - label: "游戏", - }, - { - key: "mctab", - label: "minecraft", + key: "CHN", + label: "🇨🇳中国大陆", }, { - key: "dhtr", - label: "动画同人", + key: "HKG", + label: "🇭🇰中国香港", }, { - key: "gaoxiao", - label: "搞笑", + key: "MAC", + label: "🇲🇴中国澳门", }, { - key: "school", - label: "校园", - }, - { - key: "kj", - label: "数码", + key: "TWN", + label: "🇹🇼中国台湾", }, ], }, { - key: "Home.Top_left", - name: "[首页]顶栏(左侧)按钮(用户头像)", - defaultValue: "mine", + key: "Proxies.CHN", + name: "[🇨🇳中国大陆] 代理策略名称", + defaultValue: "DIRECT", type: "string", - boxJsType: "selects", - description: "请选择顶栏(左侧)按钮(用户头像)的作用(在biliBili粉色版中无法修改)。", - options: [ - { - key: "mine", - label: "用户中心-我的", - }, - { - key: "videoshortcut", - label: "短视频", - }, - ], + boxJsType: "text", + description: "请填写此地区的代理或策略组名称。", }, { - key: "Home.Top", - name: "[首页]顶栏(右侧)按钮", - defaultValue: ["消息Top"], - type: "array", - boxJsType: "checkboxes", - description: "请选择启用的顶栏(右侧)按钮。", - options: [ - { - key: "游戏中心Top", - label: "游戏中心", - }, - { - key: "会员购Top", - label: "会员购", - }, - { - key: "消息Top", - label: "消息", - }, - ], + key: "Proxies.HKG", + name: "[🇭🇰中国香港] 代理策略名称", + defaultValue: "🇭🇰香港", + type: "string", + boxJsType: "text", + description: "请填写此地区的代理或策略组名称。", }, { - key: "Bottom", - name: "[底部]导航栏按钮", - defaultValue: ["home", "dynamic", "ogv", "会员购Bottom", "我的Bottom"], - type: "array", - boxJsType: "checkboxes", - description: "请选择启用的底部导航栏按钮,最多6个。", - options: [ - { - "key": "home", - "label": "首页" - }, - { - "key": "频道Bottom", - "label": "频道" - }, - { - "key": "dynamic", - "label": "动态" - }, - { - "key": "publish", - "label": "发布" - }, - { - "key": "ogv", - "label": "节目(港澳台)" - }, - { - "key": "会员购Bottom", - "label": "会员购" - }, - { - "key": "消息Bottom", - "label": "消息" - }, - { - "key": "我的Bottom", - "label": "我的" - } - ], + key: "Proxies.MAC", + name: "[🇲🇴中国澳门] 代理策略名称", + defaultValue: "🇲🇴澳门", + type: "string", + boxJsType: "text", + description: "请填写此地区的代理或策略组名称。", + }, + { + key: "Proxies.TWN", + name: "[🇹🇼中国台湾] 代理策略名称", + defaultValue: "🇹🇼台湾", + type: "string", + boxJsType: "text", + description: "请填写此地区的代理或策略组名称。", }, ], }); diff --git a/modules/BiliBili.Global.beta.plugin b/modules/BiliBili.Global.beta.plugin deleted file mode 100644 index 2de404d..0000000 --- a/modules/BiliBili.Global.beta.plugin +++ /dev/null @@ -1,35 +0,0 @@ -#!name=📺 BiliBili: 🌐 Global β -#!desc=(BETA) 哔哩哔哩:全球模式(中国站自动线路及全区搜索) -#!openUrl=http://boxjs.com/#/app/BiliBili.Global.beta -#!author=VirgilClyne -#!homepage=https://global.biliuniverse.io -#!manual=https://manual.biliuniverse.io -#!icon=https://github.com/BiliUniverse/Global/raw/main/src/assets/icon_rounded_108x.png -#!category=📺 BiliUniverse - -[Script] -http-request ^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/? requires-body=1, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.bangumi.play.html, argument= - -http-request ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ requires-body=1, binary-body-mode=1, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.viewunite.v1.View.grpc, argument= -http-response ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ requires-body=1, binary-body-mode=1, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.response.beta.js, tag=BiliBili.Global.viewunite.v1.View.grpc, argument= -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.season.json, argument= -http-response ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? requires-body=1, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.response.beta.js, tag=BiliBili.Global.season.json, argument= - -http-request ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$ requires-body=1, binary-body-mode=1, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.playerunite.v1.Player.grpc, argument= -http-request ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$ requires-body=1, binary-body-mode=1, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.player.v2.PlayURL.grpc, argument= -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.player.playurl.json, argument= -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.player.v2.playurl.json, argument= - -http-request ^https?:\/\/search\.bilibili\.com\/all\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.search.html, argument= -http-request ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$ requires-body=1, binary-body-mode=1, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.search.grpc, argument= -http-request ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.search.app.json, argument= -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.search.wbi.json, argument= -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/search\/(all\/v2|type)\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.search.pc.json, argument= - -http-request ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/space\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.space.app.json, argument= -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/wbi\/acc\/info\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.space.wbi.json, argument= -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/acc\/info\? requires-body=0, timeout=15, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, tag=BiliBili.Global.space.pc.json, argument= - -[MitM] -hostname = www.bilibili.com, search.bilibili.com, app.bilibili.com, app.biliapi.net, api.bilibili.com, api.biliapi.net, grpc.biliapi.net -h2 = true diff --git a/modules/BiliBili.Global.beta.sgmodule b/modules/BiliBili.Global.beta.sgmodule deleted file mode 100644 index 9813b7d..0000000 --- a/modules/BiliBili.Global.beta.sgmodule +++ /dev/null @@ -1,37 +0,0 @@ -#!name=📺 BiliBili: 🌐 Global β -#!desc=(BETA) 哔哩哔哩:全球模式(中国站自动线路及全区搜索) -#!openUrl=http://boxjs.com/#/app/BiliBili.Global.beta -#!author=VirgilClyne -#!homepage=https://global.biliuniverse.io -#!manual=https://manual.biliuniverse.io -#!icon=https://github.com/BiliUniverse/Global/raw/main/src/assets/icon_rounded_108x.png -#!category=📺 BiliUniverse -#!arguments=Locales:"CHN,HKG,TWN",Proxies.CHN:DIRECT,Proxies.HKG:🇭🇰香港,Proxies.MAC:🇲🇴澳门,Proxies.TWN:🇹🇼台湾 -#!arguments-desc=Locales: 启用自动识别和分类功能的地区(多选)\n ├ CHN: 🇨🇳中国大陆\n ├ HKG: 🇭🇰中国香港\n ├ MAC: 🇲🇴中国澳门\n └ TWN: 🇼🇸中国台湾\n\nProxies.CHN: [🇨🇳中国大陆]代理或策略组选择\nProxies.HKG: [🇭🇰中国香港]代理或策略组选择\nProxies.MAC: [🇲🇴中国澳门]代理或策略组选择\nProxies.TWN: [🇼🇸中国台湾]代理或策略组选择 - -[Script] -BiliBili.Global.bangumi.play.html = type=http-request, pattern=^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, ability=http-client-policy, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} - -BiliBili.Global.viewunite.v1.View.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$, requires-body=1, binary-body-mode=1, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, ability=http-client-policy, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.viewunite.v1.View.grpc = type=http-response, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$, requires-body=1, binary-body-mode=1, engine=webview, timeout=15, max-size=262144, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.response.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.season.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, ability=http-client-policy, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.season.json = type=http-response, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\?, requires-body=1, engine=webview, timeout=15, max-size=262144, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.response.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} - -BiliBili.Global.playerunite.v1.Player.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$, requires-body=1, binary-body-mode=1, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.player.v2.PlayURL.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$, requires-body=1, binary-body-mode=1, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.player.playurl.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, ability=http-client-policy, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.player.v2.playurl.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, ability=http-client-policy, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} - -BiliBili.Global.search.html = type=http-request, pattern=^https?:\/\/search\.bilibili\.com\/all\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument= -BiliBili.Global.search.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$, requires-body=1, binary-body-mode=1, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.search.app.json = type=http-request, pattern=^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.search.wbi.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.search.pc.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/search\/(all\/v2|type)\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} - -BiliBili.Global.space.app.json = type=http-request, pattern=^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/space\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.space.wbi.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/wbi\/acc\/info\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} -BiliBili.Global.space.pc.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/acc\/info\?, engine=webview, timeout=15, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js, argument=Locales="{{{Locales}}}"&Proxies.CHN={{{Proxies.CHN}}}&Proxies.HKG={{{Proxies.HKG}}}&Proxies.MAC={{{Proxies.MAC}}}&Proxies.TWN={{{Proxies.TWN}}} - -[MITM] -hostname = %APPEND% www.bilibili.com, search.bilibili.com, app.bilibili.com, app.biliapi.net, api.bilibili.com, api.biliapi.net, grpc.biliapi.net -h2 = true diff --git a/modules/BiliBili.Global.beta.snippet b/modules/BiliBili.Global.beta.snippet deleted file mode 100644 index 9d59cfa..0000000 --- a/modules/BiliBili.Global.beta.snippet +++ /dev/null @@ -1,49 +0,0 @@ -#!name=📺 BiliBili: 🌐 Global β -#!desc=(BETA) 哔哩哔哩:全球模式(中国站自动线路及全区搜索) -#!openUrl=http://boxjs.com/#/app/BiliBili.Global.beta -#!author=VirgilClyne -#!homepage=https://global.biliuniverse.io -#!manual=https://manual.biliuniverse.io -#!icon=https://github.com/BiliUniverse/Global/raw/main/src/assets/icon_rounded_108x.png -#!category=📺 BiliUniverse - -#[Script] -# BiliBili.Global.bangumi.play.html -^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js - -# BiliBili.Global.viewunite.v1.View.grpc -^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ url script-request-body https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ url script-response-body https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.response.beta.js -# BiliBili.Global.season.json -^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? url script-request-body https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? url script-response-body https://raw.githubusercontent.com/BiliUniverse/Global/main/js/BiliBili.Global.response.beta.js - -# BiliBili.Global.playerunite.v1.Player.grpc -^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$ url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -# BiliBili.Global.player.v2.PlayURL.grpc -^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$ url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -# BiliBili.Global.player.playurl.json -^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -# BiliBili.Global.player.v2.playurl.json -^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js - -# BiliBili.Global.search.html -^https?:\/\/search\.bilibili\.com\/all\? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -# BiliBili.Global.search.grpc -^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$ url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -# BiliBili.Global.search.app.json -^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -# BiliBili.Global.search.wbi.json -^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -# BiliBili.Global.search.pc.json -^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/search\/(all\/v2|type)\? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js - -# BiliBili.Global.space.app.json -^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/space\? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -# BiliBili.Global.space.wbi.json -^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/wbi\/acc\/info\? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js -# BiliBili.Global.space.pc.json -^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/acc\/info\? url script-analyze-echo-response https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js - -#[MITM] -hostname = www.bilibili.com, search.bilibili.com, app.bilibili.com, app.biliapi.net, api.bilibili.com, api.biliapi.net, grpc.biliapi.net diff --git a/modules/BiliBili.Global.beta.stoverride b/modules/BiliBili.Global.beta.stoverride deleted file mode 100644 index 2f5a088..0000000 --- a/modules/BiliBili.Global.beta.stoverride +++ /dev/null @@ -1,136 +0,0 @@ -name: "📺 BiliBili: 🌐 Global β" -desc: "(BETA) 哔哩哔哩:全球模式(中国站自动线路及全区搜索)" -openUrl: "http://boxjs.com/#/app/BiliBili.Global.beta" -author: VirgilClyne -homepage: "https://global.biliuniverse.io" -manual: "https://manual.biliuniverse.io" -icon: "https://github.com/BiliUniverse/Global/raw/main/src/assets/icon_rounded_108x.png" -category: "📺 BiliUniverse" - -http: - mitm: - - "www.bilibili.com" - - "search.bilibili.com" - - "app.bilibili.com" - - "app.biliapi.net" - - "api.bilibili.com" - - "api.biliapi.net" - - "grpc.biliapi.net" - script: - - match: ^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - binary-mode: true - argument: - - match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ - name: BiliBili.Global.response - type: response - require-body: true - timeout: 15 - binary-mode: true - max-size: 262144 - argument: - - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? - name: BiliBili.Global.response - type: response - require-body: true - timeout: 15 - max-size: 262144 - argument: - - match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$ - name: BiliBili.Global.request - type: request - require-body: true - timeout: 15 - binary-mode: true - argument: - - match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$ - name: BiliBili.Global.request - type: request - require-body: true - timeout: 15 - binary-mode: true - argument: - - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$ - name: BiliBili.Global.request - type: request - require-body: true - timeout: 15 - binary-mode: true - argument: - - match: ^https?:\/\/search\.bilibili\.com\/all\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/search\/(all\/v2|type)\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/space\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/wbi\/acc\/info\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/acc\/info\? - name: BiliBili.Global.request - type: request - require-body: false - timeout: 15 - argument: - -script-providers: - BiliBili.Global.request: - url: https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.request.beta.js - interval: 86400 - BiliBili.Global.response: - url: https://raw.githubusercontent.com/BiliUniverse/Global/beta/js/BiliBili.Global.response.beta.js - interval: 86400 diff --git a/package-lock.json b/package-lock.json index 0046b2f..ba23872 100644 --- a/package-lock.json +++ b/package-lock.json @@ -760,9 +760,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.8.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.1.tgz", - "integrity": "sha512-k6Gi8Yyo8EtrNtkHXutUu2corfDf9su95VYVP10aGYMMROM6SAItZi0w1XszA6RtWTHSVp5OeFof37w0IEqCQg==", + "version": "22.8.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.2.tgz", + "integrity": "sha512-NzaRNFV+FZkvK/KLCsNdTvID0SThyrs5SHB6tsD/lajr22FGC73N2QeDPM2wHtVde8mgcXuSsHQkH5cX1pbPLw==", "dev": true, "license": "MIT", "dependencies": { @@ -1685,9 +1685,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001673", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001673.tgz", - "integrity": "sha512-WTrjUCSMp3LYX0nE12ECkV0a+e6LC85E0Auz75555/qr78Oc8YWhEPNfDd6SHdtlCMSzqtuXY0uyEMNRcsKpKw==", + "version": "1.0.30001674", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001674.tgz", + "integrity": "sha512-jOsKlZVRnzfhLojb+Ykb+gyUSp9Xb57So+fAiFlLzzTKpqg8xxSav0e40c8/4F/v9N8QSvrRRaLeVzQbLqomYw==", "dev": true, "funding": [ { @@ -2331,9 +2331,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.47", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.47.tgz", - "integrity": "sha512-zS5Yer0MOYw4rtK2iq43cJagHZ8sXN0jDHDKzB+86gSBSAI4v07S97mcq+Gs2vclAxSh1j7vOAHxSVgduiiuVQ==", + "version": "1.5.49", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.49.tgz", + "integrity": "sha512-ZXfs1Of8fDb6z7WEYZjXpgIRF6MEu8JdeGA0A40aZq6OQbS+eJpnnV49epZRna2DU/YsEjSQuGtQPPtvt6J65A==", "dev": true, "license": "ISC", "peer": true diff --git a/src/types.d.ts b/src/types.d.ts new file mode 100644 index 0000000..3ad4c5b --- /dev/null +++ b/src/types.d.ts @@ -0,0 +1,75 @@ +export interface Settings { + /** + * 总功能开关 + * + * 是否启用此APP修改 + * + * @defaultValue true + */ + Switch?: boolean; + /** + * 强制CDN主机名类型 + * + * 请设置强制返回的CDN主机名类型。 + * + * @remarks + * + * Possible values: + * - `'0'` - IP: 返回远端DNS解析地址(强烈不推荐!严重影响域名分流规则与CDN重定向) + * - `'1'` - HTTP: 返回HTTP域名(推荐,免去重定向时MitM操作) + * - `'2'` - HTTPS: 返回HTTPS域名(不推荐,重定向时需对指定域名启用MitM) + * + * @defaultValue "1" + */ + ForceHost?: '0' | '1' | '2'; + /** + * 启用自动识别与分流功能的地区 + * + * 请选择启用自动识别与分流功能的地区。 + * + * @remarks + * + * Possible values: + * - `'CHN'` - 🇨🇳中国大陆 + * - `'HKG'` - 🇭🇰中国香港 + * - `'MAC'` - 🇲🇴中国澳门 + * - `'TWN'` - 🇹🇼中国台湾 + * + * @defaultValue ["CHN","HKG","TWN"] + */ + Locales?: ('CHN' | 'HKG' | 'MAC' | 'TWN')[]; + Proxies?: { + /** + * [🇨🇳中国大陆] 代理策略名称 + * + * 请填写此地区的代理或策略组名称。 + * + * @defaultValue "DIRECT" + */ + CHN?: string; + /** + * [🇭🇰中国香港] 代理策略名称 + * + * 请填写此地区的代理或策略组名称。 + * + * @defaultValue "🇭🇰香港" + */ + HKG?: string; + /** + * [🇲🇴中国澳门] 代理策略名称 + * + * 请填写此地区的代理或策略组名称。 + * + * @defaultValue "🇲🇴澳门" + */ + MAC?: string; + /** + * [🇹🇼中国台湾] 代理策略名称 + * + * 请填写此地区的代理或策略组名称。 + * + * @defaultValue "🇹🇼台湾" + */ + TWN?: string; +}; +} diff --git a/template/boxjs.settings.json b/template/boxjs.settings.json new file mode 100644 index 0000000..8f99e3c --- /dev/null +++ b/template/boxjs.settings.json @@ -0,0 +1 @@ +[{"id":"@BiliBili.Global.Settings.Switch","name":"总功能开关","type":"boolean","val":true,"desc":"是否启用此APP修改"},{"id":"@BiliBili.Global.Settings.ForceHost","name":"强制CDN主机名类型","type":"selects","val":"1","items":[{"key":"0","label":"IP: 返回远端DNS解析地址(强烈不推荐!严重影响域名分流规则与CDN重定向)"},{"key":"1","label":"HTTP: 返回HTTP域名(推荐,免去重定向时MitM操作)"},{"key":"2","label":"HTTPS: 返回HTTPS域名(不推荐,重定向时需对指定域名启用MitM)"}],"desc":"请设置强制返回的CDN主机名类型。"},{"id":"@BiliBili.Global.Settings.Locales","name":"启用自动识别与分流功能的地区","type":"checkboxes","val":["CHN","HKG","TWN"],"items":[{"key":"CHN","label":"🇨🇳中国大陆"},{"key":"HKG","label":"🇭🇰中国香港"},{"key":"MAC","label":"🇲🇴中国澳门"},{"key":"TWN","label":"🇹🇼中国台湾"}],"desc":"请选择启用自动识别与分流功能的地区。"},{"id":"@BiliBili.Global.Settings.Proxies.CHN","name":"[🇨🇳中国大陆] 代理策略名称","type":"text","val":"DIRECT","desc":"请填写此地区的代理或策略组名称。"},{"id":"@BiliBili.Global.Settings.Proxies.HKG","name":"[🇭🇰中国香港] 代理策略名称","type":"text","val":"🇭🇰香港","desc":"请填写此地区的代理或策略组名称。"},{"id":"@BiliBili.Global.Settings.Proxies.MAC","name":"[🇲🇴中国澳门] 代理策略名称","type":"text","val":"🇲🇴澳门","desc":"请填写此地区的代理或策略组名称。"},{"id":"@BiliBili.Global.Settings.Proxies.TWN","name":"[🇹🇼中国台湾] 代理策略名称","type":"text","val":"🇹🇼台湾","desc":"请填写此地区的代理或策略组名称。"}] \ No newline at end of file diff --git a/template/egern.handlebars b/template/egern.handlebars new file mode 100644 index 0000000..2bef19d --- /dev/null +++ b/template/egern.handlebars @@ -0,0 +1,131 @@ +name: '{{@package 'displayName'}}' +description: '{{inline (@package 'description')}}' +open_url: '{{@package 'openUrl'}}' +author: '{{@package 'contributors'}}' +homepage: '{{@package 'homepage'}}' +icon: '{{@package 'icon'}}' +date: '{{now "yyyy-MM-dd HH:mm:ss"}}' +version: '{{@package 'version'}}' +scriptings: +- http_request: + name: 📺 BiliBili.Global.bangumi.play.html + match: ^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +- http_request: + name: 📺 BiliBili.Global.viewunite.v1.View.grpc + match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' + body_required: true + binary_body: true +- http_response: + name: 📺 BiliBili.Global.viewunite.v1.View.grpc + match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js + arguments: + _compat.$argument: '' + body_required: true + binary_body: true +- http_request: + name: 📺 BiliBili.Global.season.json + match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +- http_response: + name: 📺 BiliBili.Global.season.json + match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js + arguments: + _compat.$argument: '' + body_required: true +- http_request: + name: 📺 BiliBili.Global.playerunite.v1.Player.grpc + match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$ + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' + body_required: true + binary_body: true +- http_request: + name: 📺 BiliBili.Global.player.v2.PlayURL.grpc + match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$ + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' + body_required: true + binary_body: true +- http_request: + name: 📺 BiliBili.Global.player.playurl.json + match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +- http_request: + name: 📺 BiliBili.Global.player.v2.playurl.json + match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +- http_request: + name: 📺 BiliBili.Global.search.html + match: ^https?:\/\/search\.bilibili\.com\/all\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: ' +- http_request: + name: 📺 BiliBili.Global.search.grpc + match: ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$ + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' + body_required: true + binary_body: true +- http_request: + name: 📺 BiliBili.Global.search.app.json + match: ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +- http_request: + name: 📺 BiliBili.Global.search.wbi.json + match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +- http_request: + name: 📺 BiliBili.Global.search.pc.json + match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/search\/(all\/v2|type)\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +- http_request: + name: 📺 BiliBili.Global.space.app.json + match: ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/space\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +- http_request: + name: 📺 BiliBili.Global.space.wbi.json + match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/wbi\/acc\/info\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +- http_request: + name: 📺 BiliBili.Global.space.pc.json + match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/acc\/info\? + script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js + arguments: + _compat.$argument: '' +mitm: + hostnames: + - www.bilibili.com + - search.bilibili.com + - app.bilibili.com + - app.biliapi.net + - api.bilibili.com + - api.biliapi.net + - grpc.biliapi.net diff --git a/template/loon.handlebars b/template/loon.handlebars index 85244b6..b3df333 100644 --- a/template/loon.handlebars +++ b/template/loon.handlebars @@ -18,23 +18,23 @@ http-request ^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/? requir http-request ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ requires-body=1, binary-body-mode=1, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.viewunite.v1.View.grpc, argument={{{scriptParams}}} http-response ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ requires-body=1, binary-body-mode=1, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js, tag=📺 BiliBili.Global.viewunite.v1.View.grpc, argument={{{scriptParams}}} -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.season.json, argument={{{scriptParams}}} +http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.season.json, argument={{{scriptParams}}} http-response ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? requires-body=1, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js, tag=📺 BiliBili.Global.season.json, argument={{{scriptParams}}} http-request ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$ requires-body=1, binary-body-mode=1, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.playerunite.v1.Player.grpc, argument={{{scriptParams}}} http-request ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$ requires-body=1, binary-body-mode=1, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.player.v2.PlayURL.grpc, argument={{{scriptParams}}} -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.player.playurl.json, argument={{{scriptParams}}} -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.player.v2.playurl.json, argument={{{scriptParams}}} +http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.player.playurl.json, argument={{{scriptParams}}} +http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.player.v2.playurl.json, argument={{{scriptParams}}} -http-request ^https?:\/\/search\.bilibili\.com\/all\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.search.html, argument={{{scriptParams}}} +http-request ^https?:\/\/search\.bilibili\.com\/all\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.search.html, argument={{{scriptParams}}} http-request ^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$ requires-body=1, binary-body-mode=1, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.search.grpc, argument={{{scriptParams}}} -http-request ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.search.app.json, argument={{{scriptParams}}} -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.search.wbi.json, argument={{{scriptParams}}} -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/search\/(all\/v2|type)\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.search.pc.json, argument={{{scriptParams}}} +http-request ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.search.app.json, argument={{{scriptParams}}} +http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.search.wbi.json, argument={{{scriptParams}}} +http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/search\/(all\/v2|type)\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.search.pc.json, argument={{{scriptParams}}} -http-request ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/space\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.space.app.json, argument={{{scriptParams}}} -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/wbi\/acc\/info\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.space.wbi.json, argument={{{scriptParams}}} -http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/acc\/info\? requires-body=0, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.space.pc.json, argument={{{scriptParams}}} +http-request ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/space\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.space.app.json, argument={{{scriptParams}}} +http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/wbi\/acc\/info\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.space.wbi.json, argument={{{scriptParams}}} +http-request ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/acc\/info\? script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.space.pc.json, argument={{{scriptParams}}} [MitM] hostname = www.bilibili.com, app.bilibili.com, app.biliapi.net, search.bilibili.com, api.bilibili.com, api.global.bilibili.com, api.biliapi.net, grpc.biliapi.net diff --git a/template/shadowrocket.handlebars b/template/shadowrocket.handlebars new file mode 100644 index 0000000..ea90cb3 --- /dev/null +++ b/template/shadowrocket.handlebars @@ -0,0 +1,36 @@ +#!name = {{@package 'displayName'}} +#!desc = {{inline (@package 'description')}} +#!openUrl = {{@package 'openUrl'}} +#!author = {{@package 'contributors'}} +#!homepage = {{@package 'homepage'}} +#!icon = {{@package 'icon'}} +#!category = {{@package 'organizationName'}} +#!date = {{now "yyyy-MM-dd HH:mm:ss"}} +#!version = {{@package 'version'}} + +[Script] +📺 BiliBili.Global.bangumi.play.html = type=http-request, pattern=^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument= + +📺 BiliBili.Global.viewunite.v1.View.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument= +📺 BiliBili.Global.viewunite.v1.View.grpc = type=http-response, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$, requires-body=1, binary-body-mode=1, engine=webview, max-size=262144, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js, argument= +📺 BiliBili.Global.season.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument= +📺 BiliBili.Global.season.json = type=http-response, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\?, requires-body=1, engine=webview, max-size=262144, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js, argument= + +📺 BiliBili.Global.playerunite.v1.Player.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= +📺 BiliBili.Global.player.v2.PlayURL.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= +📺 BiliBili.Global.player.playurl.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument= +📺 BiliBili.Global.player.v2.playurl.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument= + +📺 BiliBili.Global.search.html = type=http-request, pattern=^https?:\/\/search\.bilibili\.com\/all\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= +📺 BiliBili.Global.search.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= +📺 BiliBili.Global.search.app.json = type=http-request, pattern=^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= +📺 BiliBili.Global.search.wbi.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= +📺 BiliBili.Global.search.pc.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/search\/(all\/v2|type)\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= + +📺 BiliBili.Global.space.app.json = type=http-request, pattern=^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/space\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= +📺 BiliBili.Global.space.wbi.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/wbi\/acc\/info\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= +📺 BiliBili.Global.space.pc.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/acc\/info\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= + +[MITM] +hostname = %APPEND% www.bilibili.com, search.bilibili.com, app.bilibili.com, app.biliapi.net, api.bilibili.com, api.biliapi.net, grpc.biliapi.net +h2 = true diff --git a/template/surge.handlebars b/template/surge.handlebars index 29498c8..af13b40 100644 --- a/template/surge.handlebars +++ b/template/surge.handlebars @@ -10,23 +10,20 @@ #!arguments = {{{arguments}}} #!arguments-desc = {{{argumentsDesc}}} -#!arguments=Locales:"CHN,HKG,TWN",Proxies.CHN:DIRECT,Proxies.HKG:🇭🇰香港,Proxies.MAC:🇲🇴澳门,Proxies.TWN:🇹🇼台湾 -#!arguments-desc=Locales: 启用自动识别和分类功能的地区(多选)\n ├ CHN: 🇨🇳中国大陆\n ├ HKG: 🇭🇰中国香港\n ├ MAC: 🇲🇴中国澳门\n └ TWN: 🇼🇸中国台湾\n\nProxies.CHN: [🇨🇳中国大陆]代理或策略组选择\nProxies.HKG: [🇭🇰中国香港]代理或策略组选择\nProxies.MAC: [🇲🇴中国澳门]代理或策略组选择\nProxies.TWN: [🇼🇸中国台湾]代理或策略组选择 - [Script] -📺 BiliBili.Global.bangumi.play.html = type=http-request, pattern=^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument={{{scriptParams}}} +📺 BiliBili.Global.bangumi.play.html = type=http-request, pattern=^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/?, engine=webview, ability=http-client-policy, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} -📺 BiliBili.Global.viewunite.v1.View.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument={{{scriptParams}}} +📺 BiliBili.Global.viewunite.v1.View.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$, requires-body=1, binary-body-mode=1, engine=webview, ability=http-client-policy, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} 📺 BiliBili.Global.viewunite.v1.View.grpc = type=http-response, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$, requires-body=1, binary-body-mode=1, engine=webview, max-size=262144, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js, argument={{{scriptParams}}} -📺 BiliBili.Global.season.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument={{{scriptParams}}} +📺 BiliBili.Global.season.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\?, engine=webview, ability=http-client-policy, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} 📺 BiliBili.Global.season.json = type=http-response, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\?, requires-body=1, engine=webview, max-size=262144, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js, argument={{{scriptParams}}} 📺 BiliBili.Global.playerunite.v1.Player.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} 📺 BiliBili.Global.player.v2.PlayURL.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} -📺 BiliBili.Global.player.playurl.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument={{{scriptParams}}} -📺 BiliBili.Global.player.v2.playurl.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, ability=http-client-policy, argument={{{scriptParams}}} +📺 BiliBili.Global.player.playurl.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\?, engine=webview, ability=http-client-policy, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} +📺 BiliBili.Global.player.v2.playurl.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\?, engine=webview, ability=http-client-policy, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} -📺 BiliBili.Global.search.html = type=http-request, pattern=^https?:\/\/search\.bilibili\.com\/all\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument= +📺 BiliBili.Global.search.html = type=http-request, pattern=^https?:\/\/search\.bilibili\.com\/all\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} 📺 BiliBili.Global.search.grpc = type=http-request, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} 📺 BiliBili.Global.search.app.json = type=http-request, pattern=^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} 📺 BiliBili.Global.search.wbi.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\?, engine=webview, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}}