You aren't signed in     Sign In    Help

Flickr Hacks / Discuss

Current Discussion

No Grease Monkey Icon at bottom right.
Latest: 4 hours ago
seeing recent replies
Latest: 6 hours ago
GM Script: Flickr Filter Hearts
Latest: 11 hours ago
Comment Sweeper for Mac OS
Latest: 12 hours ago
GM Script: Flickr group tracker
Latest: 19 hours ago
GM Script: Configurable Flickr Homepage
Latest: 28 hours ago
Award Counter - backup?
Latest: 2 days ago
GM for Google Chrome?
Latest: 3 days ago
Need Help with installing scripts and grease monkey
Latest: 3 days ago
GM Script: Offprint
Latest: 4 days ago
Problem with Flickr Shades GM Script
Latest: 4 days ago
GM Script: Flickr Buddy Icon Reply v3.5 (updated 11th February 2009)
Latest: 5 days ago
More...
You searched for lights and out.

Flickr "Lights Out" - GreaseMonkey Version!

view profile

sesh00  Pro User  says:

Hi All,

I had previously released a bookmarklet version of this script, and now I have created a GM script that achieves the same functionality (in an even nicer way!).

Bugfix: Nasty bug has been fixed where the z-index and position were not returned to normal values properly. This caused issues with other plugins and overlays generated by the Flickr pages (thanks to mortimer for reporting).

It has been reported that there may be issues with using this in Opera 9.21 - I will check this out and issue an update tonight.

I strongly suggest anyone using an older version or the bookmarklet to upgrade to this. The update is available from userscripts.org

Flickr "Lights Out"
Version 1.3


Add the "Lights Out" functionality from Adobe Lightroom to Flickr photos!

Updated: The script now adds a lights out link to the photo download/all sizes page. I'm going to bed, so this isn't fully tested yet (Latest versions of Opera and FF seem to work OK). Considder this an interem release.

The latest version has been added to the userscripts.org page - see the download section below.


1. About
-----------

This script adds the Adobe Lightroom "Lights Out" functionality to a Flickr photo page. The lights out functionality causes the browser window (with the exception of the photo) to be overlayed with a semi-transparent medium grey image. Upon a second click, the browser window is completely
blacked out.

I suggest you test this out on some nice black and white images in one of the Flickr B&W pools.

Flickr "Lights Out"


2. Usage
------------

Simply install the script and it will add a new "Lights Out" button to the button bar on Flickr photo pages. Clicking the button causes the script to activate, then clicking anywhere on the page moves to the next stage - try it out, works great!


3. Compatibility
---------------------

Has been tested with Opera 9 and Firefox 2.0.0.3. The script should work in any browser that supports GreaseMonkey scripts.


4. Download
-----------------

The script can be downloaded from userscripts.org here

Feel free to post any comments/bugs!

Enjoy!
Originally posted at 4:36PM, 31 May 2007 PST ( permalink )
sesh00 edited this topic 31 months ago.

view photostream

PhantomOfParadise  Pro User  says:

Works nicely. Great script, thanks!
Posted 31 months ago. ( permalink )

view photostream

MaxChu  Pro User  says:

^_^ bravo, thanks.
Posted 31 months ago. ( permalink )

view photostream

sesh00  Pro User  says:

@PhantomOfParadise, @MaxChu, Thank You! Glad you like it!
Posted 31 months ago. ( permalink )

view photostream

rebecca~ says:

good work sesh00 !!

i'm sure i'll be using this a lot because i mostly look at BW photos. thanks.
Posted 31 months ago. ( permalink )

view photostream

Mollie Montana  Pro User  says:

Love it; thanks!
Posted 31 months ago. ( permalink )

view photostream

SimonWhitaker  Pro User  says:

*Very* nice - love it! Well done :-)
Posted 31 months ago. ( permalink )

view photostream

EnDriNa says:

this is cool man!
Posted 31 months ago. ( permalink )

view photostream

CORDAN  Pro User  says:

Works great!
Posted 31 months ago. ( permalink )

matthias* [deleted] says:

really nice!

works with firefox 2.0.0.4 too
Posted 31 months ago. ( permalink )

