Flickr EXIF Decorator

By Simon Whitaker Last update May 29, 2007 — Installed 16,391 times. Daily Installs: 16, 7, 11, 12, 11, 10, 7, 16, 14, 12, 31, 7, 28, 9, 13, 13, 7, 1, 7, 17, 13, 16, 10, 15, 7, 22, 8, 10, 17, 5, 13

Archived Comments (locked)

Subscribe to Archived Comments 12 posts, 11 voices

Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Arnoud User

Very nice script, and thanks for that fix Bekir! Added Lens Type to my own script.

 
pellk User

so useful, so stylish. nice piece of code.

 
Bekir Dogan User

Hi;
This script doesn't work for my private pictures, because it use developers key for api calls.

Flickr has it's wown API call methot in loaded JS. So i changed some parts of the script tu use this builtin function, and removed GM_xmlhttpRequest.

Here is the diff, and now it also works for my private pictures.


bekir@hede:~/.mozilla/firefox/32ba1h2c.default/gm_scripts$ diff -u flickrexifdecorator.user.js-orig flickrexifdecorator.user.js
--- flickrexifdecorator.user.js-orig 2007-10-30 11:55:06.000000000 +0200
+++ flickrexifdecorator.user.js 2007-10-30 12:02:41.000000000 +0200
@@ -70,16 +70,10 @@

photo_id = location.pathname.split('/')[3];
var img = document.getElementById('photoImgDiv' + photo_id);
-
- GM_xmlhttpRequest({
- method: 'GET',
- url: 'http://api.flickr.com/services/rest/?method=flickr.photos.getExif'
- +'&api_key=45d5d4b7dff9bc653c8eb3e73271c10c'
- +'&format=json&nojsoncallback=1'
- +'&photo_id=' + photo_id,
-
- onload: function(responseDetails) {
- var data = eval('(' + responseDetails.responseText + ')');
+ var listener = {
+ flickr_photos_getExif_onLoad: function(success, responseXML, responseText, params){
+ var rsp = responseText.replace(/jsonFlickrApi/,'');
+ var data = eval(rsp);
var exif_array = data.photo.exif;
var exif = new Array();
var rawexif = new Array();
@@ -220,5 +214,6 @@
img.addEventListener('mouseover', mouseOverListener, false);
overlay.addEventListener('mouseout', mouseOutListener, false);
}
- });
+ }
+ unsafeWindow.F.API.callMethod("flickr.photos.getExif",{photo_id:photo_id, format:"json"}, listener)
}
bekir@hede:~/.mozilla/firefox/32ba1h2c.default/gm_scripts$

 
BlindWanderer Scriptwright

On line 73 this needs to be added so it doesn't throw errors on other pages:
if(!img) return true;

 
bitrot Scriptwright

Tagging seems to be back up now!

 
Simon Whitaker Script's Author

Yeah, the tagging thing is a real shame, I searched for ages trying to figure out how to add tags before coming to the conclusion that they must be disabled right now. Hopefully they'll be back before long.

 
TeknoMusicMan User

Great Script!

 
dirgon User

Disregard my message about tagging. I just found out that tagging is currently disabled.

 
dirgon User

To the author... add a "flickr" tag to this script show it will show up when doing a tag search.

 
Aleksandar D... Scriptwright

Clara, searching for flickrexifdecorator.user.js file (located inside gm_scripts folder), deleting it and installing it again should do the trick.

 
Clara User

I uninstalled and can't install again, please help. See the error here:
http://tam-tam.tumblr.com/post/2686209

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel