FlickrCommonsRecommendations

By clickykbd Last update Jan 26, 2009 — Installed 502 times.

Script Summary: On Flickr.com. See more "The Commons" photos recently favorited by people who like the one you are viewing. Inspired and adapted from "Flickr Cross Recommendations" [http://userscripts.org/scripts/show/35134]



Display Method "SideBar" (New in version 0.2)
GM-Script Update: FlickrCommonsRecommendations (by clickykbd)

Display Method "Main" (Original Version)
GM Script: FlickrCommonsRecommendations (by clickykbd)

// FlickrCommonsRecommendations
// version 0.2
// 2009-01-25
// Copyright (c) 2009, Ryan Gallagher <clickykbd>
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
// This is a Greasemonkey user script.
//
// To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// IF YOU ARE UPGRADING FROM A PREVIOUS VERSION OF THIS SCRIPT, go to
// Tools/Manage User Scripts and manually uninstall the previous
// version before installing this one.  This script lacks an auto-update
// prompt.
//
// Go here for latest version:
// http://userscripts.org/scripts/show/40702
// 
// To uninstall, go to Tools/Manage User Scripts, select this script,
// and click Uninstall.
//
// --------------------------------------------------------------------
// What It Does:
//
// www.flickr.com (photo page):
// 
// On a flickr photo page.  It tests to see if the photo is a member
// of "The Commons" [http://www.flickr.com/commons/].  If so it
// displays a list of recommended photos based on what else the people
// who recently favorited this one also favorited.  Unlike the similar
// "Cross-Recommendations" script, this one is Commons specific and
// only shows other Commons photos.
//
// This script utilizes the Flickr API [http://www.flickr.com/services/api]
// and is not necessarily effecient because digging for "commons photos"
// within people's favorites takes some data processing and flickr exposes
// no methods to get to them quickly.
//
// Inspired and Adapted From:
// 
// The wonderful "Cross Recommendations" Script by Simon Whitker which
// I also recommend and does not conflict with this script.
// http://userscripts.org/scripts/show/35134
//
// --------------------------------------------------------------------
// ToDo:
//
//  * translate the heading phrase into flickr languages.
//  * watch the Key Stats, perhaps script is too API demanding?
//
// --------------------------------------------------------------------
// ChangeLog:
//
// 20090125 v0.2
//  * Now smarter, attempts to avoid re-showing you photos you have
//    recently favorited.  Should keep the new content coming.
//    This requires you to be logged into flickr, otherwise old method.
//  * New default display as a "sidebar" panel with 9 images.  Old method
//    still available if you edit the config variables.
//  * Changed method for scoping the flickr globals, now uses unsafeWindow
//  * New flickr globals depreciated old NSID & LANG detection methods.
//  * Abstracted CSS for easier user editing.
// 20090118 v0.1
//  * initial version.