A Tampermonkey/Violentmonkey userscript that adds Summarize and Answer title buttons to YouTube videos. Clicking either button opens Gemini and automatically submits a prompt with the video URL.
No AI subscription required — works with the free version of Google Gemini.
- Install Tampermonkey or Violentmonkey in your browser.
- Click here to install the userscript — your userscript manager should prompt you to install it.
Open any YouTube video. Two buttons appear in the video action menu:
- Summarize — asks Gemini to summarize the video
- Answer title — asks Gemini to answer the question posed by the video title
Clicking either button opens Gemini in a new tab and submits the prompt automatically.
The script runs on both youtube.com and gemini.google.com.
On YouTube, it injects the buttons into the native menu and stores the prompt text using userscript storage (GM_setValue) before opening Gemini.
On Gemini, it reads the stored prompt (GM_getValue), pastes it into the chat input, and clicks send.

