This script is used to download subtitles directly from YouTube, this extension will add a download button on your youtube playing page.
Step 1: Install the Tampermonkey extension for your browser.
Step 2: Once TamperMonkey is installed successfully, install this script.
Step 3: Now whenever you are watching a video on YouTube, a "Download Subtitles" button will appear as shown in the screenshot. Click on it to download the subtitles. Both Closed Captions (CC) and Auto-generated captions are supported.