whatisgithub

What is bilibili-accelerator?

stabruriss/bilibili-accelerator — explained in plain English

Analysis updated 2026-07-25

0JavaScriptAudience · generalComplexity · 2/5LicenseSetup · easy

In one sentence

A browser userscript for the Bilibili video platform that tests and switches between CDN routes to reduce video buffering and stuttering, with a draggable on-page control panel for manual or automatic route selection.

Mindmap

mindmap
  root((repo))
    What it does
      Tests CDN routes automatically
      Reduces video buffering
      Adds draggable control dot
    How it works
      Downloads small video chunks
      Measures speed and success rate
      Picks fastest route
    Privacy
      Only contacts Bilibili servers
      Stores no cookies or tokens
      Saves only local preferences
    Use cases
      Fix Bilibili video stuttering
      Manually pick a CDN route
      Watch smoother videos
    Tech stack
      JavaScript userscript
      Tampermonkey extension
      Node.js for dev
    Audience
      Bilibili viewers
      Desktop Chromium users
      Tampermonkey users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically pick the fastest CDN route to reduce Bilibili video buffering.

USE CASE 2

Manually select a specific CDN route from four built-in options when videos stutter.

USE CASE 3

Toggle the accelerator on or off to compare performance with Bilibili's default route.

What is it built with?

JavaScriptTampermonkeyNode.js

How does it compare?

stabruriss/bilibili-accelerator00kaku/gallery-slider-block0xkinno/vellum
Stars00
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-05-19
MaintenanceDormant
Setup difficultyeasyeasyhard
Complexity2/52/54/5
Audiencegeneralgeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires the Tampermonkey browser extension installed on a desktop Chromium-based browser.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

Bilibili Accelerator is a browser add-on called a userscript that fixes a specific frustration: videos on Bilibili, a popular Chinese video platform, sometimes stutter or buffer even when your internet connection is fast. This happens because the platform delivers video through content delivery networks, and the default route your browser picks is not always the best one for your location or network conditions. The script works with Tampermonkey, a browser extension that runs custom scripts on web pages, and adds a small control panel to Bilibili video pages. The script ships with four built-in CDN routes and can automatically test each one to pick the fastest. It does this by downloading small chunks of the actual video you are watching, measuring how long each request takes and whether it completes successfully. Rather than just looking at raw download speed, it also tracks time-to-first-byte, success rates, and the slowest request in each test. If two routes perform similarly, it keeps the original order from Bilibili to avoid unnecessary switching. You can also pick a route manually or turn the whole feature off and use Bilibili's default address. Privacy and safety are central to how the script works. It only talks to Bilibili's own CDN servers and a built-in list of official hostnames, never accepting arbitrary addresses from the page or user. It does not store full media URLs, signatures, cookies, or tokens. It keeps no analytics or telemetry. Locally, it saves only your route preference, speed-test settings, and aggregated performance stats in your browser's storage. The authors even ask that users avoid pasting full video URLs when reporting bugs, since those URLs may contain short-lived security signatures. The control panel appears as a small, draggable dot on video pages. Its color changes to indicate status: blue means the script is active, yellow means it is waiting for a safe moment to test, red means something failed, and gray means you are using Bilibili's original route. Clicking the dot opens a menu where you can choose automatic selection, a specific route, or the original Bilibili address, then click to apply. The project is built for desktop Chromium browsers with Tampermonkey, though other setups may work. It is MIT licensed and has no runtime dependencies beyond Node.js 18 for local development.

Copy-paste prompts

Prompt 1
Install the Bilibili Accelerator userscript in Tampermonkey, then open a Bilibili video and write a step-by-step guide on how to use the draggable control dot to switch CDN routes.
Prompt 2
Explain how the Bilibili Accelerator tests CDN routes by downloading small video chunks, and help me understand the difference between automatic selection and manually choosing a route.
Prompt 3
Help me troubleshoot why the Bilibili Accelerator control dot on my video page is red instead of blue, and list the possible causes and fixes.

Frequently asked questions

What is bilibili-accelerator?

A browser userscript for the Bilibili video platform that tests and switches between CDN routes to reduce video buffering and stuttering, with a draggable on-page control panel for manual or automatic route selection.

What language is bilibili-accelerator written in?

Mainly JavaScript. The stack also includes JavaScript, Tampermonkey, Node.js.

What license does bilibili-accelerator use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is bilibili-accelerator to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is bilibili-accelerator for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.