Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

biuworks/bilibili-digest

19JavaScript

A Chrome extension turns Bilibili videos into subtitle, summary, and note-taking study tools

biuworks/bilibili-digest is a Chrome extension that opens a sidebar next to Bilibili's video player, letting users read subtitles, generate AI chapter summaries with key quotes, get explanations for selected text, and take timestamped notes. It's a port of the earlier youtube-digest project, reusing its architecture and prompt templates for Bilibili's web player. The project is written in JavaScript and has 19 stars.

What it does

  1. Subtitles come directly from Bilibili's official API and can be viewed as original, translated, or bilingual side-by-side, with translation direction chosen automatically based on the subtitle track's language; an AI 'sentence smoothing' step adds punctuation and fixes homophone typos in AI-generated subtitles without changing wording or timing
  2. Long videos are split into overlapping chunks and processed in parallel to generate timestamped chapter summaries with highlighted key quotes, so partial failures don't lose completed sections and generation can be stopped or redone
  3. Selecting a term or concept in the subtitles triggers an AI explanation using surrounding context, shown as a floating popup; pressing a hotkey (n) while watching captures the current subtitle line as a timestamped note that the AI turns into a clean sentence
  4. Notes are saved per video and per part, can be edited, replayed, copied, or jumped to, and users can request AI-suggested refinements to manually edited notes before choosing to keep, replace, or append; notes can be exported as Markdown with timestamped links
  5. Available as the same codebase on both the Chrome Web Store and Microsoft Edge Add-ons (from browser version 116+), or can be built locally via npm and loaded as an unpacked extension in developer mode

Why it matters

Bilibili lacks built-in tools for subtitle translation, summarization, and note-taking, so this extension bundles those into one workflow to make foreign-language educational video content easier to digest. It's also a concrete example of adapting an existing open-source YouTube tool's architecture to a different video platform, useful for developers building similar browser extensions.

Terms in this repo

  • sidebar · a panel that opens alongside the main browser content
  • sentence smoothing (顺句) · a process that adds punctuation and fixes homophone errors in AI-generated subtitles without altering the words or timestamps
  • select-to-explain · a feature where highlighting text in the subtitles triggers an AI explanation based on context
  • chunked parallel processing · splitting long text into overlapping segments processed simultaneously, keeping context continuous across chunks
  • part/分P · Bilibili's system for splitting a long video into multiple numbered parts

Repository description (English)

把 B 站视频变成学习资源的 Chrome 扩展:字幕阅读、双语对照、AI 概览、划词解释和带时间戳的笔记

Open on GitHub

Trending repos

All repos →

Latest from METAL MEDIA