Discussions (2427)

GM Script: Recent comments in photostream

perpetual lake [deleted] says:



This GM script displays recent comments when you visit a photostream.

UPDATE: please use this updated version by flickr.com/photos/ckyuan/.
Originally posted at 8:01AM, 15 June 2005 PST (permalink)
steeev (a group admin) edited this topic ages ago.

view photostream

vasta says:

wah! just the script i've been looking for! thanks!
ages ago (permalink)

view photostream

r y _ _ _ _ says:

very, very cool.
ages ago (permalink)

view photostream

.CK says:

great job, it is really good!
ages ago (permalink)

view photostream

jrhyley says:

This is, quite possibly, the coolest flickr hack ever.
ages ago (permalink)

view photostream

Son of Groucho says:

Very useful script. Makes good use of otherwise empty space on the Flickr page!
ages ago (permalink)

view photostream

Sidereal says:

This is brilliant, I can't live without it now :)
ages ago (permalink)

view photostream

gnosis / john r says:

Thanks so much!
ages ago (permalink)

view photostream

wendie7 says:

**edited** I answered my own question, so I won't need anyone to explain how to work this now.

Thanks!
ages ago (permalink)

view photostream

zenera says:

This is such a super script, but it no longer works, since the recent greasemonkey scare I've now got the latest version and Firefox/1.0.6, please help, thanks!
ages ago (permalink)

view photostream

touching light says:

oops, just noticed that too. i'm assuming it's the switch to GM 0.3.5?
ages ago (permalink)

view photostream

wendie7 says:

Oh man, I was hoping it was just me it wasn't working for and that I just needed to reinstall. Phooey!
ages ago (permalink)

view photostream

zenera says:

Tried reinstalling several times...sort of glad it's not just me
ages ago (permalink)

view photostream

Stewart says:

Neat - I hadn't seen this one before.

Think we should incorporate it into the site? (And how does the author feel about that?)
ages ago (permalink)

view photostream

.CK says:

I made an improvement on this "recent comment" script and write a new scrip - "Toggle Recent Comments" several weeks ago.

It works fine with GM 0.3.5. I replaced GM_xmlhttpRequest with XMLHttpRequest. You can try it at webdev.yuan.cc/greasemonkey/flickr.comments.toggle.user.js.
ages ago (permalink)

view photostream

The Guncle says:

It's perfect - thanks .CK.
ages ago (permalink)

view photostream

zenera says:

Yes definitly Stewart! Thanks .CK it's working fine now!
ages ago (permalink)

view photostream

absoblogginlutely says:

Cool - I was expecting to see this where the existing comment numbers were but now I've realised its on the right hand side. Great work (as usual)
ages ago (permalink)

view photostream

Son of Groucho says:

Thanks .CK! I was really getting fed up looking at that unused space!
ages ago (permalink)

perpetual lake [deleted] says:

I am glad that you all found the script to be useful!

.CK, thanks for the updates! I've changed the above post to point to your version.

Stewart,
That'd be most awesome!
ages ago (permalink)

view photostream

touching light says:

is there someway I can set the toggle to always on?
ages ago (permalink)

view photostream

.CK says:

Thanks, setre. Your clever idea to use RSS instead of API is pioneering.

Touching light, I've updated the script to add a checkbox to let you keep the toggle on. You can re-install the script.

Download: webdev.yuan.cc/greasemonkey/flickr.comments.toggle.user.js
ages ago (permalink)

view photostream

gnosis / john r says:

thanks for the update....I really really missed it this last couple weeks.
thank you thank you thank you
ages ago (permalink)

view photostream

touching light says:

fantastic .CK! thanks so much! (without that option, I forget to use the feature).
ages ago (permalink)

view photostream

hendriko says:

Hmm, with Greasemonkey 0.5.3, the updated version by .CK doesn't work for me, but the original one does (again).
ages ago (permalink)

view photostream

.CK says:

really? It works fine with my gm 0.5.3.
Can you check the Javascript console for me? to see if there's any hint ....
Originally posted ages ago. (permalink)
.CK edited this topic ages ago.

view photostream

hendriko says:

Uh, never mind. I think I have just been stupid and didnt see the expandable 'recent comments' tab. Sorry.
ages ago (permalink)

view photostream

phool 4 XC says:

Had to dig through a bit to find this in order to install on another computer, so I thought I'd bump it up again. Good job, y'all!
ages ago (permalink)

view photostream

psd is a group administrator psd says:

Sadly seems to be broken in Firefox 1.5 beta 2 and GM 0.6.2. Having seen it work in Firefox 1.0.7 I may have a quick go at debugging it when i get back from my holls ..
ages ago (permalink)

view photostream

.CK says:

The "Recent comments in photostream" is fixed for Firefox 1.5 beta2 + GM 0.6.2 now. It was broken due to the 'onclick' problem.

Reinstall it at here: webdev.yuan.cc/greasemonkey/flickr.comments.toggle.user.js
Originally posted ages ago. (permalink)
.CK edited this topic ages ago.

pleasant neck [deleted] says:

This is an awesome script. One question — is there a way I could modify it to show square-size previews, instead of thumbnail-size? A line in the code I could alter? Just curious, thanks ...
Originally posted ages ago. (permalink)
pleasant neck edited this topic ages ago.

view photostream

jrhyley says:

I did this myself for reasons of aesthetics.

Replace:

var commentText = entries[i].getElementsByTagName('content')[0].textContent;
tmpDiv.innerHTML = commentText;

With:

var commentText = entries[i].getElementsByTagName('content')[0].textContent;
commentText = commentText.replace("_t.jpg","_s.jpg");
commentText = commentText.replace(/width=\"\d*\"/i, 'width="75"');
commentText = commentText.replace(/height=\"\d*\"/i, 'height="75"');
tmpDiv.innerHTML = commentText;
ages ago (permalink)

pleasant neck [deleted] says:

Works great, thanks!
ages ago (permalink)

view photostream

firda says:

Is there a way to include recent photoset comments? Thanks.
ages ago (permalink)

view photostream

.CK says:

firda,

what do you mean by 'recent photoset comments'?
ages ago (permalink)

view photostream

Skinnyde says:

I think she is referring to the new option to write comments on sets as opposed to just individual photos.
ages ago (permalink)

view photostream

.CK says:

I see. I just checked the RSS/Atom of recent comments, it doesn't include comments on sets. So it's not available right now.
ages ago (permalink)

elegant wire [deleted] says:

THX@jrhyley :-)
ages ago (permalink)

view photostream

¡nils! says:

This one is great, saves me two clicks (nah, not really). And thanks to jrhyley for some visual streamlining. Speaking of that, can annyone tell me how to shorten the line below "Recent Comments" and to addjust the font. I'm getting slightly mad because of that.
ages ago (permalink)

view photostream

wiccked says:

I was using this (and loving it!) until flickr went Gamma and it stopped working.

Is there going to be an updated version?
ages ago (permalink)

view photostream

.CK says:

Yes. Please install the latest version.


ages ago (permalink)

view photostream

Vanessa Pike-Russell says:

This doesn't work anymore :(
ages ago (permalink)

view photostream

.a.x.l™ says:

it doesn't work anymore since I've installed Firefox 3.0.
any update soon ?
ages ago (permalink)

Would you like to comment?

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