Skip to content

Instantly share code, notes, and snippets.

@knight42
Last active November 18, 2025 22:34
Show Gist options
  • Select an option

  • Save knight42/dd5b8cb8000b803b6db8ca3bd1589465 to your computer and use it in GitHub Desktop.

Select an option

Save knight42/dd5b8cb8000b803b6db8ca3bd1589465 to your computer and use it in GitHub Desktop.
Surge/Shadowrocket modules
#!name=解锁移动端B站视频的地区限制
#!date = 2025-11-16 00:00:00
#!version = 0.0.2
[Rule]
# 以下规则只对网页端有效
# DOMAIN,www.bilibili.com,HK
DOMAIN,httpdns.bilivideo.com,HK,pre-matching
DOMAIN,grpc.biliapi.net,HK,pre-matching
#!name=优化 B 站使用的 CDN
#!desc=禁止 B 站使用 PCDN 和 MCDN,提升视频加载速度
#!version = 0.0.2
# See also https://lainbo.dev/bilibili-play-optimization
[Rule]
DOMAIN-SUFFIX,mcdn.bilivideo.com,REJECT,pre-matching
DOMAIN-SUFFIX,mcdn.bilivideo.cn,REJECT,pre-matching
DOMAIN-SUFFIX,szbdyd.com,REJECT,pre-matching
#海外比较慢
DOMAIN-SUFFIX,upos-hz-mirrorakam.akamaized.net,REJECT,pre-matching

Comments are disabled for this gist.