YouTube Transcript Exporter

Export YouTube transcripts to LLMs or download them as text files. Easy customizable via settings panels. Additional features: persistent progress bar with chapter markers; display remaining time based on playback speed; auto-open chapter panels; links in the header; custom CSS; hide nav bar; color-coded borders on the home page based on video age.

目前为 2025-01-07 提交的版本。查看 最新版本

作者
TimMacy
评分
0 0 0
版本
7.3.1
创建于
2024-12-24
更新于
2025-01-07
大小
126.5 KB
许可证
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 Chapters: Automatically opens the chapter panel if available.
    • 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, Videos per Row, Dim or Hide Watched Videos 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.
Transcript Not Available YouTube's API needs a few minutes to process a new video and generate its transcript.
Live videos don't have transcripts. 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.

License

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址