Yays! (Yet Another Youtube Script)

By eugenox Last update Feb 16, 2014 — Installed 41,189 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](


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.


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:

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.


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.


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.


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


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

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.