Version 0.5.0 of the Bilibili accelerator deleted its own heuristics
Safari-friendly Bilibili CDN accelerator for smoother overseas playback.
At a glance
- What is it?
- A userscript that improves overseas playback on the web player by measuring segment throughput and switching lines. Its newest release is mostly a removal, with the reasoning written down.
- Who is it for?
- Use this script if you play Bilibili in a browser from outside the region and popular videos work while niche ones stall, since that asymmetry is the specific case it targets. Before you report a problem, check that the lightning mark appears at all, because a missing mark is usually a browser permission rather than a bug.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 44 days ago.
- What is it written in?
- Mainly JavaScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- realzza/bilibili-accelerator644 ★ · +134
| Repository | 2026-09-18 | 2026-11-25 |
|---|---|---|
| realzza/bilibili-accelerator | 510 | 644 |
134 Stars in the last 68 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The newest release is three deletions with reasons attached
The release notes for the current version are unusual in that most of the entry explains what was removed and why. Routing is now decided by measurement rather than by a stored opinion. Three mechanisms were dropped. Page-load speed testing is gone, because it only read the beginning of the file and therefore measured round-trip latency rather than throughput. The six-hour ranking cache is gone, because the ranking applied to every video uniformly, while the same line can differ by more than a factor of ten in speed between a popular video and a niche one. And rotation on stutter is gone, because rotating repeatedly drifts toward the lines sitting at the end of a ranking that was itself wrong. What replaces them is a per-segment decision: measure what the player actually downloads, and only switch when the current line is measurably worse on the data about to be requested.
A stuck segment is rerouted without switching the video
The switching logic has two cases and the difference between them is the interesting part. If a segment times out, it is immediately retried on the new line through the player's own timeout path. But if the original line had been fast before, then only that one segment is moved and the video does not switch lines at all. That is a deliberately conservative rule: a single stall is treated as a segment problem rather than as evidence about the line. The panel also states which line you are on at all times, distinguishing the native line the platform assigned for that video from a line you were switched to. The real-time throughput figure is confined to a card below the status area rather than shown everywhere. When you want to try alternatives yourself, a manual action compares a few lines immediately, switches only when one is clearly faster, saves nothing, and does not reload the page.
Bandwidth protection is off by default and slow to activate
One setting in the advanced panel is a network guard rather than a playback feature. Bandwidth protection is disabled by default. When you turn it on, it limits how much of your upload bandwidth the page may consume, which matters if you are sharing a connection or on a link with a slow upstream. The catch is stated plainly: it takes effect only after you refresh the page. So enabling it is a two-step action, and someone who turns it on and concludes it did nothing has probably just not refreshed. This is the only setting in the panel described as needing a reload, which suggests the rest of the configuration applies immediately. The panel otherwise adapts its light and dark appearance to the system until you touch the control at the top, after which it follows your explicit choice.
Three install routes, and Safari needs a different extension
On the Chromium browsers and Firefox you install a userscript manager first, then install the script from a script-hosting page, from a direct script file, from a raw repository address, or from the release page. The script-hosting page is the recommended one because it updates itself. On Safari there is no such manager, so the guide points at a separate extension from the App Store with three steps: install the extension, enable it in the browser settings and grant it access to the site, then open one of the same addresses to complete the installation. Either way you refresh already-open pages afterwards, and a lightning mark appearing in the lower right corner is the signal that the script is live. The third route skips the manager entirely: the repository builds into a browser extension, and you load the unpacked build from the extensions page with developer mode enabled.
A missing icon is a browser permission, not a bug
The troubleshooting section leads with the right diagnosis for the most common failure. If the mark never appears and the script manager says the script has not run yet, or asks you to allow user scripts, then the newer extension permission model is the cause: the browser requires you to grant injection once, and the note says explicitly that this is unrelated to the script itself. Two sets of instructions follow, and they are not identical. On one browser you open the extensions page, go into the manager's details, and enable the toggle that permits user scripts, falling back to developer mode if that toggle does not exist. On the other you must enable developer mode first and then find the same toggle, and if it is genuinely absent the note concludes the browser is too old and should be updated. That distinction is worth reading rather than skipping.
The build output is committed and checked against the source
The development workflow is two commands and one unusual constraint:
npm test
npm run buildThe build produces two artefacts:
dist/bilibili-accelerator.user.js
dist/extension/The unusual part is that the build output directory is committed to the repository, and continuous integration checks that it matches the source. So a change to the source without a rebuild fails the check rather than being quietly shipped stale. The version number is maintained in one place only, in the manifest, and the build script propagates it into both the userscript header and the extension manifest, which removes the usual class of bug where those three drift apart. The test command uses the runtime's own test runner with no test framework dependency, and a prepare hook runs the build, so a fresh install of dependencies builds the artefacts for you.
The diagnostic report leaves signed URLs out on purpose
When something is still stalling, the panel offers to copy a diagnostic report, and the instructions ask you to attach it with the video address, your region and the specific symptom. What the report contains is stated precisely: only the necessary diagnostic information, and explicitly not the full media addresses with their signature parameters. Those parameters are the reason. A signed media address is a credential that grants access to that specific video stream for a limited window, so including one in a public issue would publish a working link rather than a diagnostic. Getting the balance right matters for a project whose users are already dealing with a region-locked catalogue. The limitations section is similarly plain about scope: it covers only the in-browser player, and it cannot resolve copyright region restrictions or a problem with the source file itself.
Editorial conclusion
Use this script if you play Bilibili in a browser from outside the region and popular videos work while niche ones stall, since that asymmetry is the specific case it targets. Before you report a problem, check that the lightning mark appears at all, because a missing mark is usually a browser permission rather than a bug. Read the version notes before trusting an older build, since the previous approach was measuring the wrong thing. And note the hard limit: it touches only the web player, so nothing here applies to the phone or television apps.
Frequently asked questions
How do I install the Bilibili Accelerator?
On Chromium browsers and Firefox, install a userscript manager and then install the script from the script-hosting page, a direct script file, a raw repository address, or the release page. Then refresh already-open pages and look for the lightning mark in the lower right corner.
Why does the lightning icon not appear after installing?
On Chromium browsers this is usually the newer extension permission model rather than a bug. The script manager reports that the script has not run yet and asks you to allow user scripts; enable that toggle in the manager extension details, or enable developer mode if the toggle does not exist.
Does the Bilibili Accelerator work in Safari?
Yes, through a different extension from the App Store, since there is no Tampermonkey equivalent. You enable the extension in Safari settings, grant it access to the site, open one of the install addresses, and refresh open pages.
What changed in Bilibili Accelerator version 0.5.0?
Routing became measurement-based. Page-load speed testing, a six-hour ranking cache, and rotation on stutter were all removed, because probing measured round-trip latency rather than throughput and one ranking applied badly across videos whose speeds differ by more than ten times.
Does the Bilibili Accelerator support the mobile or TV apps?
No. The stated scope is the in-browser web player only, with the television and phone applications explicitly out of range.
What does the Bilibili Accelerator send when I copy a diagnostic report?
Only the necessary diagnostic information. It deliberately excludes full media addresses with their signature parameters, since those act as access credentials for the video stream.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/realzza-bilibili-accelerator)Star history chart for your README
[](https://hysenlabs.com/projects/realzza-bilibili-accelerator)Was this useful?