Blog Pile

Late Night Code Frenzy Flickr CC Attribution Helper Updated

It was an all day journey to get home from Canada (Edmonton to Minneapolis to Phoenix by plane, then drive to Strawberry), and after dumping the bags and shredding the junk mail, I got distracted.

Two hours later, I realized it was late.

But if you have not heard, flickr has a preview of a new layout for your photo pages – bigger images, and some movement of buttons and sidebar stuff. It’s refreshing. To activate it on your own photos, go to

Then I realized that changes in the structure of the page would hose my CC Attribution Helper script, which as a browser script, hangs its code threads on the internal page structure, which is significantly different when you lift the hood.

If you are among the small percentage who has not heard of this script (yeah right, more likely the other way around), what it does is to add to any flickr page with creative commons licensing, a cut and past field for either embedding the image in a blog with attribution provided, or just a simple text string for, say providing attribution in a presentation slide. It saves a lot of time and copy/paste steps to do this– here’s an example:

cc licensed flickr photo shared by cogdogblog

So with a bit of brute force effort (I am totally guessing on a lot of the XPath coding), I managed to create a version that works with the new layout:

It actually can handle both layouts (it sniffs for a div id that is only found on the new layout).

Its been pretty minimally tested, but I think its working correctly (only showing on flickr photos that have a cc license).

You can install this new (0.4) version of Flickr CC Attribution Helper at

Feedback greatly appreciated!

If this kind of stuff has value, please support me by tossing a one time PayPal kibble or monthly on Patreon
Become a patron at Patreon!
Profile Picture for CogDog The Blog
An early 90s builder of web stuff and blogging Alan Levine barks at on web storytelling (#ds106 #4life), photography, bending WordPress, and serendipity in the infinite internet river. He thinks it's weird to write about himself in the third person. And he is 100% into the Fediverse (or tells himself so) Tooting as


  1. Thanks for this script. It saves lot of time. In future, it would be great to have the link and attribution automatically in a small transparent strip as we see in the homepage of flickr.
    Thanks again for it

Leave a Reply

Your email address will not be published. Required fields are marked *