YouTube Transcript Downloader

Downloads and copies YouTube video transcripts.

目前為 2024-12-31 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
blarer
評價
0 0 0
版本
1.0
建立日期
2024-12-31
更新日期
2024-12-31
尺寸
6.0 KB
授權條款
MIT
腳本執行於

YouTube Transcript Downloader Userscript

This userscript enhances the YouTube viewing experience by providing a convenient way to download and copy the video's transcript. It automatically detects the transcript container and adds a download button for easy access.

Features:

  • Automatic Transcript Detection: The script dynamically searches for the transcript container, adapting to changes in YouTube's page structure. This ensures compatibility even with future updates to the YouTube website.
  • Download Button: A custom download button is added to the transcript area, allowing users to download the transcript as a plain text file (.txt).
  • Clipboard Copy: The transcript is also copied to the user's clipboard for immediate use.
  • Timestamp Inclusion: The downloaded transcript includes timestamps for each segment, making it easy to locate specific parts of the video.
  • Error Handling: The script includes robust error handling to gracefully manage situations where the transcript is unavailable or there are issues during the download process.
  • Customizable Styling: The download button is styled using embedded CSS, providing a visually appealing and consistent user experience.
  • Retry Mechanism: If the transcript isn't immediately available, the script will retry until it's found or a timeout is reached.

How to Use:

  1. Install a userscript manager: You'll need a browser extension like Tampermonkey (Chrome), Violentmonkey (Chrome, Firefox, Edge), or Greasemonkey (Firefox) to install and run this userscript.
  2. Install the script: Obtain the script.js file (see below for instructions on obtaining the file) and create a new userscript in your userscript manager. Save the script with a descriptive name (e.g., "YouTube Transcript Downloader").
  3. Visit a YouTube video: Navigate to any YouTube video with a transcript.
  4. Download the transcript: The download button will appear in the transcript area. Click it to download the transcript as a .txt file and copy it to your clipboard.

Obtaining the script.js File:

You can obtain the script.js file from [Insert Link to script.js here]. This link will provide the complete, ready-to-use JavaScript code for the userscript. Remember to replace any placeholder comments with the appropriate code.

Author Credits:

This script was developed by Blareware aka blare.

License:

This userscript is licensed under the MIT License. See the script.js file for the full license text.

Disclaimer:

This script is provided as-is. Use at your own risk. YouTube's structure may change, potentially breaking the script's functionality. I am not responsible for any issues arising from the use of this script.