For any YouTube video with captions, you can access the captions via a linked URL.
This bookmarklet grabs that URL, loads the captions, and converts the XML to text.
That text is then:
- copied to the clipboard (if supported)
- dumped in the console (
Opt+Cmd+I
/F12
) where you can click the copy button to grab it
I found that I have to clear cache when using it with multiple YouTube videos in one session, but otherwise it works great, thank you!