YouTube Transcript Exporter

Export YouTube transcripts to LLMs or download them as text files. Settings panels for easy customization. Additional features: persistent progress bar with chapter markers; display remaining time based on playback speed; auto-open chapter & transcript panels; links in the header; auto-theater mode; disable play on hover; square & compact search bar, square design, & compact layout; hide video end cards and end screens; color-coded borders on the home page based on video age.

ผู้เขียน
TimMacy
จำนวนติดตั้งประจำวัน
3
จำนวนติดตั้งทั้งหมด
43
คะแนน
1 0 0
เวอร์ชัน
7.4
สร้างเมื่อ
24-12-2024
อัปเดตเมื่อ
24-01-2025
Size
148 กิโลไบต์
สัญญาอนุญาต
GNU AFFERO GENERAL PUBLIC LICENSE-3.0
ปรับใช้กับ

YouTube Transcript Exporter

This script adds four buttons to the YouTube header to facilitate exporting a video's transcript to LLMs or downloading it as a text file. The first button copies the transcript to the clipboard before opening NotebookLM, ideal for quickly generating podcasts. Button two includes a prompt to summarize the video and opens ChatGPT. The third button downloads the transcript as a text file, while the last button opens the settings panel.

Note: Due to the Same-Origin Policy (SOP) in web development, JavaScript cannot directly interact across different websites: i.e. while the script can copy the transcript to the clipboard from YouTube and open a link (e.g. ChatGPT or NotebookLM), the copied transcript must be pasted manually into the text field via CTRL+V (Windows/Linux) or CMD+V (macOS).

Features

  • Core Script Functionality
    • Button One: Copies the transcript and opens NotebookLM.
    • Button Two: Copies the transcript with a prompt for summarizing before opening ChatGPT.
    • Button Three: Downloads the transcript as a text file.
    • Button Four: Opens the settings panel.
    • Transcript Formatting: Includes timestamps, chapter headers, video title, channel name, upload date, and URL.
  • Additional Features
    • Display Remaining Time: Shows the remaining playback time below the video, adjusted for playback speed.
    • Persistent Progress Bar: Keeps the progress bar with chapter markers visible below the video—even in fullscreen.
    • Auto Open Chapter Panels: Automatically opens chapter panels if available.
    • Auto Open Transcript Panels: Automatically opens transcript panels if available.
    • Auto-Theater Mode: Automatically activates theater mode.
    • Disable Play on Hover: Prevents auto-play when hovering over videos.
    • Links in Header: Up to seven links can be added next to the logo and the Left Navigation Bar can be hidden.
    • Customize CSS: Square Design, Compact Layout, Number of Videos per Row, Dim or Hide Watched Videos, Display Full Titles, Hide End Cards or End Screens are just some options.
    • Color Code Videos: Adds a configurable border around videos on the YouTube home page, with colors indicating video age and status.
  • Customizable
    • The settings panel allows for easy modification of the script and its functionality.
    • Includes buttons to export and import preferences for backup.
    • Color-Coded Interface to visually group related elements together
      • Green: Button One - NotebookLM
      • Blue: Button Two - ChatGPT
      • Red: Button Three - Download
      • White: Button Four - General Settings

Additional messages are displayed at the button's location in the YouTube header to indicate the status of the script.

Transcript Is Loading The transcript has to be loaded into the HTML before it can be used. This can take between a few milliseconds up to a couple of seconds—depending on the length of the video.
Live Video, No Transcript YouTube live streams don't have transcripts. Wait until the stream has finished and YouTube's API has processed the video.
Transcript Not Available YouTube's API needs a few minutes to process a new video and generate its transcript. Ensure the "Show transcript" button is available in the description.
Transcript Failed to Load If the transcript fails to load, the script will terminate. Reload the page to try again.

Changelog

  • 7.4: general bug fixes and improvements. reworked initiation of the script. new features: auto-open transcript panels, hide video end cards, hide end screens, hide join and share button under videos, small "subscribed" button (icon only), hide add comment text field, disable play on hover, hide main scrollbar in Safari, choose progress bar color
  • 7.3.5: General bug fixes and improvements. Reorganized the settings panel for upcoming features. New Features: Hide YouTube brand text in the header; Hide video scrubber (red dot in progress bar); Display full titles; and Auto Theater mode.
  • 7.3.1: fixed YouTube scrubber in progress bar
  • 7.3: New Features: Links in Header, Customize CSS, and Color Code Videos. Also optimized transcript loading and reset function.
  • 7.1: general bug fixes and improvements
  • 7.0: initial public release

License

This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.