PS: This "gist" is the same situation that I described before to solve a simple problem that I went trought. See more on link: https://gist.github.com/marlonklc/ad1647cc52e1ca02d22ce74cbd565760
Updated (24/05/22)
I have improved this script to that is possible show a popup to auto translate the subtitles, using google translator API. So that way you don't need change tabs or go to site for translate the text.
- First thing you need to enable subtitles, like show on result image.
- Configures what source and target language (need to pass this properties to google translator) on script above (0-youtube-subtitles-script.js) by SOURCE_LANGUAGE and TARGET_LANGUAGE variables.
- Copy the final script (editable for you) and paste this script after the command
javascript: <script>
on browser url bar and press enter. Example below: - After step three, you will look a button that copy the subtitles and show a popup on left side with text translated.
PS: Let's feel free to copy or improve it, or left your comment. Cheers!