Yet Another Youtube Script

A lightweight and non-intrusive userscript that control autoplaying and set the preferred player size and playback quality on YouTube.

The script uses the official YouTube Player API, which means, it works seamlessly and is probably more stable than other solutions.

Tested in Firefox 19.0.2, Opera 12.11, Chrome 23.0.

Manual

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:

Quality

You can choose your preferred playback quality which is set automatically when page loaded. Beside the standard resolutions (240p, 360p, 480p, 720p, 1080p) there are two special options:

AUTO: Let the player choose the proper quality. (default)
ORIGINAL: Set the highest available quality.

Size

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.

Auto play

You can control when the player starts playing the video:

ON: The video starts as soon as possible. (default)
OFF: The video is paused by default.
AUTO: The video starts when the page gets focus the first time. This means, when you open a video in a background tab, the video won't start until the tab become visible.

Translations

English, Hungarian, Dutch (by Mike-RaWare), Spanish (by yonane), German (by xemino), Portuguese (by Pitukinha), Greek (by TastyTeo), French (by eXa), Slovenian (by Paranoia.Com), Russian (by an1k3y), Hebrew (by baryoni), Chinese (by blankhang), Polish (by mkvs), Swedish (by eson)

Related

GitHub repository
Userscripts.org page
Gresemonkey for Firefox
Tampermonkey for Google Chrome

Source

highlight

Changelog

1.6.2mar 29, 2013Polish and Swedish translations added, French and Chinese translations updated.
Layout and compatibility fixes.
1.6.1mar 09, 2013Layout fixes.
Fix an issue of the auto pause feature with the HTML5 player.
Chinese translation added.
1.6dec 09, 2012Update the interface to the new YouTube layout.
Fix the rebuffering issue.
Code cleanup.
1.5.8sep 02, 2012Handle videos with start-at URLs, also known as deep-linking.
The quality selector now covers all available playback qualities.
Define some additional metadatas for Greasemonkey and Scriptish.
Fix Firefox 15 compatibility issues.
Some code cleanup and improvements.
1.5.7jun 22, 2012Experimenting with the Visibility API.
Fix script not loading in Chrome/Tampermonkey.
Quality selector improvements.
1.5.6.1may 21, 2012Quick fix: Don't mute when quality changed.
1.5.6may 20, 2012Some optimization to improve stability.
Prevent the script to run inside a frame.
Hebrew translation added.
1.5.5apr 14, 2012Fix a bug which broke some default player functionality.
Experimenting with auto mute until auto pause take effect.
Russian translation added.
1.5.4feb 12, 2012Compatibility update.
Player size selector added.
Slovenian translation added.
1.5.3dec 17, 2011Support for the HTML5 video player.
Follow the new interface design.
Minor fixes.
1.5.2sep 22, 2011Compatibility update.
French translation added.
1.5.1feb 05, 2011Quality selector fixes.
Greek translation added.
1.5dec 24, 2010Compatibility and layout update.
New Autoplay option: AUTO (beta)
1.4.3jul 24, 2010Improved compatibility.
Portuguese translation added.
1.4.2jun 23, 2010Another quick fix for Safari.
Bugfix for Chrome.
1.4.1jun 22, 2010Quick fix for Safari.
German translation added.
1.4jun 21, 2010Interface update.
Code refactoring.
1.3.1apr 15, 2010Compatibility update.
Added "very high" option to the quality selector.
Bugfix for Opera.
Drop IE support.
1.3apr 09, 2010Update for the new YouTube interface.
Improved update functionality with YQL.
1.2feb 26, 2010Trying to solve interference with other YouTube scripts.
Update checker functionality added.
General improvements and bugfixes.
1.1.3jan 17, 2010Spanish translation added.
Bugfix for Chrome.
1.1.2jan 17, 2010Dutch translation added.
1.1.1jan 16, 2010Internet Explorer support.
1.1jan 15, 2010Opera and Chrome support.
Store the configuration persistently with Greasemonkey.
1.0.1jan 01, 2010Minor optimization.
1.0jan 01, 2010Initial release.