Automatically extract transcripts from YouTube videos and seamlessly send them to Google Gemini for summarization, explanation, or analysis.
- 📝 Automatic Transcript Extraction: Grabs the transcript of the currently playing YouTube video.
- 🤖 Gemini Integration: Automatically opens Google Gemini and passes the transcript to it for analysis.
- ⚡ Built with Bun: Fast bundling and script execution.
- Bun is required to build the project.
- A modern web browser that supports Manifest V3 extensions (Google Chrome, Mozilla Firefox, Microsoft Edge, etc.).
- Clone or download this repository.
- Install dependencies:
bun install
- Build the extension bundle (this packages
youtube.jsand dependencies intoyoutube.bundle.js):bun run build
- Open your browser and navigate to the Extensions page (
chrome://extensions/oredge://extensions/). - Enable Developer mode (usually a toggle in the top right corner).
- Click on Load unpacked.
- Select the directory containing this project.
- Open Firefox and navigate to
about:debugging#/runtime/this-firefox. - Click on Load Temporary Add-on...
- Select the
manifest.jsonfile from this project directory. - Note: The extension ID is already configured for Firefox compatibility in the
manifest.jsonunderbrowser_specific_settings.gecko.
manifest.json- Configuration and permissions for the extension.background.js- Background service worker handling message queues and tab management between YouTube and Gemini.youtube.js- Source content script for YouTube to extract transcripts.youtube.bundle.js- Bundled output ofyoutube.js(do not edit directly).gemini.js- Content script for Gemini to receive the transcript and populate the prompt.package.json- Project metadata and build scripts.
This project is open-source. Feel free to fork and modify as needed.