My Amazon Bookmarklet

I used to have a bookmarklet for generating Amazon Associates links but it hasn’t worked for quite a while. Amazon has been known to change their URLs from time to time and with one of their changes, this tool just stopped working.

After doing a quick search I decided that rather than use someone’s overly complex javascript, I would just write my own. Approximately two minutes later, I came up with this:

javascript:asin=document.handleBuy.ASIN.value;if(asin)
{mylink='http://amazon.com/exec/obidos/ASIN/' + asin +
'/ref=nosim/marusincom';prompt('Here is your link...',mylink);location.href=mylink;}

I think that’s all I need to do… All you need to do is drag this link to your toolbar in your favorite browser and you should be good to go. Just navigate to a product’s page on Amazon and click the bookmarklet in your toolbar.  Of course, if you don’t want to be giving me a referal for using it, I’m sure you’re smart enough to figure out how to change the associate id. :)

Let’s test it out, now… Who wants to buy Maggie this wagon? :)

tags: , , , , ,
This entry was posted on Friday, July 14th, 2006 at 9:33 am and is filed under nerd. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply