You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Auto-link and resolve video titles for Bilibili BV/AV and NicoNico sm IDs with play icon prefix #408
When reading comments or watching danmaku on Bilibili and NicoNico videos, users frequently reference other related videos using platform video IDs (e.g., BV1xx411c7mD, av170001, or sm9).
Currently in TypeType, these IDs remain static raw text strings (BV1xx411c7mD). I cannot click them to open the referenced video, nor can I tell what video is being referenced without manually copying and searching.
In native Bilibili, raw BV/AV IDs are automatically transformed: the raw identifier string (BV1xx...) is replaced directly with the resolved video title, preceded by a small circular play icon (▶). This keeps sentences natural and readable while providing immediate context on what video is being linked.
What would you like to see?
I would like TypeType to recognize video IDs across comments and danmaku and render them using Bilibili's native title replacement behavior:
Identifier Recognition:
Bilibili: BV[a-zA-Z0-9]{10} and (?i)av\d+.
NicoNico: (?i)(sm|so|nm)\d+.
Visual Presentation & Title Replacement (Native Bilibili Style):
Replace Raw ID with Title: Directly replace the raw string (e.g., BV1xx411c7mD) with the resolved video title prefixed by the icon (i.e. [▶ 视频完整标题]), without showing the raw BV/AV characters.
Circular Play Icon: Prepend a mini circular play icon (e.g., Lucide CirclePlay / PlayCircle or a neat ▶ badge) right before the title text to clearly distinguish it from regular text and external links.
Consistent Theme Styling: Follow TypeType's standard link styling (text-accent hover:text-accent-strong) so it seamlessly blends into the current theme and light/dark modes without hardcoded color values.
Fallback / Loading: If title metadata is still loading or fails to fetch, gracefully fall back to displaying the raw ID until resolved.
Interaction:
Clicking the link navigates internally to /watch?v={id}&service={bilibili|niconico} without a full page reload.
Activity