Update, SitRep @ 2012-02-05
Sorry, I haven’t touched this script in ages, in any case, it hasn’t worked for a long time, and I don’t have time to fix it. Sorry about that. Maybe some other JavaScript expert can take a look at the code?
Note: This post has been superseded with a newer one. All updates will now be put at the bottom of this page
I stumbled upon Mike Sheldon’s GreaseMonkey script that allows people to watch YouTube videos without Flash, and was excited when I found out it also works on Windows. It’s not supposed to, because it depends on mplayerplug-in, which is only available for Linux, but VLC’s multimedia plugin took care of that problem and played it for me on my Windows system!
So now I can watch YouTube videos with 30fps, and even go full-screen, with no stuttering. You might not have these problems, but because I have a 1 GHz-PC I do (it’s a sorry state of affairs when software can’t play video smoothly on a GHz-PC). This is because VLC also uses hardware overlay to display the video, rather than the slow-ass, boo lame, software rendering method that the Flash player uses.
The only problem is, there are no controls to play/pause or change the volume. Apparently it can all be done via JavaScript. I really liked the smooth video, so I decided to extend the GreaseMonkey script and build those features in.
And so it’s born, my first GreaseMonkey script!
To use, install VLC (Update 2009-01-11: version 0.9.8a, Update 2009-08-10: version 1.0.1 did not work for me, unfortunately, must look into it) and GreaseMonkey, and then download:
There are some drawbacks to this solution though; you have to wait for the whole video to load before viewing it (so much for the concept of streaming), and seeking works unreliably in my experience.
But hey, smooth video wins it for me! Enjoy!
And, in anticipation that this script will be popular, allow me to advertise about my upcoming trip.
Because this is the most googled page of my blog, allow me to advertise my iPhone app: Got an iPhone? Need a cool world clock? Get nHands Clock!
Here’s a demo of the script so you can see the effects of the script without installing it nor GreaseMonkey. Or not really, considering YouTube likes to change its video URLs so all you get is “this video is no longer valid”.
Here’s a demo of the script so you can see the effects of the script without installing it nor GreaseMonkey. Or not really, considering YouTube likes to change its video URLs so all you get is “this video is no longer valid”.
Update 2009-01-11: Well, I updated VLC to 0.9.6, and either the plugin or my script didn’t work. It worked again with 0.9.8a, although with broken controls because they changed the API. So now I fixed the API-calls in my script. I also updated the size to adjust to YouTube’s new widescreen format.
Update 2009-02-06: Well, this has become my most-visited post, as well as the #1 result in Google for “vlc youtube” (we’re number one, we’re number one!). If you gave the script a try, please leave a comment below to tell me what you think, did it work, what do you think can be improved, etc.
Update 2009-05-30: After a long wait, I’ve finally updated the script, adding the HQ button, as well as making the disk icon (hmm, I wonder what it does…) link to the HQ/HD format when they’re playing.
Update 2009-06-01: Crap, the last update didn’t really work as expected, great job testing it! (It was never possible to get the HD link to show up). It should work now.



[Ha, a Snap preview thingy would've been useful here, to show what the camera looks like]. Amazon.de remembers everything, which has a bad effect that this camera stares me in the face whenever I visit the site.