How to enable a dynamic player size on YouTube
One of the things that have bothered me on YouTube for a while is the static player that the site uses. While you can select a small, large or full screen player, the site does not support anything in between.
Small is the default player size for instance and no matter which resolution of the video and browser window size you select, it stays the same size.
The same is true for the large player which does not adjust to screen size or resolution as well.
Up until now you had to use third-party tools such as this YouTube player resize extension for Firefox and Chrome, or the Unique YouTube Skin userscript to adjust the size of the player window beyond its limits.
Google is currently running an experiment on YouTubeÂ that enables dynamic player sizes on the video hosting site. Experiments, for those who do not know, are tests enabled for some YouTube users to see how they react to the change.
A cookie that is set on the user system determines whether a visitor of the site takes part in the experiment. So, all you need to do to take part is to set that cookie as well.
Here is what you need to do for that
- Open the YouTube website in your web browser of choice.
- In Firefox, press Ctrl-Shift-K.
- In Google Chrome or Opera 15+, press Ctrl-Shift-J.
- In Internet Explorer, press F12.
- This opens the console in all browsers mentioned above.
- Paste the following line into the console and hit enter afterwards:Â
document.cookie="VISITOR_INFO1_LIVE=E_OLzg3yeLw; path=/; domain=.youtube.com";window.location.reload();
- Refresh the page you are on if it is not reloaded automatically.
The effect is the following: Whenever you resize the browser window, YouTube will automatically adjust the size of the player and the video's resolution if possible to match it.
So, a 360p video playing in the small player is automatically enlarged when the browser window exceeds certain thresholds. What's interesting here is that there are more than the two sizes supported by default on YouTube, and that the quality and size is adjusted in both directions.
If you do not want to be part of the experiment for whatever reason, you can leave it at any time. To do so, simply clear all YouTube cookies. Alternatively, repeat the steps outlined above but use the following cookie information instead:
document.cookie="VISITOR_INFO1_LIVE=; path=/; domain=.youtube.com";window.location.reload();
This nulls the cookie data and returns you to the default player behavior on the site. (via Googlesystem)
Please note that experiments may come and go at any time. What works right now may stop working the next minute, or be implemented natively on YouTube.Advertisement
These two Firefox addons work well together to fix most Youtube annoyances:-
Watch Youtube videos in full page size
Set preferred playback quality for all videos
Set preferred video playback volume for all videos
Control autoplay behavior of the YouTube player
Control autobuffer behavior of the YouTube player
Auto pause all YouTube players when a new player starts playing
Show video annotations on the player
Show video controls on player
Autohide video controls after a video begins playing
Play a single video in loop mode
Change video player theme
Skip flash advertisements in the player
Hide/Show “video comments” pane
Hide/Show “video views info” pane
Hide/Show “action buttons” pane (‘like’, ‘dislike’, ‘share’, … buttons)
Hide/Show details” pane [published info, buy video, …]
Michael thanks for recommending those, always good to have choice in this regard.
Userscript doesn’t work anymore in Chrome, which disables any extension not on Chrome store.
Only in Chrome Stable and Beta on Windows.
There is a Chrome YouTube Center as well:
Youtube has been automatically upping quality when you increase the size for a long time, and without the need for setting a cookie.
But you had to click on the large or small video player button for that, right?
I want always to view in HD format, even when the windows size is small, without the need to change quality settings each time.
There are several addons and scripts that can do this. I like ‘YouTube – Auto-Buffer & Auto-HD’
Some alternatives I know:
The Firefox addon FlashResizer allows you to resize any flash video manually or automatically.
The Greasemonkey script ‘Resize Youtube Player To Window Size’ does what its name says.
I’ve been using this stylesheet: http://userstyles.org/styles/91256/
which nicely enlarge the normal youtube player. No need for any js.
@Seban, your suggestion, “Resize Youtube Player To Window Size”, only does that and nothing else. For a better script with much more options try: “Youtube Center”: http://userscripts.org/scripts/show/114002
It not only allows us to custom set the playback size and preference by a set number (240, 360,480,576,720,etc..), it can set player size according to the screen size by percentage (40%, 50%, 60%, 70%, etc… ). But it doesn’t stop there, it can remove just about anything and everything, change buffering behavior, remove advertisements, remove elements, move elements around, darken the screen, provide 3rd party download links and more.
It isn’t limited to the videos on Youtube, it can change Youtube extension players on other sites that play Youtube videos, but wait there is more …. http://userscripts.org/scripts/show/114002
YouTube Center is the best addon to youtube only memory leak programmer must improve
Here are many more Google and Youtube tests http://allgoogletesting.blogspot.com/
thank you very much .My youtube player too small on full hd screen, even when I click large player .This script really hep me .
sorry for my bad english