YouTube Transcript Downloader

Downloads and copies YouTube video transcripts.

2024-12-31 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

लेखक
blarer
रेटिंग
0 0 0
आवृत्ती
1.0
बनवली
2024-12-31
अपडेट केली
2024-12-31
आकार
6.04 KB
License
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.