How I Built a Zero-Tracking MV3 Video Speed & 300% Audio Enhancer (1,175+ Users)

2026-12-02来源 dev.toEnglish
How I Built a Zero-Tracking MV3 Video Speed & 300% Audio Enhancer (1,175+ Users)

Most browser video speed controllers haven't seen a meaningful UI or architecture update in years—many still rely on legacy Manifest V2 patterns, request overly broad permissions, or break inside modern ShadowDOM players and nested iframes.

So I built BoBo Speed—a lightweight, MIT-licensed Manifest V3 extension with zero external dependencies (~400KB footprint) that just crossed 1,175+ active users on Microsoft Edge Add-ons.

Why Manifest V3 + Dual-World Architecture?

Modern video platforms (YouTube, Bilibili, MOOCs, cloud drives) heavily use ShadowDOM and cross-origin iframes. A single-world content script either misses encapsulated <video> elements or loses access to extension storage APIs.

BoBo Speed splits the runtime cleanly:

  • ISOLATED world (content-bridge.js): Syncs user preferences, per-site speed memory, and live badge updates with chrome.storage and the service worker.
  • MAIN world (inject.js): Hooks directly into the page's media lifecycle, penetrates open ShadowDOM trees, and handles 0.1x–16.0x stepless playback rate control without fighting native player resets.

In manifest.json, the extension only requests two permissions: storage and sidePanel. No analytics, no telemetry, no remote code.

Key Features Built for Power Users & Learners

  • 0.1x–16.0x Stepless Speed & Live Icon Badge: Always see your exact current speed (1.25, 1.5, 2.0, 16) right on the toolbar icon.
  • Hold [H] for Temporary 3.0x Boost: Hold H to breeze through slow intros or filler, and release to snap right back to your previous speed.
  • Web Audio API Enhancer:
    • 100%–300% Volume Boost for quiet lecture recordings
    • Night Mode Compressor to tame loud explosions while keeping dialogue audible
    • Mono Channel Merge for single-earbud listening or poorly mixed audio
  • A-B Loop, PiP & Cinema Spotlight: Loop tricky segments for language learning, pop videos into Picture-in-Picture, or dim the surrounding page.
  • Browser Side Panel Support & 10 Languages: Pin the mini media hub to your Side Panel alongside courses, with built-in support for English, Chinese, Japanese, Korean, German, French, Spanish, Portuguese, and Russian.

BoBo Speed Settings & Shortcut Center

Default Keyboard Shortcuts

Action Key
Increase / Decrease Speed (±0.1x) D / S
Reset to 1.0x R
Toggle Custom Preset (1.8x) G
Rewind / Fast Forward (10s) Z / X
Hold for Temporary 3.0x H
Toggle Floating HUD V
Mute / Play-Pause M / P

Try It Out (Open Source & Free)

Feedback, bug reports, and PRs are always welcome!

原文:https://www.a8q9.cn/en/article/how-i-built-a-zero-tracking-mv3-video-speed-300-audio-enhancer-1-175-users-c260e2.html

相关文章