YouTube Transcript Downloader

Downloads and copies YouTube video transcripts.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

المؤلف
blarer
التثبيت اليومي
0
إجمالي التثبيت
85
التقييمات
0 0 0
الإصدار
1.1
تم إنشاؤه
31-12-2024
تم تحديثه
31-12-2024
الحجم
7.43 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 buttons 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 Transcript" button is added to the transcript area, allowing users to download the transcript as a plain text file (.txt).
  • Clipboard Copy Button: A custom "Copy Transcript" button is added to the transcript area, allowing users to copy the transcript directly to their clipboard.
  • 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 and copy buttons are 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 main.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. Access the transcript: Open the video transcript by clicking the "Show transcript" button below the video.
  5. Download or copy the transcript: Two buttons, "Download Transcript" and "Copy Transcript", will appear in the transcript area. Click the respective button to either download the transcript as a .txt file or copy it to your clipboard.

Obtaining the main.js File:

You can obtain the main.js file from 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 main.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.