BiliBoost
A Bilibili userscript for overseas connections. It tests CDN nodes and combines parallel downloads to reduce buffering.
- Type
- Personal Tool
- Year
- 2026
- Role
- Solo developer
- Stack
- JavaScript, Tampermonkey, Streams API
Overview
Bilibili’s support overseas has always been poor. Watching for one second, then buffering for five, is common, which is simply unacceptable for video. Some people never run into this, and I don’t know why. Anyway, I ran into it, so I set out to fix it.
BiliBoost is a JavaScript userscript for people who watch Bilibili from overseas. It tests CDN nodes, splits media requests into byte ranges and fetches them in parallel. The browser then reassembles the ranges into one stream for the player.
Selecting and combining nodes
Each candidate is tested at two points in the file, near the beginning and at a deeper offset. This helps identify nodes that have cached the opening segment but cannot serve the rest of the video.
Large requests can use up to four nodes at once. The stream applies backpressure to control how much data is buffered. Slow or missing ranges can be fetched from another node, while stalled requests fall back to the next candidate. Preferred nodes are warmed in the background for later segments.
Playback and diagnostics
A floating throughput indicator expands into overview, node, diagnostic and settings views. It shows buffer state, active connections and node test results. Users can select a node manually or export a diagnostic report. The theme follows the page.
In July 2026, I tested twelve videos from the US West Coast. A single stream ran at roughly 2 Mbps, and parallel fetching reached 22–103 Mbps. The network data in the screenshots is simulated.
Using the script
Install Tampermonkey
Add the Tampermonkey extension to your browser.
Add BiliBoost
Use the install button to add the userscript. It starts automatically when a Bilibili video plays.
Check the panel
Open the floating throughput indicator to inspect nodes, run a speed test or export diagnostics. Settings are saved in the browser.