Greasy Fork

Greasy Fork is available in English.

YouTube - Transcript Exporter

Export a YouTube video transcript to LLMs or download it as a text file; easy customization via a settings panel; additional features: persistent progress bar with chapter markers, display remaining time based on playback speed, auto-open chapter panel.

目前为 2024-12-24 提交的版本。查看 最新版本

作者
TimMacy
评分
0 0 0
版本
7.0
创建于
2024-12-24
更新于
2024-12-24
大小
78.9 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.
  • 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

License

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