Switch Bilibili Video CDN to Improve Loading Speed
This script completely solves the slow loading speed of some CDN like upos-sz-mirroraliov.bilivideo.com
and upos-hz-mirrorakam.akamaized.net
in mainland China (when remove Bilibili region restrictions and watch anime exclusive to Hong Kong, Macau, and Taiwan)
Instructions:
- The script will run automatically when you visit a Bilibili anime or video page.
- Click the settings button in the bottom right corner of the player and select more playback settings.
- In the more playback settings, find the option "CDN Switcher" or similar (depending on the language settings, as shown in the picture below).
- Check or uncheck the option to enable or disable the script function.
Custom CDN Address:
If the built-in CDN addresses of the script are not working well, you can try to find the CustomCDN variable in the script code and modify its value to the CDN address you want to use. (The CDN address can be seen in the Video Host
and Audio Host
fields after right-clicking the player and opening the video statistics information.)
The following are some CDN domain names, you can test the speed and replace them yourself:
["upos-sz-mirrorcos.bilivideo.com", "upos-sz-mirrorcosb.bilivideo.com", "upos-sz-mirrorbos.bilivideo.com", "upos-sz-mirrorhw.bilivideo.com", "upos-sz-mirrorhwb.bilivideo.com", "upos-sz-upcdnbda2.bilivideo.com", "upos-sz-upcdnws.bilivideo.com", "upos-hz-mirrorakam.akamaized.net", "upos-sz-mirrorali.bilivideo.com", "upos-sz-mirroraliov.bilivideo.com", "upos-sz-mirror08h.bilivideo.com"]
(Copied from bilibili-video-cdn, the domain name that has stopped resolving has been deleted)
upos-sz-mirroralib.bilivideo.com
upos-sz-mirror08c.bilivideo.com
xy183x232x115x201xy.mcdn.bilivideo.cn:4483
cn-jxnc-cmcc-bcache-06.bilivideo.com
Subdomain List for bilivideo.com
: ip138
Precautions:
If you are not using a proxy service, the CDN server directly obtained from Bilibili should be the fastest.
This script is for personal use only and should not be used for commercial purposes. The author of the script is not responsible for the use of the script.
Bilibili may change the website structure, causing the script to fail.
This script currently supports Chinese (Simplified and Traditional), English, and Japanese.