Large

YouTube Enhancer

By GIJoe Last update Dec 13, 2011 — Installed 1,194,597 times.

support Google Chrome

in
Subscribe to support Google Chrome 20 posts, 3 voices



drosah User
ChromeWindows

It's the best script for youtube, but doesn't work at google chrome i want that at the next updates you working to support it.

thanks

 
GIJoe Script's Author
SeamonkeyMacintosh

No support for google chrome at the moment (because of some issues).

Also, can you tell me what doesn't work ? Got an error ?
Maybe you need to use the "emulate GM functions by TarquinWJ" script

 
drosah User
ChromeWindows

it's working better than the old version, i think is the emutator of gm functions. But still bugged. Btw, When I click on the "emulate GM functions by TarquinWJ" script open a new page with the script, not to install it like the youtube enhancer, but I included it in manifest.json, so your extension has to scripts now the your and the Gm function
Look my manifest.json:
{
"content_scripts": [ {
"exclude_globs": [ ],
"include_globs": [ "http*://userscripts.org/scripts/show/33042*", "http*://greasefire.userscripts.org/scripts/show/33042*", "http://*.youtube.*/*", "http://youtube.*/*" ],
"js": [ "script.js", "gm_function.js" ],
"matches": [ "http://*/*", "https://*/*" ]
} ],
"converted_from_user_script": true,
"description": "Download Link + Quality Selector + Rollover Preview + Media Controller + Media Resizer + More...",
"key": "LmkFgMQ9B9asmmNbl+a73FZ5n5kJ1IuYoy6Q6KJesMs=",
"name": "YouTube Enhancer",
"version": "1.0"
}

The errors that i got in your script are:
1) download_link => TypeError: Cannot read property 'style' of undefined
2) cannot click at the option link
3) not shown the media controler. Is a black frame under the video, but you can see the name of each, like play, stop, loop... But not showing the image, only a black frame. Each itens working prefectly too.
4) not hide the youtube tile bar by defaut (has 2 tiles bar, one of the youtube and another of your script)
5) You cannot change the resolutions and the defaut resolution is 320.

I disable all extesions and continue the same.

Look an SS of my youtube page with the script:

http://img88.imageshack.us/img88/5306/errorf.png

--------------------------------------------Updated-------------------------------------------------
I just remove the include of the gm_function on the manifest.json and continue the same think, so the emulator doesn't worked for me or I not intalled correctly.

 
GIJoe Script's Author
SeamonkeyMacintosh

Disable the "emulate GM functions by TarquinWJ".

Put in the YouTube Enhancer script, after const FORCE_LANGUAGE = ''; :

// Dummy GM functions
GM_getValue=function(name,defval) { return defval; }
GM_setValue=function(name) {}
GM_deleteValue=function(name) {}
GM_log=function(msg) {}
GM_xmlhttpRequest=function(obj) {}
GM_openInTab=function(url) {}
GM_registerMenuCommand=function(name,func) {}

and redo a screenshot with this change.

 
GIJoe Script's Author
SeamonkeyMacintosh

Ok... I'll put an GM_* emulator using localStorage in the next update.

 
drosah User
ChromeWindows

I use it

// Dummy GM functions
GM_getValue=function(name,defval) { return defval; }
GM_setValue=function(name) {}
GM_deleteValue=function(name) {}
GM_log=function(msg) {}
GM_xmlhttpRequest=function(obj) {}
GM_openInTab=function(url) {}
GM_registerMenuCommand=function(name,func) {}

and worked, but the last code alone didn't work. If I use both, worked too.

Btw, there is 2 bugs:
1) If I change the options, it doesn't save, always return to defaut.
2) The video is below YOUTUBE ENHANCER GENERAL OPTIONS
Look: http://img29.imageshack.us/img29/5005/error2ui.png

but if I use the scrolbar, solve the second problem
I belive that you can solve it with the option by the defaut: Open the options at a new tab or new window.

 
GIJoe Script's Author
SeamonkeyMacintosh

Thanks... this will help me to fix the problems...

Note: The dummy functions are not means to save/restore the options, but to use the default ones...

Edit: What version of Google Chrome you use ?

 
drosah User
ChromeWindows

i'm using the last chrome 4 Thanks for the update :}

 
Kerim Friedman User
ChromeMacintosh

