YouTube Gemini Summarizer

Summarizes YouTube videos using Gemini API with a GUI for API key, model, language selection (with RTL support), and Markdown rendering.

نووسەر
kobaltGIT
Daily installs
0
Total installs
6
Ratings
0 0 0
وەشان
0.3.1
Created
2025-06-04
Updated
2025-06-04
Size
82.4 KB
مۆڵەت
MIT
Applies to

YouTube Gemini Summarizer

Quickly understand the content of YouTube videos by generating concise summaries using Google's powerful Gemini AI models, right on the video page!

This script adds a convenient panel to YouTube video pages, allowing you to:

  • Generate AI-Powered Summaries: Get the gist of a video without watching the whole thing.
  • Use Your Own Gemini API Key: Securely input and save your Google Gemini API key.
  • Select Your Preferred Model: Automatically fetches compatible Gemini models (like gemini-pro, gemini-1.0-pro, gemini-1.5-flash, etc.) and lets you choose one.
  • Choose Summary Language: Select from a wide range of languages for your summary.
  • Right-to-Left (RTL) Support: Correctly displays summaries in RTL languages like Hebrew, Arabic, and Yiddish.
  • View Summaries Directly: The generated summary appears in a dedicated text area within the panel.
  • Automatic Transcript Retrieval: The script intelligently tries to extract the video's transcript or closed captions.
  • User-Friendly Interface:
    • A discreet "Summarize" button appears on mouse-over of the video player.
    • The settings panel can be easily toggled.
    • Your preferences (API key, model, language, panel visibility) are saved.
  • Status Notifications: Get real-time feedback on the summarization process.

How to Use:

  1. Get a Gemini API Key:
    • You'll need a Gemini API key from Google AI Studio. You can get one here.
  2. Install the Script:
    • Make sure you have a userscript manager like Tampermonkey, Greasemonkey, or Violentmonkey installed in your browser.
    • Install this script.
  3. Open a YouTube Video:
    • Navigate to any YouTube video page (youtube.com/watch*).
  4. Access the Summarizer Panel:
    • Hover your mouse over the video player. A "Summarize" button will appear in the bottom-left area of the player.
    • Click this button to open (or close) the summarizer panel.
  5. First-Time Setup:
    • In the panel, enter your Gemini API Key into the "Gemini API Key" field.
    • Click the "Save & Fetch Models" button. This will save your key and load the available Gemini models into the dropdown.
    • Select a model from the "Select Model" dropdown.
    • Choose your desired "Select Summary Language".
  6. Summarize!
    • Click the "Summarize Video" button.
    • The script will fetch the transcript and send it to the Gemini API. The summary will appear in the text area below.

Important Notes:

  • The accuracy and availability of summaries depend on the video having a transcript or captions and the capabilities of the selected Gemini model.
  • The script attempts to interact with YouTube's UI to open the transcript panel. YouTube updates its site frequently, which might occasionally affect this part of the script. A fallback method to get caption data is included.
  • Ensure your Gemini API key is correctly configured and has the necessary permissions.
  • This script makes requests to generativelanguage.googleapis.com.

Enjoy a more efficient YouTube experience!