Play YouTube videos filling the browser window

If you are like me, you like using as much of your screen to watch videos on YouTube. The comments, title bar, and the rest of the edge of the screen takes away the possibility of looking at all those 1080p pixels available now.

To make any video fill your browser window, drag the link that says YT Full below to your bookmarks toolbar. You can also right click and save to bookmarks. Then, while on a YouTube video page, click on it. The page will be replaced by the URL of the embedding version of the video, filling the viewport.

[codepen_embed height=”120″ theme_id=”light” slug_hash=”xLMaEw” default_tab=”result” user=”javver”]See the Pen <a href=’https://codepen.io/javver/pen/xLMaEw/’>xLMaEw</a> by Javier (<a href=’https://codepen.io/javver’>@javver</a>) on <a href=’https://codepen.io’>CodePen</a>.[/codepen_embed]

Inside the bookmarklet you will see this:

javascript:u=window.location.toString().match(/v=([^&]*)/)[1];window.location.replace(`https://www.youtube.com/embed/${u}`)

It’s a short script that takes the current URL from the address bar, yanks the video ID from it, and replaces the tab URL with the embedded version URL.

😀

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.