More fun with the monkey
Cory Doctorow points to America from the Great Depression to World War II: Color Photographs from the FSA-OWI, 1939-1945, with the following observation:
Unfortunately, the organizational back-end for this is so primitive (especially in comparison with modern image-sharing and organizing sites like Flickr) that it, too, seems to hail from 1939-1945, making the site a real pain to navigate and use.
Thanks to Greasemonkey, great content spoiled by poor navigation is a solvable problem.
americanmemoryfixer.user.js includes the following improvements:
- Changes the colour scheme to black-on-white, and the typeface to Verdana.
- Removes all table borders.
- Adds headings to some pages, and fixes various title tags.
- Sets the default gallery view to be a set of thumbnails, rather than a list of names.
- Displays a large image (as opposed to a thumbnail) when you view a photograph.
The scariest hack in the script is the way in which subject page titles are passed around. In the current site, if you visit a category page (such as Sharecroppers) the title of the category is not displayed on the page—even though it has been passed as a parameter in the URL. If you click a link (say to the Galley thumbnail page) the information in the URL is lost as well.
My solution was to extract the subject from the URL on that first page, then rewrite the other links to include an additional “&subject=Sharecroppers” parameter. This new parameter is ignored by the CGI scripts that power the site, but my Greasemonkey script watches out for it on subsequent pages and uses it to display a title (and further propagate it to other links on the page). It’s not a very robust solution, but it’s good enough.
There’s plenty of scope for further improvement—if you want to use my script as a starting point, please feel free.
Geoff - 18th September 2005 05:54 - #
Arnaud - 18th September 2005 13:06 - #
S. McGillicuddy - 18th September 2005 13:35 - #
Simon Willison - 18th September 2005 14:20 - #
Julian - 18th September 2005 14:58 - #
Chris Bloom - 18th September 2005 14:59 - #
alexrose - 18th September 2005 17:10 - #
Dave D - 18th September 2005 21:41 - #
Blofield - 19th September 2005 06:15 - #
Marcus Tucker - 23rd September 2005 13:29 - #
scristian - 2nd October 2005 21:46 - #
I tried to fixes to Greasemonkey recommended here in the comments, but it still wasn't working. When I would try to install the script, whether by right-click, download-install, or opening the script page and then installing, I was getting a Greasemonkey dialog box that didn't have any content, and wouldn't let me add anything or even click the OK button.
However, some poking around on mozdev led me to this post on Greaseblog about corruption weirdness in upgrades of Greasemonkey. I followed the instructions, and all was well.
Just hoping this might help some people having extreme problems.
The interface changes are a great improvement. Way easier on the eyes... Great work!
Andrea - 14th October 2005 16:39 - #
dchud - 7th November 2005 01:46 - #