Skip to content

Commit

Permalink
feat(modules)
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed May 8, 2024
1 parent 8f13c01 commit 492e10f
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 1 deletion.
21 changes: 21 additions & 0 deletions modules/BiliBili.Redirect.plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!name=📺 BiliBili: 🔀 Redirect
#!desc=哔哩哔哩:重定向(自定义 CDN)
#!author=VirgilClyne
#!icon=https://github.com/BiliUniverse/Redirect/raw/main/src/assets/icon_rounded_108x.png
#!category=📺 BiliUniverse
#!openUrl=http://boxjs.com/#/app/BiliBili.Redirect
#!homepage=https://redirect.biliuniverse.io
#!manual=https://manual.biliuniverse.io

[General]
force-http-engine-hosts = *:4480, *.mcdn.bilivideo.cn:4483, *:8000, *:8082, *.mcdn.bilivideo.cn:9102

[Script]
http-request ^https?:\/\/.+\.bilivideo\.com\/upgcxcode\/ script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/main/js/BiliBili.Redirect.request.js, tag=BiliBili.Redirect.CDN.upgcxcode.m4s
http-request ^https?:\/\/(.+):(8000|8082)\/v1\/resource\/ script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/main/js/BiliBili.Redirect.request.js, tag=BiliBili.Redirect.MCDN.v1.resource.m4s, argument=Host.MCDN=proxy-tf-all-ws.bilivideo.com
http-request ^https?:\/\/[xy0-9]+\.mcdn\.bilivideo\.(cn|com):(4483|9102)\/upgcxcode\/ script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/main/js/BiliBili.Redirect.request.js, tag=BiliBili.Redirect.MCDN.upgcxcode.m4s, argument=Host.MCDN=proxy-tf-all-ws.bilivideo.com
http-request ^https?:\/\/(.+):4480\/upgcxcode\/ script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/main/js/BiliBili.Redirect.request.js, tag=BiliBili.Redirect.PCDN.upgcxcode.m4s, argument=Host.PCDN=upos-sz-mirrorali.bilivideo.com
http-request ^https?:\/\/upos-(hz|bstar1)-mirrorakam\.akamaized\.net/upgcxcode\/ script-path=https://raw.githubusercontent.com/BiliUniverse/Redirect/main/js/BiliBili.Redirect.request.js, tag=BiliBili.Redirect.Akamaized.upgcxcode.m4s, argument=Host.Akamaized=upos-sz-mirrorali.bilivideo.com

[MITM]
hostname = *.mcdn.bilivideo.cn, upos-sz-mirror*bstar1.bilivideo.com, upos-*-mirrorakam.akamaized.net
2 changes: 1 addition & 1 deletion modules/BiliBili.Redirect.sgmodule
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!name=📺 BiliBili: 🔀 Redirect
#!desc=哔哩哔哩:重定向(自定义 CDN)
#!openUrl=http://boxjs.com/#/app/BiliBili.Redirect.beta
#!openUrl=http://boxjs.com/#/app/BiliBili.Redirect
#!author=VirgilClyne
#!homepage=https://redirect.biliuniverse.io
#!manual=https://manual.biliuniverse.io
Expand Down
52 changes: 52 additions & 0 deletions modules/BiliBili.Redirect.stoverride
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "📺 BiliBili: 🔀 Redirect"
desc: |-
哔哩哔哩:重定向(自定义 CDN)
author: "VirgilClyne"
icon: "https://github.com/BiliUniverse/Redirect/raw/main/src/assets/icon_rounded_108x.png"
category: 📺 BiliUniverse
openUrl: "http://boxjs.com/#/app/BiliBili.Redirect"
homepage: "https://redirect.biliuniverse.io"
manual: "https://manual.biliuniverse.io"

http:
force-http-engine:
- "*.bilivideo.cn:80"
- "*.bilivideo.com:80"
- upos-hz-mirrorakam.akamaized.net:80
- "*:4480"
- "*:8000"
- "*:8082"
- "*.mcdn.bilivideo.cn:9102"
mitm:
- "*.bilivideo.cn:443"
- "*.bilivideo.com:443"
- "*.mcdn.bilivideo.com:4483"
- "*.mcdn.bilivideo.cn:4483"
- "*.mcdn.bilivideo.cn:8082"
- "*.mcdn.bilivideo.com:8082"
- "upos-*-mirrorakam.akamaized.net:443"
script:
- match: ^https?:\/\/.+\.bilivideo\.com\/upgcxcode\/
name: "BiliBili.Redirect.request"
type: request
- match: ^https?:\/\/(.+):(8000|8082)\/v1\/resource\/
name: "BiliBili.Redirect.request"
type: request
argument:
- match: ^https?:\/\/[xy0-9]+\.mcdn\.bilivideo\.(cn|com):(4483|9102)\/upgcxcode\/
name: "BiliBili.Redirect.request"
type: request
argument:
- match: ^https?:\/\/(.+):4480\/upgcxcode\/
name: "BiliBili.Redirect.request"
type: request
argument:
- match: ^https?:\/\/upos-(hz|bstar1)-mirrorakam\.akamaized\.net/upgcxcode\/
name: "BiliBili.Redirect.request"
type: request
argument:
script-providers:
"BiliBili.Redirect.request":
url: https://raw.githubusercontent.com/BiliUniverse/Redirect/main/js/BiliBili.Redirect.request.js
interval: 86400

0 comments on commit 492e10f

Please sign in to comment.