Flickr Hacks / Discuss

Current Discussion

Flickr Award Counter Problem
Latest: 11 hours ago
GM Script: View date of addition in a group pool
Latest: 18 hours ago
A script to remove Aviary
Latest: 21 hours ago
justified groups..... eeeeek
Latest: 21 hours ago
Flickr easy post help---
Latest: 34 hours ago
flexplore
Latest: 2 days ago
What are the best Greasemonkey scripts?
Latest: 2 days ago
Easier 'soft' blocking - possible with a script?
Latest: 3 days ago
GM Script: photo rank
Latest: 3 days ago
NEW BIGGER Fluid Image in Photo Page... How to control it?
Latest: 5 days ago
Download all pics IN A SET at once.
Latest: 5 days ago
GM Script: Flickr Background Color
Latest: 5 days ago
More...

Search this group's discussions

GM Script: Group photo pools Watch

view profile

_guu_  Pro User  says:

This is my first Greasemonkey script. It add an icon beside each group name to fetch last photos from the group pool feed.

Additionaly it adds three links to fetch/open/close all the photo pools at once.

Download here: userscripts.org/scripts/show/4020

Check the screenshot and its informative notes:



Notes: It works well with GM Scripts: Groups List Sorter

IMPORTANT: PRIVATE groups does NOT have a pool feed so it can't be viewed with this script. (and apparently some other not private groups does not have a feed either).

UPDATE: Flickr Gamma compatible. Thanks to Steev.
Originally posted at 12:39PM, 8 August 2005 PDT (permalink)
steeev (a group admin) edited this topic 68 months ago.

view photostream

.CK says:

Gooooood job. :)
Posted 83 months ago. (permalink)

view photostream

_guu_  Pro User  says:

Thanks!
I don't like too much GM scripts, but I wanted a way to see latest
photos of the groups I belong to. (like the "photos from your
contacts").
So, flickr staff doesn't add it? We add it for them :)

By the way, I use your "addGlobalStyle" function to handle css.
Posted 83 months ago. (permalink)

view photostream

cmiper says:

I am really interested in this one, but it is not working for me. Maybe I am missing something?

Not Working?

None of the photos load. Also when I click on "Fetch All" or "Open All" it only fetches/opens the first group listed, but still no photos show.

I tried disabling all other Flickr related scripts to be sure, same results.
Posted 83 months ago. (permalink)

view photostream

_guu_  Pro User  says:

oh, i see that GM scripts are hard to debug. I tested on three machines and it worked fine. (and I have a lot of GM script installed). I'm working with Greasemonkey 0.5, maybe it make the difference.

Can you open javascript console and check if there is some error message?
Posted 83 months ago. (permalink)

view photostream

steeev is a group administrator steeev says:

cool script gustavo! thanks for sharing it :)

btw a quick look at the script shows it uses gm_xmlhttprequest
which is only available in versions 0.34 and 0.5
cmiper is probably using 0.35 which is the current "stable" version, and it has had the gm_* functions removed for security reasons, which is probably causing the problem.
Posted 83 months ago. (permalink)

view photostream

cmiper says:

steeev wrote:

----------------
cmiper is probably using 0.35
----------------

Steeev is correct..

Here is the error:
Error: GM_xmlhttpRequest is not a function
Source File: flickr.com/groups/
Line: 116

Posted 83 months ago. (permalink)

view photostream

_guu_  Pro User  says:

thanks! I'll check about gm_xmlhttprequest.

Though, it seems that some not private groups doesn't have a feed either.
Posted 83 months ago. (permalink)

view photostream

.CK says:

Gustavoandresmarin,

You can use the standard XMLHttpRequest instand of GM_xmlHttpRequest because the feed URL your script trying to fetch is the same domain with the flickr.

Just notice that some users enter flickr via www.flickr.com, but others via flickr.com.
Posted 83 months ago. (permalink)

view photostream

_guu_  Pro User  says:

