Skip to content

Commit

Permalink
fix(template): url_regex
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Nov 1, 2024
1 parent 9211e1e commit 43e07f0
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
10 changes: 5 additions & 5 deletions template/egern.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ scriptings:
_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$
match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/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$
match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.app\.viewunite\.v1\.View\/View$
script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js
arguments:
_compat.$argument: ''
Expand All @@ -44,15 +44,15 @@ scriptings:
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$
match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/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$
match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/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: ''
Expand All @@ -78,7 +78,7 @@ scriptings:
_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)$
match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/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: ''
Expand Down
10 changes: 5 additions & 5 deletions template/loon.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
[Script]
http-request ^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/? requires-body=1, script-path=https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js, tag=📺 BiliBili.Global.bangumi.play.html, argument={{{scriptParams}}}

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?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/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|app)\.bili(bili\.com|api\.net)\/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\? 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?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/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|app)\.bili(bili\.com|api\.net)\/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)?\? 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\? 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?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/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)?\? 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}}}
Expand Down
10 changes: 5 additions & 5 deletions template/quantumultx.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/? url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.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://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.viewunite\.v1\.View\/View$ url script-response-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js
^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.app\.viewunite\.v1\.View\/View$ url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.app\.viewunite\.v1\.View\/View$ url script-response-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js
# 📺 BiliBili.Global.season.json
^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? url script-response-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js

# 📺 BiliBili.Global.playerunite.v1.Player.grpc
^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$ url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$ url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
# 📺 BiliBili.Global.player.v2.PlayURL.grpc
^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$ url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$ url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
# 📺 BiliBili.Global.player.playurl.json
^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\? url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
# 📺 BiliBili.Global.player.v2.playurl.json
Expand All @@ -31,7 +31,7 @@
# 📺 BiliBili.Global.search.html
^https?:\/\/search\.bilibili\.com\/all\? url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
# 📺 BiliBili.Global.search.grpc
^https?:\/\/(grpc\.biliapi\.net|app\.bilibili\.com)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$ url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$ url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
# 📺 BiliBili.Global.search.app.json
^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\? url script-request-body https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js
# 📺 BiliBili.Global.search.wbi.json
Expand Down
10 changes: 5 additions & 5 deletions template/shadowrocket.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
[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.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.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.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.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.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=
Expand Down
Loading

0 comments on commit 43e07f0

Please sign in to comment.