<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>JavaScript on FabianGonzalezDev</title><link>https://fabiangonza.dev/en/tags/javascript/</link><description>Recent content in JavaScript on FabianGonzalezDev</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 08 Jun 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://fabiangonza.dev/en/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Download Video Subtitles with JavaScript</title><link>https://fabiangonza.dev/en/posts/download-video-subtitles-with-javascript/</link><pubDate>Sat, 08 Jun 2024 00:00:00 +0000</pubDate><guid>https://fabiangonza.dev/en/posts/download-video-subtitles-with-javascript/</guid><description>&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>If a video publishes subtitles as a separate HTML5 text track, you can save them from the browser console. This is useful when you want to read the captions offline or refer to them while studying.&lt;/p>
&lt;h2 id="what-you-need">What you need&lt;/h2>
&lt;ul>
&lt;li>A desktop browser such as Chrome or Firefox.&lt;/li>
&lt;li>A video with an accessible subtitle or caption track, usually published as a WebVTT file.&lt;/li>
&lt;li>Permission to download or reuse the captions.&lt;/li>
&lt;/ul>
&lt;h2 id="1-open-the-video-and-turn-on-captions">1. Open the video and turn on captions&lt;/h2>
&lt;p>Open the video page and enable captions in the player. Some players add their subtitle tracks only after you choose a language.&lt;/p></description></item></channel></rss>