jQuery Snippet: ISBN beside book title in Amazon

I often use Amazon to find the ISBN of a book, and it always annoys me (slightly) that I have to scroll down and scan the page looking for this number. So today I put in practice again my recently acquired basic knowledge of jQuery and wrote this snippet that places the ISBN, in square brackets, right beside the book title.

var isbn10 = $("div.content li:contains(ISBN-10)").text().split(" ")[1];
$("h1.parseasinTitle").append(" [" + isbn10 + "]");

And here is the corresponding bookmarklet:

Amazon ISBN beside title

Leave a Reply