YouTube Transcript Downloader

Downloads and copies YouTube video transcripts.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

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

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

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

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

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
blarer
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
85
Βαθμολογίες
0 0 0
Έκδοση
1.1
Δημιουργήθηκε την
31/12/2024
Ενημερώθηκε την
31/12/2024
Μέγεθος
7 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.