Script Summary: A lightweight and non-intrusive userscript that control video playback and set the preferred player size and playback quality on YouTube.
License: MIT License
[Remotely hosted version](http://eugenox.appspot.com/blob/yays/yays.user.js)
The script uses the official YouTube Player API. That means, it works seamlessly and is probably more stable than other solutions.
Tested in Firefox 27.0, Opera 19.0 and Chrome 31.0.
Thanks to [Dachaz](http://www.dachaz.net/) for maintaining a Safari Extension build of this script. The package is available on his site.
You can also find this script on GitHub.
Comments and Critics are welcomed.
Sorry for my English.
A new button with a "cogwheel" icon will appear below the video player. When you click the button, a panel will show up with three options:
You can choose your preferred playback quality which is set automatically when the video loaded. Beside the standard resolutions (144p, 240p, 360p, 480p, 720p, 1080p, 1440p) there are two special options:
|AUTO||Let the player choose the proper quality. (default)|
|ORIGINAL||Set the highest available quality.|
Please keep in mind that YouTube tends to override your preference when you switch to fullscreen and you have chosen a quality below 720p.
You can set the default player size to:
|AUTO||Let YouTube handle the player size. (default)|
|WIDE||Set the wide size as the default.|
|FIT||Set the player width the same as the page width, keeping the aspect ratio.|
You can set the default playback state:
|START||The video starts as soon as possible. (default)|
|PAUSE||The playback is paused but the player keep buffering.|
|STOP||The playback is stopped and the player doesn't buffer either.|
|AUTO PAUSE||Like PAUSE but only for videos opened in a background tab, and also the playback will automatically be started when the tab gets focus.|
|AUTO STOP||Like AUTO PAUSE but the playback will be stopped instead of paused.|
"It would be great if I could disable annotations permanently."
Currently this can not be done with the Player API, so there isn't any safe way to do that. But you can disable the annotations in YouTube [Account Settings](http://www.youtube.com/account_playback).
"Why the script doesn't work for embedded videos?"
English, Hungarian, Dutch ([Mike-RaWare](../../users/mikeraware.html)), Spanish ([yonane](../../users/121583.html), [Dinepada](../../users/512093), [jdarlan](../../users/548337)), German ([xemino](../../users/142057.html), [ich01](../../users/505537.html)), Portuguese ([Pitukinha](../../users/182970.html)), Greek ([TastyTeo](../../users/TastyTeo.html)), French ([eXa](../../users/74286.html)), Slovenian ([Paranoia.Com](../../users/74889.html)), Russian ([an1k3y](../../users/443694.html)), Hebrew ([baryoni](../../users/48266.html)), Chinese ([blankhang](../../users/497706.html)), Polish ([mkvs](../../users/499788.html)), Swedish ([eson](../../users/367569.html)), Ukrainian ([mukolah](../../users/536809.html))
If you want to translate this script to your language, please send me a private message with your e-mail address and I will give you access to a Google Spreadsheet where you can conveniently edit your translation and keep it up to date.