This Blog has moved to http://www.falsepositives.com/

False Positives Adventures in Technology, SciFi and Culture from Toronto

Thursday, May 26, 2005

Rewriting Amazon : GreaseMonkey script for the Toronto Public Library

I customized Carrick Mundell's LibraryLookup Greasemonkey script (for the Seattle Public Library) to do the same for the Toronto Public Library.

What's it do? On any Amazon.com book listing page, the script inserts a hyper-link below the book title which, when clicked, will search for the book in the Toronto Public Library catalog.

I also made a small modification: the Library Search Url and Library Name are now separate variables to make it a little easier to customized for other Library Systems.

Here's the Script: amazontorpllinky.user.js
Now go browse for The Confusion (The Baroque Cycle, Vol. 2)

Note: I've tested this on the Amazon sites for US, Canada, France Germany and Japan with success. However, it does not work for the UK site. Why? Because the UK does not use the same class element names to give it a place to insert the html rewrite link. In fact, it only uses 2 class names on the whole item page. The Style Sheet and classes are there, they just don't use them. Weird.

This particular madness was kickoff by John Udell who started the LibraryLookup Project in 2002 (with bookmarklet's). Many Thanks.


Please Note that this Blog (False Positives) has moved to http://www.falsepositives.com/

0 Comments:

Post a Comment

<< Home