Script Summary: Turn the lights out for easier watching of YouTube videos!
This script was inspired by and is basically a modification of the excellent Flickr "Lights Out" script by Brenton Cleeland.
This is still in beta. Please report bugs and make suggestions in the comments.
2012-12-06: Updated to support new YouTube design. Thanks to Alek T for the heads up.
2012-02-09: Updated to match new YouTube button style. Also, removed Cosmic Panda support, with great pain I might add :(
2010-04-19: Minor update to add proper spacing between Lights Out button and buttons inserted by other scripts.
2010-04-17: Moved the Lights Out button next to the subscribe button on main video "watch" pages. Fixed video being hidden in user channel pages. Code could use some cleaning, perhaps with next update.
2010-04-02: Second update to fully support new YouTube design, including user channel pages.
2010-04-02: Updated to work with new YouTube design. Please note that the updated script only works with main video "watch" pages for now. Another update to support user channel pages is in the works.
2008-09-29: Minor fix to properly hide all elements of YouTube Channel pages.
2008-08-27: Thanks to a suggestion by georgie in the comments, added another Greasemonkey User Script Commands menu entry to enable lights dim only behavior.
2008-08-23: Thanks to a suggestion by oldarney in the comments, added Greasemonkey User Script Commands menu entries to modify the behavior of the Lights Out button between the standard lights dim then off and one click immediate lights off.
2008-04-17: Added quick-and-dirty support for profile videos.
2008-04-15: Found a new place to insert the "Lights Out" button in the new YouTube layout. I apologize for the delay.
2007-08-25: A recent minor change in new YouTube page layout forced the "Lights" button to appear on a separate line.
2007-08-19: Minor update to support international versions of YouTube, e.g. "uk.youtube.com".
2007-08-02: Fixed a bug where clicking the Lights button added a "#" to the URL, breaking other buttons/links on the page.
2007-08-01: The script now accounts for the page height, fixing a bug where longer pages where not fully covered.