This script uses the official YouTube Player API. That means, it works seamlessly and is probably more stable than other solutions.
Tested in Firefox 37.0, Opera 19.0 and Chrome 39.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.