I've updated ths script. Now it does a try/catch to see if there is a GM_xmlhttpRequest or else it use the common XMLHttpRequest function.

should work with GM 0.3.5
Posted 83 months ago. (permalink)

view photostream

cmiper says:

New message..

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open

Posted 83 months ago. (permalink)

view photostream

.CK says:

probably the "http://www.flickr.com" vs. "http://flickr.com" problem.
Posted 83 months ago. (permalink)

view photostream

_guu_  Pro User  says:

I downgrade GM to 0.3.5 and test it. I'm sure it works now. please reinstall and check.
Posted 83 months ago. (permalink)

view photostream

cmiper says:

New PC (at home now)..clean install..same error, same version of GM.

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open


:-(
Posted 83 months ago. (permalink)

view photostream

steeev is a group administrator steeev says:

that error is usually caused in scripts if you use flickr.com rather than www.flickr.com as the url (or the other way round). the script needs to check which domain its running on and do its call to the same domain, otherwise you will get that cross domain security error.

update though a quick look at the script, tells me that the it is checking for the domain name before doing the call, hmmm, maybe thats not the problem then...
Posted 83 months ago. (permalink)

view photostream

_guu_  Pro User  says:

I've added some url checks, could you try again now?
Posted 83 months ago. (permalink)

I moved... [deleted] says:

I've been trying this on and off for a while with no luck but since your last post it works fine for me. Before I was getting everything but the pictures - now I get them as well. Nice work.
Posted 83 months ago. (permalink)

view photostream

Spirit635 says:

Hey, this is great. Thanks.
Posted 83 months ago. (permalink)

view photostream

mhusson says:

Dang! Good work Gustavo. This is exactly what I was trying to do with the very lame Group Photo View script I wrote. I'm glad you made this so I didn't have to finish mine ;)

Great work. I Love it.

But one question: Whats's the difference between fetch all and open all? They seem to do be doing the same thing for me (opening all the previews).
Posted 83 months ago. (permalink)

view photostream

_guu_  Pro User  says:

Thanks. I've added a "more..." link to the photo pool after seeing your script.

The difference between Fetch/Open. Fetch _allways_ read every group feed. And Open, just show the container, if it already has pictures in it, don't reload. Just that.
Posted 83 months ago. (permalink)

view photostream

cmiper says:

Works like a charm now!

Thanks for this and all the work you put into it, it's a great script!

Also, I hope you don't mind, but I like to "keep it in one window" so I removed the "target" as to keep the viewing of "more" in the same window. I realise that some (maybe most) people might like the full pool pages to open in a new window, but I pretty much go through my pools one-by-one depending on whats in them.

Thanks to your script, I can now decide from the groups page if it's worth jumping into the pool or not (pun intended).

:-)
Posted 83 months ago. (permalink)

view photostream

steeev is a group administrator steeev says:

one small suggestion, IMHO, that would improve the usability of what is already a brilliant and extremely useful script, would be to make clicking the multicoloured grid close the opened photo view as well as opening it. as sometimes when you open a group pool you dont see anything interesting and it would be cool if you could simply click the grid again to close it rather than have to move the mouse over to the cross on the other side of the window.
Posted 83 months ago. (permalink)

view photostream

steeev is a group administrator steeev says:

i came up with a mod, that almost achieves what i had in mind, it doesnt look as pretty, but it makes the close button closer to the open button, which makes it easier to quickly check a group and close it again if you dont like what you see :)

just swap lines 64 and line 65 of the source code, i.e move line 65 to 64 and 64 to 65
Posted 83 months ago. (permalink)

view photostream

_guu_  Pro User  says:

that was the original functionality for that button. You are right, is faster that way.

Besides, another improvement would be to replace feed reading for native calls to flickrAPI, so you can read all groups, even privates ones, and read more info about the photos.

Now.. I'm only need a few hours to do it :)
Posted 82 months ago. (permalink)

view photostream

steeev is a group administrator steeev says:

ive thought of a cool extension to this script, you could have an add to faves link for each group on the page.

