Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Short Amazon Permalinks

When viewing Amazon product pages, this script will convert the title of the product to a shortened link back to the product. Handy for pasting the link to e-mails and such.




Jun 7, 2008
Some Girl User

Looks like Amazon changed the markup again. Assuming one already changed "//b[@class='sans']" to "//*[@class='asinTitle']", now changing it to "//*[@id='btAsinTitle']" gets it working again.

By the way, if you're in there editing and you're a member of Amazon's affiliate program, you could also modify it to add your affiliate ID, like so:

origTitle.innerHTML = '<a href="http://amazon.com/o/ASIN/' + asin + '?tag=YOUR-ID-HERE">' + origTitleHTML + '</a>';

Of course, you don't get revenue for your own purchases, but assuming you're pasting the link to give to other people, could be handy.

 
May 1, 2008
Jeff Martin Scriptwright

Looks broken due to changes in Amazon's markup. Changing "//b[@class='sans']" to "//*[@class='asinTitle']" fixes it.

 
Jan 23, 2008
Juhani Scriptwright

Nice script :)

I changed the rewritten url from http://amazon.com/o/ASIN/ to http://' + document.domain + '/o/ASIN/', so it works on all amazon pages.

 
Feb 28, 2006
Yokhannan 1 User

Works as advertized. Thanks!

You could comment on this script if you were logged in.