I'm using the Chrome Developer Channel, always updated to the latest release. Currently that is 4.0.249.0. The script doesn't work. I get the following error message: "download_link => TypeError: Cannot read property 'style' of undefined" Also, the video appears small, the options don't appear, and the other interface elements aren't clickable.

 
drosah User
ChromeWindows

I'm now tested the video, and did not work, there is the same error that the version
earlier, cause you not put what I said that fixed the version:

I just put in the YouTube Enhancer script, after const FORCE_LANGUAGE = ''; :
/ / Dummy functions GM
GM_getValue = function (name, defval) defval (return;)
GM_setValue = function (name) ()
GM_deleteValue = function (name) ()
GM_log = function (msg) ()
GM_xmlhttpRequest = function (obj) ()
GM_openInTab = function (url) ()
GM_registerMenuCommand = function (name, func) ()

and the fixed.

Btw, the options continues not saving, and the video does not disturb the more options tab

 
GIJoe Script's Author
SeamonkeyMacintosh

What do you have in the console log ?
Do you have "Using localStorage..." ?

 
GIJoe Script's Author
SeamonkeyMacintosh

Please, use the last version: 2009-11-19b (and don't use the Dummy functions)
If the script still don't work, tell me what's in the Error console, and take screenshot.
Thanks.

 
Kerim Friedman User
ChromeMacintosh

Still not working. Here are the error logs from the developer console:

206undefined is not supported.
(1) download_link => TypeError: Cannot read property 'style' of undefined
52undefined is not supported.
(2) Player detected: http://s.ytimg.com/yt/swf/watch-vfl133532.swf
19undefined is not supported.
(3) Flush YouTube Player
35undefined is not supported.
(4) Media Controller : Global variable for "Embed URL" not found
9undefined is not supported.
(5) Media Controller warning : "movie_player" state not available
6undefined is not supported.
2undefined is not supported.
(6) Media Controller warning : "movie_player" state not available

And here is a screenshot

http://img.skitch.com/20091120-tc39cf7xnbbi9y5k...

 
GIJoe Script's Author
SeamonkeyMacintosh

Seems like Google Chrome has some broken GM functions...


try to uncomment the line with:
//delete GM_log; delete GM_getValue;
and retest

Also, can you put under the const FORCE_LANGUAGE = ''; :
show_alert(GM_setValue.toString(),1);
and tell me what it's displayed ?

 
Kerim Friedman User
ChromeMacintosh

Things look much better this way. The interface is as it should be running the script, except for an error message displayed at the top: (see #1 below). I get the following in the console:

(1) function () {
console.log("%s is not supported.", api);
}
(2) GreaseMonkey not detected...
(3) Using localStorage...
(4) Player detected: http://s.ytimg.com/yt/swf/watch-vfl134122.swf
(5) Flush YouTube Player
(6) Media Controller : Global variable for "Embed URL" not found
(7) Warning: GM_registerMenuCommand don't work !

Without the second FORCE_LANGUAGE part, I don't get the error message, and the console says this:

(1) GreaseMonkey not detected...
(2) Using localStorage...
(3) Player detected: http://s.ytimg.com/yt/swf/watch-vfl134122.swf
(4) Flush YouTube Player
(5) Media Controller : Global variable for "Embed URL" not found
(6) Warning: GM_registerMenuCommand don't work !

 
GIJoe Script's Author
SeamonkeyMacintosh

Confirmed: Google Chrome GM_getValue function is broken.
And all the remaining GM functions are dummy functions.


Try the last version (2009-11-21b), and see if it working fine.
Thanks.

 
Kerim Friedman User
ChromeMacintosh

Seems good. Thanks!

 
drosah User
ChromeWindows

now it's work, and save.
But I changed the options and get this error:

media_controller => TypeError: Cannot call method 'toLowerCase' of undefined

UPDATE:

1)If i change in: "Change the kill button aspect" not changes the button aspect
2)If we change the wmode got error in media controller

 
GIJoe Script's Author
SeamonkeyMacintosh

What option did you change ?

EDIT:
Ok, i see the problem...
Try the last version (2009-11-23)

 
drosah User
ChromeWindows

i tested and working :) I think is fully suport right now

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel