YouTube "Lights Out"

By Anmar Mansur Last update Feb 9, 2012 — Installed 55,735 times.

'Turn lights out' img over the video

in
Subscribe to 'Turn lights out' img over the video 2 posts, 2 voices



leopolly Scriptwright

at least for me, there was this problem that when i clicked on the icon, the whole page darkened out, including the player. just solved the problem by adding this line to the end of the script:
document.getElementById("watch-player-div").style.zIndex = "+1000";

sorry for my english..

 
vilebender Scriptwright

I have the same problem but for me works better adding these two lines at the end of the script:

document.getElementById("watch-player-div").style.position = "relative";
document.getElementById("watch-player-div").style.zIndex = "200";

My browser: FF 3.0.5 on Mac

More info about z-index and stacking divs: https://developer.mozilla.org/en/Understanding_...

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