clicking the add to faves link will store that group via GM_setvalue.

there would be an additional link on the groups list page to view your favourite groups. it would replace the standard group list with just the list of all the groups that you have added to your favourites. the links in this list would also have a remove from faves list link and clicking it would remove that group from the list.
Posted 81 months ago. (permalink)

view photostream

laura dot says:

I love this script. But flickr seems to have changed the group page and now it doesn't work. Any plans to fix it? Please.
Posted 80 months ago. (permalink)

view photostream

tracer.ca says:

Edit the Script
Replace Line 39 with
var thegroups=insertpoint.getElementsByTagName('li');
Posted 80 months ago. (permalink)

brianwallace has moved (see profile) [deleted] says:

Script seems to be missing from the location posted at the top of the page:

clippoapesta.com/gm/flickr_group_pool_watch.user.js

... or else the server is down. Anyone know of another place this can be found?
Posted 80 months ago. (permalink)

view photostream

tracer.ca says:

gustavoandresmarin hasn't posted anything on his stream since mid oct. I don't have him as a contact to message him directly. Seems like he's not around.
If he msgs me and doesn't want me to host this I'll take it down. For now here it is
www.tracer.ca/stuff/flickr_group_pool_watch.user.js

I'm a huge fan of this script, so until gustavoandresmarin resurfaces I'll keep an eye out on this thread for bugs etc. I'll post another release soon with improved spacing and comments in the code.
Originally posted 80 months ago. (permalink)
tracer.ca edited this topic 80 months ago.

view photostream

_guu_  Pro User  says:

The server is down permanently, I'll see to fix the script ASAP. But can't promise to be quick. sorry
Posted 80 months ago. (permalink)

brianwallace has moved (see profile) [deleted] says:

Anyone else having trouble with this script w/ the latest Firefox and GM?
Posted 79 months ago. (permalink)

view photostream

.CK says:

Since GM 0.6.x, user scripts are wrapped by a sandbox. The way of access to DOM and window objects needs to be changed. I fixed some scripts for my own use.

To gustavoandresmarin,

I just fixed this great script to work with Firefox 1.5 + GM 0.6.4. I host on my server temporarily if you don't mind.

Download: webdev.yuan.cc/greasemonkey/flickr.group_spool_watch.user.js
Originally posted 79 months ago. (permalink)
.CK edited this topic 79 months ago.

brianwallace has moved (see profile) [deleted] says:

I'm no programmer, and I don't understand most of what you said in those first two sentences, but that sure did the trick! Thanks!
Posted 79 months ago. (permalink)

view photostream

.CK says:

decembre,

I also fixed 'Super Batch' a few days ago. Did you install the latest one?
Posted 79 months ago. (permalink)

view photostream

_guu_  Pro User  says:

Thanks to .CK to keep this script hosted and all the fix. I've updated the first post to link the last version of the script.
Posted 78 months ago. (permalink)

view photostream

_guu_  Pro User  says:

The script is also listed in UserScripts
Posted 74 months ago. (permalink)

view photostream

steeev is a group administrator steeev says:

i noticed another small modification that can be done to the script, which might be useful to some people.

if you replace:
var thegroups = insertpoint.getElementsByTagName('li');
with
var thegroups = document.getElementsByTagName('li');

then the 2 lists of groups at the bottom of the page i.e "most popular groups" and "recently added groups" also have the magic of the groups photo pool watch script cast upon them.
Originally posted 74 months ago. (permalink)
steeev (a group admin) edited this topic 74 months ago.

view photostream

_guu_  Pro User  says:

i tried that, but there are some LI elements that don't have to be parsed, so the script behaves awkward. I have to check on the LI/A/HREF content to see if it is a group link. And there is problems for the duplicated groups between your groups and the ones at the bottom.

Is a good idea, just have to be polished (means.. more work for me :P )
Posted 74 months ago. (permalink)

view photostream

mortimer?  Pro User  says:

In the group page enhancer, I use Xpath to get the right LIs:
var groupLinks = document.evaluate(
"/html/body/div[@id='Main']/table/tbody/tr/td[@id='GoodStuff']/table/tbody/tr/td//li",
document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); // Get all group

for(var i = 0; i < groupLinks.snapshotLength; i++) { // For each group...

var al = groupLinks.snapshotItem(i);
..........
}

I haven't yet looked in the cost of that against just doing a getElementByTagName('li') then a check on the href (that I do anyway to get the group id).

You could probably do a getElementByTagName(li) on the first table of GoodStuffs. That might be sufficient (the others LI are not in GoodStuffs anyway).
Posted 74 months ago. (permalink)

view photostream

steeev is a group administrator steeev says:

gustavoandresmarin wrote:

----------------
i tried that, but there are some LI elements that don't have to be parsed,
----------------

ah... i didnt have that problem, because ive got another script that im working on that removed all the other lis hehe. though you are right there was a problem with clicking a duplicated group, but i can live with that :)

mortimerpas idea sounds good too.
Posted 74 months ago. (permalink)

view photostream

Métempsycose  Pro User  says:

truly AMAZING script! bravo... rebravo.. No flickrer should be without it. I wonder if you might consider how to make the open tabs persistent. That is,.. when I leave the groups and then later come back.. they've all closed. It'd be GREAT if they could reopen where I left them... if that's not impossible.
Posted 74 months ago. (permalink)

view photostream

DoubleGrande  Pro User  says:

steeev posted a fix in another thread
Posted 73 months ago. (permalink)

view photostream

_guu_  Pro User  says:

Steev fix it and send it to me. I've updated the script. You can download from here: Group Photo Pool Watch.
Posted 73 months ago. (permalink)

view photostream

clickykbd  Pro User  says:

Great script. I haven't installed it until now but know It will be a joy to use.

Would be kinda cool if you could set a list of groups by GUID or unique URL name to expand by default when the page loads.
Originally posted 73 months ago. (permalink)
clickykbd edited this topic 73 months ago.

view photostream

Daniel Andre says:

Great great script! Love it! thanks guu...
Posted 73 months ago. (permalink)

view photostream

mhusson says:

Gustavo- even with the newest version of the script and the latest firefox + greasemonkey, I am getting some problems with your script:
This is what it does after I clicked on the little icon next to flickr central:



Anyone else getting this? Or gustavo, you have any ideas on why this is happening? Any help would be great as I just love this script.
Posted 73 months ago. (permalink)

view photostream

_guu_  Pro User  says:

Did you uninstall any previous version first?. Maybe another GM script is in the way. Which ones do you have that may modify group page?
Posted 73 months ago. (permalink)

view photostream

mhusson says:

Yeah, I uninstalled the old one first. I also disabled all the others to make sure they weren't interfering, and I turned off my adblock in case it was blocking something, but even with all that, it's still now working.

I will perhaps try to debug it myself and figure out what is going on there. When I click the icon, I see my progress bar doing its think, so something is happening, just not displaying right. I'll let you know if I find out whats going on. Thanks for the response.
Posted 73 months ago. (permalink)

view photostream

mhusson says:

Okay that didn't take long. I have the stylish extension installed (it's like greasemonkey for CSS) and I accidentally had a global style declared that was botching up your script. Sorry, stupid mistake on my part. Everything works fine now. ;)
Posted 73 months ago. (permalink)

view photostream

steeev is a group administrator steeev says:

i made another hack of this script, this time, i just hacked it so it works on a users profile page too, so you can see what kind of images are in that users groups.

