Skip to content

Commit

Permalink
fix(template): Surge & ShadowRocket
Browse files Browse the repository at this point in the history
Update surge.handlebars
Update shadowrocket.handlebars
Update CHANGELOG.md
  • Loading branch information
VirgilClyne committed Nov 5, 2024
1 parent 349a0e1 commit d3e808f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
### 🛠️ Bug Fixes
* 修复`Quantumult X``shadowrocket`兼容性
* 修复 `Surge` 模块`脚本引擎`设置
24 changes: 12 additions & 12 deletions template/shadowrocket.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
#!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.bangumi.play.html = type=http-request, pattern=^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/?, 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|app)\.bili(bili\.com|api\.net)\/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|app)\.bili(bili\.com|api\.net)\/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.season.json = type=http-request, pattern=^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, 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, 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|app)\.bili(bili\.com|api\.net)\/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|app)\.bili(bili\.com|api\.net)\/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.player.playurl.json = type=http-request, pattern=^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, 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\?, 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.html = type=http-request, pattern=^https?:\/\/search\.bilibili\.com\/all\?, 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|app)\.bili(bili\.com|api\.net)\/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.search.app.json = type=http-request, pattern=^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, 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)\?, 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)\?, 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=
📺 BiliBili.Global.space.app.json = type=http-request, pattern=^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, argument=
📺 BiliBili.Global.space.wbi.json = type=http-request, pattern=^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, argument=
📺 BiliBili.Global.space.pc.json = type=http-request, pattern=^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, 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
Expand Down
24 changes: 12 additions & 12 deletions template/surge.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@
#!arguments-desc = {{{argumentsDesc}}}

[Script]
📺 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.bangumi.play.html = type=http-request, pattern=^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/?, 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|app)\.bili(bili\.com|api\.net)\/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|app)\.bili(bili\.com|api\.net)\/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, 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.season.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\?, 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, 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|app)\.bili(bili\.com|api\.net)\/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|app)\.bili(bili\.com|api\.net)\/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, 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.player.playurl.json = type=http-request, pattern=^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\?, 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\?, 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={{{scriptParams}}}
📺 BiliBili.Global.search.html = type=http-request, pattern=^https?:\/\/search\.bilibili\.com\/all\?, 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|app)\.bili(bili\.com|api\.net)\/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}}}
📺 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={{{scriptParams}}}
📺 BiliBili.Global.search.app.json = type=http-request, pattern=^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, 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)\?, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}}
📺 BiliBili.Global.search.pc.json = type=http-request, pattern=^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, argument={{{scriptParams}}}

📺 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={{{scriptParams}}}
📺 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={{{scriptParams}}}
📺 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={{{scriptParams}}}
📺 BiliBili.Global.space.app.json = type=http-request, pattern=^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, argument={{{scriptParams}}}
📺 BiliBili.Global.space.wbi.json = type=http-request, pattern=^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, argument={{{scriptParams}}}
📺 BiliBili.Global.space.pc.json = type=http-request, pattern=^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, argument={{{scriptParams}}}

[MITM]
hostname = %APPEND% www.bilibili.com, search.bilibili.com, app.bilibili.com, app.biliapi.net, api.bilibili.com, api.biliapi.net, grpc.biliapi.net
Expand Down

0 comments on commit d3e808f

Please sign in to comment.