view photostream

-SpH-  Pro User  says:

Not working for me on 2.0.0.4
Posted 31 months ago. ( permalink )

view photostream

.CK says:

Nice!! I like GM more than bookmarklet.
Posted 31 months ago. ( permalink )

view photostream

sesh00  Pro User  says:

Thanks for the kind words everyone!

-SpH- - What version of GM are you using? And do you have any other GM scripts that could be interfering?

I tested with 2.0.0.4 at work and it seemed to work fine.
Posted 31 months ago. ( permalink )

view photostream

tuthdoc99 says:

Very nice script.....thank you, works great.
Posted 31 months ago. ( permalink )

view photostream

eric©norman [dear☮eric]  Pro User  says:

I like the script!
is there any way to have it work on the "all sizes" page too?
(I have quite a large screen).

thanks!
Posted 31 months ago. ( permalink )

view photostream

sesh00  Pro User  says:

Hey,

Just updated the script, it should now display a link to turn the lights out on the "all sizes" page as well.

If you could test it in your browser and let me know how it goes, that would be great!
Posted 31 months ago. ( permalink )

matthias* [deleted] says:

installed the latest version and it works on the "all sizes" page as well as at the "normal"
Posted 31 months ago. ( permalink )

view photostream

sesh00  Pro User  says:

Just updated the script (see link in first post to the userscripts.com page) to make the initial transparent image slightly lighter. This can also be changed, check out the download page for details.

I am going to make an option to remove the transparent stage all together, might have to make a second release that just goes straight to black. Will look into it tonight.
Posted 31 months ago. ( permalink )

view photostream

MaxChu  Pro User  says:

Dear sesh00:

I just found out your example is my foto, haha, thanks man.

2007.05.25 外木山 Keelung (PS) (by MaxChu)
Posted 31 months ago. ( permalink )

view photostream

lookoutbelow says:

Awesome work!

Works perfectly for me in Firefox but Opera 9.21 doesn't recognize it. It only appears on the All Sizes pages occasionally, but never shows up as a button or anything.
Posted 31 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

On the photo page, the script changes the z-index (or the position) of the image, so after using it, the add to set, send to group menus, etc.. appear UNDER the photo.
Posted 31 months ago. ( permalink )

view photostream

sesh00  Pro User  says:

@MaxChu - It's a great photo mate, and a nice one to test this out on.

@really_really_super - not sure what's happening there, I can test it on the latest version of Opera tonight at home.

@mortimer? - that nasty bug should be fixed. Go ahead and grab the latest version from userscripts.org/scripts/show/9589
Posted 31 months ago. ( permalink )

view photostream

Dale Soreen says:

Sorry to be thick and a pain in the arse newbie, but how do I go about installing the script? I have the code from your page but where do I put it and what do I do it with it? Speak slowly for I am an idiot.

Thanks :)

PP
Posted 31 months ago. ( permalink )

view photostream

EnDriNa says:

great! it also work in all sizes.
Posted 31 months ago. ( permalink )

view photostream

lookoutbelow says:

..PhotoPixel..: In order for us to answer your question you need to tell us which browser you're using. Here is a page describing how to install scripts in IE, Opera, and Firefox.
Posted 31 months ago. ( permalink )

view photostream

Dale Soreen says:

really really super, thanks for that :)

I use Opera and it was straight forward, seems to work great!

Thanks again.
Posted 31 months ago. ( permalink )

view photostream

jm3  Pro User  says:

This is nice! How about a more gradual fade to black, rather than the drastic jump, would that be difficult to add? ala moo.tools or scriptaculous?
Posted 31 months ago. ( permalink )

view photostream

Shmoovio (Jarrett) says:

Very cool - thanks!
Posted 31 months ago. ( permalink )

view photostream

'grahamsj3 (Steve Graham)  Pro User  says:

I hate to bring this up, but this is overtyly and blatently a violation of the Adobe Photoshop copyright. The author even admits that it is a feature of Photoshop. I'm all for good freeware and I'm a big fan of all these GM scripts, but the out and out theft of a copyrighted product leaves one open for prosecution. So beware those of you who downloaded it...you are also subject to prosecution.
Posted 31 months ago. ( permalink )

