Youtube HTML5 Native Controls
Shows Opera's native HTML5 video controls in Youtube's HTML5 beta.
Tested in the latest Opera WebM Labs build (Windows build 10.54.21868). Might also work in Firefox or Chrome - not tested though.

Installation Instructions:
To install UserJS files you must first create a folder for them on your PC. Where you create this folder and what you call it is entirely up to you. Next, go to file->preferences->advanced->content->Javascript Options and select the User Javascript folder you just created. Then, download the .js file from this site and put it in the folder.
If you are using Opera 10.10 or later you can use the UJS manager Unite application to install and manage your scripts. If you have it installed, simply open the script in Opera and an installation button will appear.
Scripts take effect on a page after reloading it.
Tested with Opera version(s):
10.50


Comments
I added vid.style.width =
I added
vid.style.width = '854px';
vid.style.height = '480px';
to your script and it doesn't resize the viewing space :(
Unintuitive
The vid variable isn't actually the video element, it's the video-player wrapper div. Sorry about that.
Try putting something like
var vidEl=vid.children[2].firstElementChild;near the end of the script perhaps.press on video to pause
is it possible to use js to get the following? click on the video to pause and unpause?
Yes it's very possible
I think YouTube does it already, without this script.
Improvement.
Can you add a 'Download to mp3' in the right click menu :) it could be nice
No can do
The right click menu is native. I could replace the menu (again), but the entire point of this script is to GET BACK the native right click menu.
Post new comment