Youtube without Flash Auto

By YoutubeWithoutFlash Last update Jan 30, 2011 — Installed 96,968 times.

Support for Chrome and Chromium?

in
Subscribe to Support for Chrome and Chromium? 19 posts, 6 voices



fxf User
ChromeX11

Is support for Google Chrome or the open-source Chromium envisioned?

This is a terrific script, and the addition of support for Epiphany is most welcome. Does this work both versions (WebKit- and Gecko-based) of Epiphany?

 
YoutubeWitho... Script's Author
FirefoxX11

I already looked into making the script work with Chrome / Chromium, but I couldn't get Chromium to work with user scripts on my computer at all, so I gave up. I might give it another try some time.

I haven't tried the script with the WebKit-based version of Epiphany, but it does work with the Gecko-based version for me.

 
chromeuser8 User
ChromeX11

Here are some workarounds to make this script work in chrome.
To run it, put the script in .config/google-chrome/Default/User Scripts and run google-chrome with -enable-user-scripts

-chrome doesn't support unsafeWindow

// ==/UserScript==

function runScript() {

...existing script...

}

if(/Chrome/.test(navigator.userAgent)) {
var script = document.createElement("script");
script.type = "application/javascript";
script.textContent = "(" + runScript + ")();";
document.body.appendChild(script);
} else {
runScript();
}

-add check for chrome
if(/Opera|Safari|Epiphany/.test(navigator.userAgent)) {
changes to
if(/Opera|Safari|Epiphany|Chrome/.test(navigator.userAgent)) {

-in addGlobalStyle(css), replace
style.innerHTML = css;
with
try { style.innerHTML = css; }
catch(x) { style.innerText = css; }

 
something User
ChromeX11

I haven't been able to get this to work properly with Chrome.

Installing the unmodified script in Chrome's dev/beta version allows me to use totem on Youtube but the playback stops after a couple of seconds.

I was also trying to implement this script in order to work with a standalone Chrome shortcut, Youtube-specific.

My shortcut is as follows:

/opt/google/chrome/google-chrome --app="http://www.youtube.com/" --enable-user-scripts --user-data-dir=/home/username/Dropbox/Apps/Chrome-YouTube

I placed an unmodified version of the script in /Default/User Scripts but to no avail. I then tried the instructions found above but it didn't work as well.

What should I do now? Is this a known bug?

Any help would be appreciated.

Cheers.

 
themiddleman Scriptwright
MozillaX11

If totem is replacing the player and playing the video then the script is doing what it does, the problem is probably that totem isn't the best at streaming so you should watch at a lower quality.

Ok, I just got it working, it turns out chrome doesnt like vlc, and user scripts are a lot easier to install than they used to be, just click install and it installs it like a plugin.

I think I will start a compatibility chart on the main script page.

 
something User
ChromeX11

I'm not so sure that the problem is with the totem plugin, since it works flawlessly under Firefox.

Additionally, after the playback stops under Chrome, if I click on the player it dislays a dialog box stating that there was an "Internal data flow error".

 
something User
ChromeX11

Starting Chrome from the terminal, I was able to get access to this strange error message:

** Message: Is unsupported mime-type 'video/x-flv'
** Message: Is not playlist: totem_pl_parser_can_parse_from_data failed (len 315)

 
themiddleman Scriptwright
MozillaX11

do you have flv support installed? in ubuntu you can do a: sudo apt-get install ubuntu-restricted-extras to install everything

 
something User
ChromeX11

Still not working, the error message remains the same.

edit: OK, actually the error message is now slightly different:

** Message: Is unsupported mime-type 'video/x-flv'
** Message: Is not playlist: totem_pl_parser_can_parse_from_data failed (len 324)

324 instead of the previous 315. What does that mean?

 
themiddleman Scriptwright
MozillaX11

I think the number changed because the video did (or was it the same video?)

I have 2 things:
1. type about:config in the url bar of a new tab and look at "video/x-flv" see whats on the right side there

2. download a youtube video using the other links on the left of the script area and see if totem will play it

 
something User
ChromeX11

You meant about:plugins, right?

1 - I have a video/x-flv entry under two plugins, VLC and Xine.

2 - The video played perfectly once downloaded and played with totem.

And no, the number doesn't seem to be related to the video being played. The latest video I tried also gave me 315 on the error message.

 
themiddleman Scriptwright
MozillaX11

yes, about:plugins
ok, you are using ubuntu right? if so run these commands:
sudo apt-get remove mozilla-plugin-vlc xine-plugin
sudo apt-get install totem-mozilla
and restart the browser

chrome doesnt like vlc right now, this should switch to totem

 
something User
ChromeX11

Still not working, I already had totem-mozilla installed.

A bit of a puzzler, heh?

 
themiddleman Scriptwright
MozillaX11

ok, now what is about:plugins it should just be totem, no vlc or xine

 
something User
ChromeX11

VLC is still there, as well as gxine(?).

edit: Now there is no entry for video/x-flv at all. The error message didn't change, though.

 
themiddleman Scriptwright
MozillaX11

ok, just open up synaptic package manager and search for vlc and remove everything that is related to plugin or mozilla
then I see there is a package called gxineplugin remove that too and ahything else you can find and restart the browser.

 
something User
ChromeX11

Ugh, I basically removed everything VLC and xine and still no dice. Could it be that the VLC plugin that Chrome says that uses is a part of Totem? Should I just go ahead and remove Totem to see if Chrome uses the mplayer plugin?

 
something User
ChromeX11

Nop, not working with mplayer as well. I think I'm going to give up, it's definitely something Chrome-related.

 
phanyx User
ChromeX11

Hi,

I only want to let you know, that this script somehow worked out of the box with chromium-browser 5.0.353.0 and mozilla-mplayer 3.55-2ubuntu1

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