// ==UserScript== // @name Flickr User Icon Enhancer // @namespace http://www.rhyley.org/gm // @description Add links to FlickrMail, view Profile, and view Favorites to the floating pink popup on a user icon. // @include http://www.flickr.com/* // @include http://flickr.com/* // ==/UserScript== (function() { unsafeWindow.mailIcon = ''; unsafeWindow.profileIcon = ''; unsafeWindow.faveIcon = ''; unsafeWindow.icon_write_link = function icon_write_link(elm) { var str = ''; myIcons = ' '+ unsafeWindow.mailIcon +''; myIcons += ' '+ unsafeWindow.profileIcon +''; myIcons += ' '+ unsafeWindow.faveIcon +''; if (elm.self == 1) { str = 'That\'s you!'; } else if (elm.contact == 0) { str = 'Add '+elm.pname+' as a contact?'; str += myIcons; } else { str = ''+elm.pname+' is'; if (elm.fri && elm.fam) { str+= ' a friend and family'; } else if (elm.fri) { str+= ' a friend'; } else if (elm.fam) { str+= ' part of your family'; } else { str+= ' a contact'; } str+= '. Change?'; str += myIcons; } unsafeWindow.icon_linkdiv.innerHTML = '
'+str+'
'; } } )();