From 771e351d2373ebe6890a53bf49f31eb9214bff8b Mon Sep 17 00:00:00 2001 From: Virgil Clyne Date: Mon, 29 Apr 2024 14:12:26 +0800 Subject: [PATCH] docs(modules): rename --- modules/BiliBili.Redirect.V2.beta.sgmodule | 19 +++++++++++++++++++ modules/BiliBili.Redirect.beta.sgmodule | 18 +++++++++++++----- 2 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 modules/BiliBili.Redirect.V2.beta.sgmodule diff --git a/modules/BiliBili.Redirect.V2.beta.sgmodule b/modules/BiliBili.Redirect.V2.beta.sgmodule new file mode 100644 index 0000000..4c56ee0 --- /dev/null +++ b/modules/BiliBili.Redirect.V2.beta.sgmodule @@ -0,0 +1,19 @@ +#!name=📺 BiliBili: 🔀 Redirect β +#!desc=(BETA)\n哔哩哔哩:重定向(自定义 CDN) +#!openUrl=http://boxjs.com/#/app/BiliBili.Redirect +#!author=VirgilClyne +#!homepage=https://redirect.biliuniverse.io +#!manual=https://manual.biliuniverse.io +#!icon=https://github.com/BiliUniverse/Redirect/raw/main/src/assets/icon_rounded_108x.png +#!category=📺 BiliUniverse +#!arguments=Host.Akamaized:upos-sz-mirrorali.bilivideo.com,Host.BStar:upos-sz-mirrorali.bilivideo.com,Host.PCDN:upos-sz-mirrorali.bilivideo.com +#!arguments-desc=Host.Akamaized: 重定向港澳台 CDN 主机名\nHost.BStar: 重定向国际版 CDN 主机名\nHost.PCDN: 重定向 PCDN 主机名 + +[Script] +BiliBili.Global.playerunite.v1.Player.grpc = type=http-response, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$, requires-body=1, binary-body-mode=1, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.response.beta.js, argument= +BiliBili.Global.player.v2.PlayURL.grpc = type=http-response, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$, requires-body=1, binary-body-mode=1, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.response.beta.js, argument= +BiliBili.Global.player.playurl.json = type=http-response, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\?, requires-body=1, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.response.beta.js, argument= +BiliBili.Global.player.v2.playurl.json = type=http-response, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\?, requires-body=1, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.response.beta.js, argument= + +[MITM] +hostname = %APPEND% app.bilibili.com, app.biliapi.net, api.bilibili.com, api.biliapi.net, grpc.biliapi.net diff --git a/modules/BiliBili.Redirect.beta.sgmodule b/modules/BiliBili.Redirect.beta.sgmodule index 4c56ee0..53a03a7 100644 --- a/modules/BiliBili.Redirect.beta.sgmodule +++ b/modules/BiliBili.Redirect.beta.sgmodule @@ -9,11 +9,19 @@ #!arguments=Host.Akamaized:upos-sz-mirrorali.bilivideo.com,Host.BStar:upos-sz-mirrorali.bilivideo.com,Host.PCDN:upos-sz-mirrorali.bilivideo.com #!arguments-desc=Host.Akamaized: 重定向港澳台 CDN 主机名\nHost.BStar: 重定向国际版 CDN 主机名\nHost.PCDN: 重定向 PCDN 主机名 +[General] +# > TCP Force HTTP Hosts +# 让 Surge 把 TCP 连接当作 HTTP 请求来处理。Surge HTTP 引擎将处理这些请求,所有的高级功能,如捕获、重写和脚本等都可以使用。 +force-http-engine-hosts = %APPEND% *.mcdn.bilivideo.cn:486, *:4480, *.mcdn.bilivideo.cn:4483, *:8000, *:8082, *.mcdn.bilivideo.cn:9102 + [Script] -BiliBili.Global.playerunite.v1.Player.grpc = type=http-response, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$, requires-body=1, binary-body-mode=1, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.response.beta.js, argument= -BiliBili.Global.player.v2.PlayURL.grpc = type=http-response, pattern=^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$, requires-body=1, binary-body-mode=1, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.response.beta.js, argument= -BiliBili.Global.player.playurl.json = type=http-response, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\?, requires-body=1, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.response.beta.js, argument= -BiliBili.Global.player.v2.playurl.json = type=http-response, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\?, requires-body=1, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.response.beta.js, argument= +BiliBili.Redirect.CDN.upgcxcode.m4s = type=http-request, pattern=^https?:\/\/.+\.bilivideo\.com\/upgcxcode\/, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.request.beta.js, argument= +BiliBili.Redirect.MCDN.live-bvc.m4s = type=http-request, pattern=^https?:\/\/[xy0-9]+\.mcdn\.bilivideo\.cn:486\/live-bvc\/, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.request.beta.js, argument= +BiliBili.Redirect.MCDN.v1.resource.m4s = type=http-request, pattern=^https?:\/\/(.+):(8000|8082)\/v1\/resource\/, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.request.beta.js, argument= +BiliBili.Redirect.MCDN.upgcxcode.m4s = type=http-request, pattern=^https?:\/\/[xy0-9]+\.mcdn\.bilivideo\.cn:(4483|9102)\/upgcxcode\/, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.request.beta.js, argument= +BiliBili.Redirect.PCDN.upgcxcode.m4s = type=http-request, pattern=^https?:\/\/(.+):4480\/upgcxcode\/, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.request.beta.js, argument=Host.PCDN={{{Host.PCDN}}} +BiliBili.Redirect.PCDN.upgcxcode.m4s = type=http-request, pattern=^https?:\/\/(.+)\.v1d\.szbdyd\.com:9305\/([^/]+)\/upgcxcode\/, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.request.beta.js, argument=Host.PCDN={{{Host.PCDN}}} +BiliBili.Redirect.Akamaized.upgcxcode.m4s = type=http-request, pattern=^https?:\/\/upos-(hz|bstar1)-mirrorakam\.akamaized\.net\/upgcxcode\/, engine=webview, debug=1, script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/beta/js/BiliBili.Redirect.request.beta.js, argument=Host.Akamaized={{{Host.Akamaized}}} [MITM] -hostname = %APPEND% app.bilibili.com, app.biliapi.net, api.bilibili.com, api.biliapi.net, grpc.biliapi.net +hostname = %APPEND% *.mcdn.bilivideo.cn, upos-sz-mirror*bstar1.bilivideo.com, upos-*-mirrorakam.akamaized.net