A lightweight, privacy-focused Greasemonkey/Tampermonkey userscript that extracts YouTube transcripts directly from your browser session. It allows you to save timestamped transcripts as .txt files or send them to an LLM (via OpenRouter/OpenAI) for an instant, beautifully formatted HTML summary directly on the page.
- Bot-Detection Proof: Uses your actual browser session to fetch transcripts, avoiding the IP bans common with CLI tools and scrapers.
- AI Summarization: Sends cleaned transcripts to your choice of LLM (GPT-4, Claude, Gemini, etc.) via OpenRouter or any OpenAI-compatible API.
- In-Page UI: Displays summaries in a native-looking, toggleable, and copyable box above the video description.
- Clean Export: Download timestamped transcripts as
.txtfiles with sanitized filenames based on the video title. - Customizable: Configure your API URL, Key, and Model name directly via a settings gear in the UI.
- Dark Mode Ready: UI elements use YouTube's native CSS variables to match your theme.
- Install a userscript manager like Greasemonkey (Firefox) or Tampermonkey (Chrome/Edge).
- Create a new script in your manager.
- Copy the code from
youtube-transcript-helper.user.jsand paste it in. - Save the script and refresh any YouTube video page.
Once installed, a new set of buttons will appear near the "Subscribe" button on YouTube:
- Click the Settings (โ๏ธ) icon.
- Enter your API URL (e.g.,
https://openrouter.ai/api/v1/chat/completions). - Enter your API Key.
- Enter the Model ID (e.g.,
stepfun/step-3.5-flash:freeornvidia/nemotron-3-super-120b-a12b:free).
- Language: JavaScript (ES6+)
- Permissions: Uses
GM.xmlHttpRequestfor cross-origin API calls andGM.setValue/GetValuefor secure local storage of API keys. - Compatibility: Optimized for the 2026 YouTube "View Model" UI update.
Distributed under the MIT License. See LICENSE for more information.
