Large

Yays! (Yet Another Youtube Script)

By eugenox Last update Feb 16, 2014 — Installed 40,565 times.

Script Summary: A lightweight and non-intrusive userscript that control video playback and set the preferred player size and playback quality on YouTube.



Version: 1.11

License: MIT License

Remotely hosted version

Script homepage

Thumb

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 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.

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 the video loaded. Beside the standard resolutions (144p, 240p, 360p, 480p, 720p, 1080p, 1440p) there are two special options:

AUTOLet the player choose the proper quality. (default)
ORIGINALSet 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.

Size

You can set the default player size to:

AUTOLet YouTube handle the player size. (default)
WIDESet the wide size as the default.
FITSet the player width the same as the page width, keeping the aspect ratio.

Playback

You can set the default playback state:

STARTThe video starts as soon as possible. (default)
PAUSEThe playback is paused but the player keep buffering.
STOPThe playback is stopped and the player doesn't buffer either.
AUTO PAUSELike PAUSE but only for videos opened in a background tab, and also the playback will automatically be started when the tab gets focus.
AUTO STOPLike AUTO PAUSE but the playback will be stopped instead of paused.

FAQ

"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.

"Why the script doesn't work for embedded videos?"

This script was designed to not run in iframes or to work with any form of video embedding outside of YouTube. Embedded players can be customized by the embedding site so they are even less predictable than the default player on YouTube. It is not even guaranteed that they are configured in a way they can be controlled by JavaScript.

Translations

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

Translations status

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.