{"id":51254446,"url":"https://github.com/realzza/bilibili-accelerator","last_synced_at":"2026-06-29T09:01:25.764Z","repository":{"id":363774080,"uuid":"1264856932","full_name":"realzza/bilibili-accelerator","owner":"realzza","description":"Safari-friendly Bilibili CDN accelerator for smoother overseas playback.","archived":false,"fork":false,"pushed_at":"2026-06-28T19:37:52.000Z","size":79,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-28T21:09:20.460Z","etag":null,"topics":["bilibili","cdn","greasyfork","safari","tampermonkey","userscript","webextension"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/realzza.png","metadata":{"files":{"readme":"README.en.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-10T08:39:00.000Z","updated_at":"2026-06-28T19:37:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/realzza/bilibili-accelerator","commit_stats":null,"previous_names":["realzza/bilibili-accelerator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/realzza/bilibili-accelerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realzza%2Fbilibili-accelerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realzza%2Fbilibili-accelerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realzza%2Fbilibili-accelerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realzza%2Fbilibili-accelerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realzza","download_url":"https://codeload.github.com/realzza/bilibili-accelerator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realzza%2Fbilibili-accelerator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34919884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilibili","cdn","greasyfork","safari","tampermonkey","userscript","webextension"],"created_at":"2026-06-29T09:01:25.092Z","updated_at":"2026-06-29T09:01:25.757Z","avatar_url":"https://github.com/realzza.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bilibili Accelerator\n\n[中文](./README.md)\n\nBilibili should not buffer every few seconds just because you are watching from overseas.\n\n**Bilibili Accelerator** is a userscript that rewrites slow Bilibili playback CDN URLs before the player starts buffering. It targets the usual overseas pain points: `upos-*ov` mirror hosts, MCDN/PCDN nodes, and route choices that make niche videos stutter while popular videos play fine.\n\n## Install\n\nGreasy Fork is the recommended install path. It works with Chrome, Safari, Firefox, and Edge through a userscript manager.\n\n- [Greasy Fork script page](https://greasyfork.org/en/scripts/582026-bilibili-accelerator)\n- [Direct `.user.js` install](https://update.greasyfork.org/scripts/582026/Bilibili%20Accelerator.user.js)\n- [GitHub Raw fallback](https://raw.githubusercontent.com/realzza/bilibili-accelerator/main/dist/bilibili-accelerator.user.js)\n- [GitHub Release v0.1.3](https://github.com/realzza/bilibili-accelerator/releases/tag/v0.1.3)\n\nAfter installation, open any Bilibili video. A small ⚡ icon in the lower-right corner means the script is active.\n\n## Chrome / Edge\n\n1. Install [Tampermonkey](https://www.tampermonkey.net/) or [Violentmonkey](https://violentmonkey.github.io/).\n2. Open the [Greasy Fork script page](https://greasyfork.org/en/scripts/582026-bilibili-accelerator).\n3. Click Install.\n4. Reload the Bilibili video page.\n\nYou can also load the unpacked extension:\n\n```sh\nnpm run build\n```\n\nThen open `chrome://extensions`, enable Developer mode, and select `dist/extension`.\n\n## Safari\n\n1. Install the Safari extension [Userscripts](https://apps.apple.com/us/app/userscripts/id1463298887).\n2. Enable Userscripts in Safari Settings and allow it on `bilibili.com`.\n3. Open the [Greasy Fork script page](https://greasyfork.org/en/scripts/582026-bilibili-accelerator) or the [GitHub Raw fallback](https://raw.githubusercontent.com/realzza/bilibili-accelerator/main/dist/bilibili-accelerator.user.js).\n4. Install when prompted, then reload the Bilibili video page.\n\n## What It Changes\n\nBilibili often returns multiple signed media URLs for the same video. Overseas viewers may get routed to hosts like:\n\n```text\nupos-sz-mirrorcosov.bilivideo.com\nxy153x35x231x78xy.mcdn.bilivideo.cn:8082\n```\n\nThe script rewrites those slow paths to steadier playback routes, by default:\n\n```text\nupos-sz-mirrorcos.bilivideo.com\nproxy-tf-all-ws.bilivideo.com\n```\n\nHealthy CDN URLs are left alone by default. For stubborn videos, open the ⚡ panel, enable `Force all video CDN`, and reload.\n\nIn web fullscreen the ⚡ icon fades out so it never covers the video; move the cursor to the lower-right corner to bring it back.\n\n## Tested Case\n\nThis reported stuttery video:\n\n```text\nhttps://www.bilibili.com/video/BV1NnVK6cEXs\n```\n\nreturned `upos-sz-mirrorcosov.bilivideo.com` playback URLs. The script rewrites them to `upos-sz-mirrorcos.bilivideo.com`.\n\n## Development\n\n```sh\nnpm test\nnpm run build\n```\n\nOutputs:\n\n```text\ndist/bilibili-accelerator.user.js\ndist/extension/\n```\n\n## Router / Apple TV / Mobile App?\n\nA common request is router-level acceleration so native apps benefit too. See [docs/router-proxy.md](docs/router-proxy.md) for the feasibility and limits: the browser case works, but Apple TV / mobile apps are blocked by custom-CA installation and certificate pinning.\n\n## Why Star This\n\nIf you watch Bilibili overseas, this turns a lot of mysterious buffering into one small, controllable switch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealzza%2Fbilibili-accelerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealzza%2Fbilibili-accelerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealzza%2Fbilibili-accelerator/lists"}