Dynamically resize the YouTube player

Those who visit YouTube, which is likely pretty much everyone these days, will have noticed that player size for the video window can be altered. This depends somewhat on preference, but also on resolution.

However, Google is now experimenting with a dynamic resizing, but it isn’t available to everyone at the moment. Don’t let that minor detail stop you from trying it out, though. We’re going to walk through the steps for doing this, using the Chrome browser. Similar methods exist for Firefox and Opera, only differing in access to the developer console.

To get started, point your browser to the YouTube website and, once there, press the Ctrl-Shift-J to launch the developer console — it’s Crtl-Shift-K for Firefox users.

chrome-developer-console

document.cookie=”VISITOR_INFO1_LIVE=E_OLzg3yeLw; path=/; domain=.youtube.com”;window.location.reload();

Now hit the Enter button, give it a few seconds to process, and then close the console, and you’re done. You can reverse the process if you don’t like the change — head back to the developer console and enter this text:

document.cookie=”VISITOR_INFO1_LIVE=; path=/; domain=.youtube.com”;window.location.reload();

That’s all there is to it. You can switch back and forth between the two interfaces and decide which you prefer.

Category

tags

Share this post

1 thought on “Dynamically resize the YouTube player”

Leave a Comment

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.