Chrome Extension Bilibili CDN Switcher Boosts Overseas Streaming Speed from 200 kbps to 6-7 Mbps
English summary
A developer built a Chrome extension called Bilibili CDN Switcher that lets overseas users manually switch Bilibili's CDN nodes to improve video loading. The extension intercepts network requests, replaces default CDN domains using regex and DNR, and employs a service worker to measure and select the fastest node. In the author's tests, speed jumped from around 200 kbps to 6–7 Mbps, though preloading a video takes a few extra seconds for node verification. The project is open-source on GitHub and available on the Chrome Web Store.
Chinese summary
开发者制作了一款名为 Bilibili CDN Switcher 的 Chrome 扩展,允许海外用户手动切换 B 站 CDN 节点以提升视频加载速度。该扩展通过拦截网络请求、利用正则和 DNR 替换默认 CDN 域名,并使用 Service Worker 测速选出最优节点。作者测试中速度从约 200kbps 提升至 6-7Mbps,但初次预加载需额外几秒进行节点校验。项目已在 GitHub 开源,并上架 Chrome 网上应用店。
Key points
Extension lets overseas users manually select Bilibili CDN nodes.
扩展允许海外用户手动选择B站CDN节点。
Video loading speed improved from ~200 kbps to 6-7 Mbps in the developer’s tests.
开发者测试中视频加载速度从约200kbps提升至6-7Mbps。
Uses request interception, domain rewriting, DNR redirection, and service worker scheduling.
采用请求拦截、域名替换、DNR重定向和Service Worker调度技术。
Open-source on GitHub and published on Chrome Web Store.
在GitHub开源并已上架Chrome扩展商店。