view photostream

sesh00  Pro User  says:

@grahamsj3 - IANAL, but I'm not as confident as you that anything here is a violation of copyright, except for perhaps using the term "Lights Out". That said, it could be agrued in most places that "Lights Out" is a common enough term to not allow it to be trademarked. And I find it hard to believe that Adobe own a patent on displaying an image on a semi-transparent, and then a fully black background.

Anyway, if you want to be specific, the way it performs here is quite different to the way in which it performs in the Adobe application - have you tested both so that you can compare?

If Adobe (or Flickr) want me to remove references to Lightroom - then simply PM me and considder it done. If anyone else has a better legal opinion than myself, post here so that we can discuss.

@jm3 - i could defiantely make that work in Firefox for you, but not sure about other browsers. Let me see what I can do.
Posted 31 months ago. ( permalink )

view photostream

sesh00  Pro User  says:

OK, so here is a modified version of the script to add a gradual fade to black. This is absolutely un-tested in anything other than Firefox, although I will check out other browsers tomorrow at some stage when I have some time (it's kinda late here in Australia).

Lets call this the Flickr "Dimmer Switch":
Available for testing from: seshblog.com/flickr/dimmerswitch.user.js

It still pauses at approximately 70% opacity and waits for a second click to go to full black. A third click resets everything.

Please post any bugs/comments/suggestions/legal threats in this thread.
Posted 31 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

I don't see how this could be a copyright infrigement. "Light Out" is a very wide term and probably not able to be registered.

The code is not a copy paste of Adobe code and I am sure that sesh00 did all of it by himself.

Then, the concept cannot be copyrighted, at most it could be patented, in some countries, but I doubt that Adobe would easily get a patent on the dark colours. It's sure they didn't invent transparency, black and grey. Neither did they invent light tables and light intensity...

What's your point exactly grahamsj3??
Posted 31 months ago. ( permalink )

view photostream

Saint.Seminole  Pro User  says:

Love the script! Thanks.
Posted 30 months ago. ( permalink )

view photostream

sesh00  Pro User  says:

Thanks for the kudos Saint - it's much appreciated!
Posted 30 months ago. ( permalink )

view photostream

s*ong  Pro User  says:

sesh00, I like Lights Out and Dimmer. For the latter, there is no point in pausing at 70% opaque. I would rather it goes black all the way, the gradual fade serves it purpose already.
Posted 27 months ago. ( permalink )

view photostream

aphroD.i.t.a. says:

: I've installed it but where can I find the button? I can't find it!! Help me, please! Thanks.
Posted 27 months ago. ( permalink )

view photostream

aphroD.i.t.a. says:

Oooooh....I've already found it!!!
What a great script!! Thanks!
Posted 27 months ago. ( permalink )

view photostream

djsosumi  Pro User  says:

awesome stuff. cheers for the script man. really enhances the images

nb. any way to get rid of the buttons at the top?
Originally posted 27 months ago. ( permalink )
djsosumi edited this topic 27 months ago.

view photostream

sesh00  Pro User  says:

Thanks for the compliments.

@djsosumi: Yeah, Flickr changed the code used to display the top menu a while ago, and I haven't bothered working out what is causing it. I actually noticed that it was causing problems with one of the Flickr pages using a lightbox style thing as well.

I'm at work atm, but I'll have a look tonight if I get a chance and fix it for you.

Cheers,
Brenton
Posted 27 months ago. ( permalink )

view photostream

R°sie  Pro User  says:

Dimmer switch and lights out work for me fine!!
Posted 27 months ago. ( permalink )

view photostream

◄bl►  Pro User  says:

how about having the option to make it automatic?
Posted 23 months ago. ( permalink )

view photostream

Doug Knisely (dormant)  Pro User  says:

I don't see any button either. Where is the "button bar" where I find the lights out button?
Posted 23 months ago. ( permalink )

view photostream

Paint Monkey  Pro User  says:

above the photograph with the all sizes/add to set/ blah blah stuff :)

works like a charm...thanks!
Posted 23 months ago. ( permalink )

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to Flickr Hacks discussion threads
Add to My Yahoo!