A browser extension that automatically generates subtitles for Facebook videos (including Reels) using AI or browser-based speech-to-text. The subtitles are overlaid on the video in real time, and can optionally be translated into other languages.
- Auto-generate subtitles during playback
- Multiple STT providers: OpenAI Whisper, Groq, Deepgram, AssemblyAI, or Browser Speech API
- Fallback to browser SpeechRecognition when audio capture is blocked
- Real-time translation via OpenAI-compatible API
- Customizable subtitle appearance (font size, colors, opacity)
- Settings export / import
git clone https://github.com/NaievetestV2/Facebook-Subtitles
cd Facebook-Subtitles
npm install
npm run buildLoad dist/ as a temporary add-on in Firefox (about:debugging#/runtime/this-firefox).
- Build the
.xpivianpm run xpi. - In Firefox Android, open
about:addons, tap the gear, choose "Install from file", and select the.xpi.
- Open
chrome://extensionsoredge://extensions. - Enable Developer mode.
- Click "Load unpacked" and point to the
dist/folder, or drag the.ziponto the page.
- Firefox Add-ons: https://addons.mozilla.org/
- Chrome Web Store: (Coming soon)
npm run build # Build dist/
npm run xpi # Create packages/facebook-video-subtitles.xpi
npm run zip # Create packages/facebook-video-subtitles.zip- Popup is tiny or empty: Make sure you loaded the
dist/folder, not the project root. Thepopup.html,popup.css,options.html, andoptions.cssmust all be insidedist/. If you had an older version installed, remove it before reloadingdist/. - Subtitles fail after a few seconds: Use the "Browser Speech API" provider in Options first to verify the extension works. If audio capture fails (common on some Android builds), switch to browser SpeechRecognition as a fallback.
- No subtitles at all: Check the browser console for
[FB-Subtitles]errors. Ensure you are onfacebook.comorm.facebook.comand playing a video.
- Log in to Facebook and open a video (Reel or feed).
- Click the extension icon or enable auto-generate in settings.
- Set your preferred STT provider and API key in Options.
- Play the video. Subtitles will appear automatically.
- To translate subtitles, set source and target languages in Options.
- Audio is sent directly to your chosen STT provider.
- API keys are stored in local browser storage only.
- No data is sent to the extension author.
- Icons redesign (user-provided artwork)
- Manifest v3 migration
- VTT/SRT download
- Per-language UI localization
- Firefox for Android optimized UI
- Subtitle search / history
See CONTRIBUTING.md.
MIT