Real-time subtitle translation for any website
A powerful Chrome extension that translates subtitles from any website into different languages in real-time. No longer limited to specific video platforms - supports user-defined subtitle translation for any website with customizable selectors.
locate-element.mp4
8.28.mp4
- 🌐 Universal Support - Works on any website with subtitles
- 🤖 Multiple AI Models - OpenAI API and local Ollama support
- 🎯 Custom Selectors - Define your own DOM selectors for any site
- ⚡ Real-time Translation - Instant translation without page refresh
- 🌍 Multi-language - Supports translation to any language
- 🎨 Customizable UI - Adjustable subtitle style and position
- 🔧 Easy Configuration - One-click preset configurations
- 🧪 Built-in Testing - Test API configurations directly in options
Coming soon - Extension will be available on Chrome Web Store
-
Download the Extension
- Download the latest release from Releases
- Or clone and build from source
-
Install in Chrome
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension folder
- Open Chrome and go to
-
Configure the Extension
- Right-click the extension icon → Options
- Configure your preferred AI model (OpenAI or Ollama)
- Add website configurations for subtitle translation
- ✅ Netflix - Real-time subtitle translation
- ✅ YouTube - Video subtitle support
- ✅ Amazon Prime Video - Streaming subtitles
- ✅ Disney+ - Multi-language support
- ✅ HBO Max - Premium content translation
- ✅ Hulu - Live and on-demand content
- ✅ Paramount+ - Sports and entertainment
- ✅ LinkedIn Learning - Educational content
- ✅ Udemy - Course subtitles
- ✅ Any Website - Custom selector configuration
Option A: OpenAI API (Recommended)
- High-quality translation
- Multiple model options
- Supports third-party compatible APIs
Option B: Local Ollama
- Privacy-focused local processing
- No API costs
- Requires local setup
-
OpenAI Configuration:
- Get API key from OpenAI Platform
- Choose from preset configurations:
- OpenAI Official:
https://api.openai.com/v1 - Third-party services: Various compatible APIs
- OpenAI Official:
- Test configuration with built-in testing tool
-
Ollama Configuration:
- Install Ollama locally
- Set up HTTPS proxy (see local-https-proxy-ollama)
- Configure local endpoint
-
Access Options Page
- Right-click extension icon → Options
- Or click extension icon → Settings
-
Add Website Configuration
- Domain:
https://www.netflix.com - Selector:
.player-timedtext-text-container(for Netflix subtitles) - Save configuration
- Domain:
-
Test Translation
- Visit configured website
- Play video with subtitles
- Translation should appear automatically
- OpenAI Official:
https://api.openai.com/v1 - Third-party Compatible APIs:
- OAIPro:
https://api.oaipro.com/v1 - UseAIHub:
https://api.useaihub.com/v1 - Any OpenAI-compatible service
- OAIPro:
-
Get API Key
- Visit OpenAI Platform
- Create account and generate API key
- Or use third-party service credentials
-
Configure Extension
- Select OpenAI model
- Choose preset configuration or enter custom URL
- Enter your API key
- Select model (gpt-3.5-turbo, gpt-4, etc.)
- Click 🧪 Test API Configuration to verify
- 401 Error: Check API key validity
- 429 Error: Rate limit exceeded, check quota
- 404 Error: Verify model name and endpoint URL
- Local Ollama installation
- HTTPS proxy for Chrome extension compatibility
- Sufficient system resources (4GB+ RAM recommended)
# 1. Install Ollama
# Visit https://ollama.ai for installation instructions
# 2. Download recommended model
ollama pull qwen2:0.5b # Lightweight, good for translation
# 3. Set up HTTPS proxy
git clone https://github.com/ChenYCL/local-https-proxy-ollama.git
cd local-https-proxy-ollama
./setup.sh # macOS/Linux or setup.bat for Windows
# 4. Start proxy server
npm start- Select Ollama model
- Set Base URL:
https://localhost:11435/v1 - Set Model Name:
qwen2:0.5b - API Key:
ollama(any value works)
For detailed setup instructions, see: local-https-proxy-ollama
-
Find Subtitle Selector
- Open browser developer tools (F12)
- Inspect subtitle elements
- Copy CSS selector
-
Add Configuration
- Domain: Full website URL (e.g.,
https://www.example.com) - Selector: CSS selector for subtitle elements
- Save and test
- Domain: Full website URL (e.g.,
- Netflix:
.player-timedtext-text-container - YouTube:
.ytp-caption-segment - Amazon Prime:
.atvwebplayersdk-captions-text - Disney+:
.dss-subtitle-renderer-cue
- Custom Translation Prompts: Modify translation instructions
- Subtitle Styling: Customize appearance and position
- Multiple Domains: Support multiple websites simultaneously
- Real-time Testing: Built-in API configuration testing
Contact via WeChat Official Account
There are related plugin usage tutorials. Follow and reply 'Translation Tool' to get it. Follow and reply '工具下载' to get the latest version. Regular sharing of audiovisual information worth watching.
Contributions are welcome! Just send a PR for fixes and documentation updates, and open an issue for new features beforehand. Make sure tests pass and coverage remains high. Thank you!