in order to activate this you need to add some includes
flickr.com/people/*
and
www.flickr.com/people/*

N.B if you just edit an already installed script to add the includes, greasemonkey wont recognise them. you will need to add the includes in the script manager screen as well.

once youve done that, replace the following line:
insertpoint=document.getElementById('Main').getElementsByTagName('td')[1];

with

if (document.location.href.match(/\/people\//))
var insertpoint=document.getElementsByTagName('ul')[0].parentNode;
else
var insertpoint=document.getElementById('Main').getElementsByTagName('td')[1];

then the group pool watch should also work on users profile pages.
Originally posted 73 months ago. (permalink)
steeev (a group admin) edited this topic 73 months ago.

view photostream

DoubleGrande  Pro User  says:

Nifty.
Posted 73 months ago. (permalink)

view photostream

यश says:

steev can u post the updated script so I wont have to get my hands dirty?
thanks!
Posted 70 months ago. (permalink)

view photostream

KWentin says:

> 503 - Service Not Available

any updates? please? would be great :)
Posted 69 months ago. (permalink)

view photostream

Pixel Wrangler says:

When I click on Fetch All, only one group shows photos... no other groups (that have photos, btw) open.

FWIW, I've tried this over the past few days... always the one same group showing photos...

Any pointers appreciated.

[EDIT] 09-15-06
Addendum:
I just tried the script while on someone else's profile page (not a contact of mine, btw).

FETCH opened 6 of 15 photo-content groups.

I dunno if this information means anything -- just trying to provide what info I can/notice.
Originally posted 69 months ago. (permalink)
Pixel Wrangler edited this topic 69 months ago.

view photostream

harry harris  Pro User  says:

Same (as Pixel Wrangler) here. I get roughly 1 in 10 Groups coming back with photos.. always the same ones. Even if I just try and open individuals, it's only the same few that deliver content.

It does say in the description that some Groups won't feed properly, but this seems like a high percentage - what might be the cause?

Happy to help in any way I can, this is a wonderful script Gustavo - thank you!
Posted 69 months ago. (permalink)

view photostream

KWentin says:

_guu_ says:
The script is also listed in UserScripts


this one worked for me in case anyone else wonders! :)
Originally posted 69 months ago. (permalink)
KWentin edited this topic 69 months ago.

view photostream

Lars Pohlmann  Pro User  says:

It's a problem with the naming of the links. Some links contain the real group-id, but the most don't.

I edited the script, so that it first fetches the group-pool-page and retrieves the real group-id, then fetches the xml-feed with the newest photos.

It works for me, but be aware: This is a (really) dirty hack. Be prepared to cook some coffee after you clicked on "fetch all".

It's just meant to show, what the problem is with the script right now, but not the way it should be solved... ;)

Maybe I will look further into it later, cause I really like this functionality.

Download here:
www.raum-fuer-notizen.de/photography/downloads/flickrgrou...
Posted 68 months ago. (permalink)

view photostream

Lars Pohlmann  Pro User  says:

nobody uses this?
Posted 67 months ago. (permalink)

view photostream

ÐIÐËO  Pro User  says:

malanalars: the original version wasn't working for me so i installed your version and it works like a charm. thanks for the update
Posted 66 months ago. (permalink)

view photostream

brianwallace  Pro User  says:

working again now for me too! thanks for the hack of a hack, malanalars!
Posted 66 months ago. (permalink)

view photostream

KWentin says:

It's a problem with the naming of the links. Some links contain the real group-id, but the most don't.


that must have been it, now it seems to work for all the groups i'm using.. great job!

however, I also posted a similar www.flickr.com/groups/flickrhacks/discuss/72157594456826992/. i think i'll stick to that one
Posted 66 months ago. (permalink)

view photostream

zogecko  Pro User  says:

malanalars: *Thank you* for the bug fix. I love this script but I was only getting 1 group in 10, if that. This is so much better. :)

Thanks!
Posted 65 months ago. (permalink)

view photostream

mcdlee  Pro User  says:

Thank you. It's useful, but doesn't work at some group. Is there any limit?
Originally posted 63 months ago. (permalink)
mcdlee edited this topic 63 months ago.

view photostream

doorman_665 says:

I have been using & loving this script for some time...
However a recent upgrade to a pro account has caused problems with other menus when I use this script.

ScreenShot00001

I have tried unloading all other "GM scripts" and "Userstyles" and the problem continues. Any help would be welcomed.
Originally posted 62 months ago. (permalink)
doorman_665 edited this topic 62 months ago.

view photostream

steeev is a group administrator steeev says:

try this steeev.freehostia.com/flickr/flickrgroupspoolwatch.user.js
the file is also available here steeev.cfdeveloper.co.uk/flickr/flickrgroupspoolwatch.user.js
Originally posted 62 months ago. (permalink)
steeev (a group admin) edited this topic 61 months ago.

view photostream

doorman_665 says:

Thank you soooo much steeev, I was lost without this GM script.
Posted 62 months ago. (permalink)

view photostream

chipple  Pro User  says:

Just starting using this. Great script!

I noticed that the latest supplied by steeev didn't work with groups that use the default ID (e.g. 12341234@N00). I patched it like this:

Line 97:
- if( groupNameID == "" ) groupNameID = tmp.pop();
+ if( groupNameID == "" ) groupNameID = tmp.pop().replace('@','_ATMARK_');

Line 141:
- url = 'http://www.flickr.com/groups/'+groupNameID+'/pool/feed/?format=atom0.3';
+ url = 'http://www.flickr.com/groups/'+(groupNameID.replace('_ATMARK_','@'))+'/pool/feed/?format=atom0.3';

Line 160:
- apiurl="http://" + hostname + "/services/rest/?method=flickr.urls.lookupGroup&api_key=XXXXX&url=http://flickr.com/groups/"+groupNameID;
+ apiurl="http://" + hostname + "/services/rest/?method=flickr.urls.lookupGroup&api_key=XXXXX&url=http://flickr.com/groups/"+(groupNameID.replace('_ATMARK_','@'));
(Replace with appropriate api_key above)
Originally posted 51 months ago. (permalink)
chipple edited this topic 51 months ago.

view photostream

My Baby Mia [very busy for few days]  Pro User  says:

to doorman

I delete it from adds on
applications and computer library.....
I delite GM too

on mac finder shaw me where is it!
Than I download new GM and now organizers for groups and contacts don't work prperly:

tags! I tag person/group, but it doesn't shaw

I hope I help you!
Posted 49 months ago. (permalink)

view photostream

My Baby Mia [very busy for few days]  Pro User  says:

@ chippie

Can I copy and paste this to my script

Where I have to write api_key /mine?/?????

and ID/mine?/???????

pic of contact doesn't shaw any sign of tags [ I tag almost all contacts]

farm3.static.flickr.com/2144/2486628819_e4a8604d65_b.jpg

thanks
Originally posted 49 months ago. (permalink)
My Baby Mia [very busy for few days] edited this topic 49 months ago.

view photostream

chipple  Pro User  says:

Use the api_key already in the script.
No need to replace anything else (ID).
Posted 49 months ago. (permalink)

view photostream

My Baby Mia [very busy for few days]  Pro User  says:

where? how?
Posted 49 months ago. (permalink)

view photostream

Brian O'Mahony  Pro User  says:

I have finally installed it but it's not working properly! The selection of 10 photos are not showing up! Also there are some icons above my main links of "Home", "You", Organize", "Contacts", "Groups", "Explore"? Do you have to restart Firefox first?
Originally posted 43 months ago. (permalink)
Brian O'Mahony edited this topic 43 months ago.

view photostream

dfg photography  Pro User  says:

This is happening to me too, after I installed the latest version of Groups Organizer. :-(
Posted 42 months ago. (permalink)

view photostream

dfg photography  Pro User  says:

Hmm, well I made some progress with this. I uninstalled both the Groups Organizer and Pools Watch and re-installed Steeev's Groups Organizer. I discovered that installing the Pools Watch from Steeev's link in this thread (approx. 20 months ago) got me a step closer - no unwanted icons above the main menus.

Unfortunately, I still cannot select the 10 'most recent'. 'most interesting', etc.
Posted 42 months ago. (permalink)

view photostream

dfg photography  Pro User  says:

Ok, it just started working. :-)
Posted 42 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