Bugs (fallos)

in
Subscribe to Bugs (fallos) 46 posts, 20 voices



Wes M User

@dert07: Open the script with whatever editor you prefer. Find this section of the code:

// Create an special image
  var imgLightsOut = $E('img',
    { 'id': 'img-lights-out',
      'src': outImg,
      'style': 'position:absolute;top:0;left:0;width:100%;height:' +
               document.height + 'px;z-index:100;' });

..and replace it with this:

// Create an special image
  var imgLightsOut = $E('img',
    { 'id': 'img-lights-out',
      'src': mediumImg,
      'style': 'position:absolute;top:0;left:0;width:100%;height:' +
               document.height + 'px;z-index:100;' });

It should work the same as before after that (normal > dimmed > black).

 
dert07 User

Hey, thank you so much Wes!
Is there a way to get normal > dimmed > normal? I just don't like the all black version.

 
Wes M User

dert: Try this:

  // Create an special image
  var imgLightsOut = $E('img',
    { 'id': 'img-lights-out',
      'src': mediumImg,
      'style': 'position:absolute;top:0;left:0;width:100%;height:' +
               document.height + 'px;z-index:100;' });

  // When the user clicks on the overlay, we want to darken it the first time
  // and erase it the second time
  imgLightsOut.addEventListener('click', function (e) {
      if ($('img-lights-out').src != mediumImg) {
        $('img-lights-out').src = mediumImg;
      } else {
        $('lightsout').className = 'lights-off';
        document.body.removeChild($('img-lights-out'));
      }
    }, false);

 
dert07 User

Wow, thank you so much Wes, everything worked great!

 
Alan Hogan Scriptwright

In Opera, sometimes the page doesn't finish loading until a minute into the video, and THEN the script kicks in. Can't you load the script at document onload, e.g. not wait for all the images etc. to load?

 
Alan Hogan Scriptwright

To clarify, this also causes the video to re-load and begin playing from the start. :(

 
dert07 User

I don't know if it's just me, but the script really seems to be broken.
I can't access the options dialog anymore and videos stopped playing in HQ or HD automatically.

 
Víctor Pimentel Script's Author
FirefoxMacintosh

der07, the script should work now.

 
dudebudbro Scriptwright
FirefoxWindows

Thanks for fixing it :)

 
Node User
FirefoxX11

The script's menu has disappeared from YouTube.

 
magpie02 User
OperaMacintosh

Sad...
It seems like the script does not work properly with Opera 10.0.

 
gav616 User
FirefoxX11

my fav script on here is now working good after the update, thank you.
couple of things;

'lights out' doesn't work when a video is playing,

I applied this; 'http://userscripts.org/topics/20924?page=2#post...'
'lights out' now works when a video is playing but the dimmed block is cut off at the bottom of the page, it looks like its to do with youtube's top half of the site is smaller now (..?), so when the script moves the page perspective when playing a video, its out slightly.

 
gav616 User
FirefoxX11

concerning the grey box, i added 'style': 'position:absolute;top:0;left:0;width:100%;height:100%'

the 100% to the height.

 
G3R User
FirefoxX11

Script can't detect HD video

 
henriqesilva User
FirefoxMacintosh

Hi,
the video doesn't appear unless I change to another tab and then return to the video. Is this a bug? Tiger 10.4.11, firefox 2.0.9 or firefox 3.5

 
dudebudbro Scriptwright
FirefoxWindows

If you're trying to play Flash and the youtube video has fmt=22, 35, 18, and low quality(6?), and you disable HD it does not play the next best quality which should be fmt=35. Instead it plays the low quality version. This is very annoying and the only option is to manually add &fmt=35 to the url. Can you configure it to automatically play the next best format? Or let us choose what to pick?

Youtube also has 1080p videos (fmt=37) now so you might want to include that also.

 
Keith Krome User
FirefoxMacintosh

I'm having the same troubles as henriqesilva, the video doesn't appear unless I change to another tab and then return to the tab with the video. I'm running Firefox 3.5.7 on OS X 10.5.8 on a G5 processor.

Thanks for the scripts!

 
cousteau_ User
FirefoxX11

Me pasa esto:
http://img51.imageshack.us/img51/9126/youtubepe...
Usando Linux. He probado con varios plugins (totem, xine, vlc, mplayer) y en todos pasa lo mismo: el vídeo tapa el menú. (Por cierto, de todos el más cómodo me ha parecido el de MPlayer, pero ¿se podría poner una opción para elegir cuál usar?)

Otro problema (algo más "retorcido"): uso Flashblock para bloquear los flash. Normalmente, si quiero ver un vídeo de YouTube, simplemente hago clic en el hueco que queda y se reproduce, pero con este script eso no funciona, así que tengo que desactivar Flashblock cada vez que quiero ver vídeos de YouTube. Para solucionar esto ya habría que investigar cómo trabaja Flashblock y puede que sea complicado de arreglar.

Y lo último, claro, que con esto no se pueden ver las capas de información, pero eso la verdad es que es más una ventaja que un problema... (salvo para cosas como Tube Adventures)

Por lo demás, enhorabuena por el plugin. Con la de recursos que consume Flash en Linux, a ver si los vídeos se ven mejor.

 
isend73 User
FirefoxMacintosh

Looking forward to revision of the script for the new Youtube layout!

 
Sum Guy User
FirefoxMacintosh

script doesn't seem to do anything at all for me...

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

 
nmh User
FirefoxMacintosh

In case others are seeing the same problem as I, youtube changed 'watch-player-div' to 'watch-player' and this script looks for 'watch-player-div' before even trying to do anything. Just removing the '-div' got it to run (but not work correctly) and changing all the instances of 'watch-player-div' to 'watch-player' got it to work for playing (I just did a quick test). The download doesn't works as I am used to - maybe someone else will volunteer some information on that.

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