Because I'm a geek - that yellow bastard

recent entries:
friends | friends2:
my friendfeed:
about me:

about me advice art atlanta being yellow books cars climbing comics dad fic food games gaming geekism go gators hell is... holy crap home insomnia language meme money movies music odd poetry poker politics quotes singletude spam tech this sucks travel tv why i rule why i suck work

more bastard
bronze vip archives
notes of a code poet
furious ming
dude check this out
that bastard multiples

that bastard suggests
cap'n ken
coffee achiever
el guapo
bad news hughes

the stack
secret history:

the queue
battlestar galactica::

recent posts

June 17th, 2004

Previous Entry Share Next Entry
2004.0617.1202::Because I'm a geek
[ | | ]
Of the rare individuals reading this journal by actually going to the front page and clicking through the entries, some of you may have noticed three new links at the bottom of the left-side linkbar. Labelled "current..." I've taken to listing the various media that I'm partaking of at the time (of the last update).

Since two of the items will be books ("current read" and "current bookclub"), I figured I'd go ahead and link to Amazon (and no, I'm not getting anything from the link).

Linking to Amazon is a bit of a pain in the ass. The fact remains that Amazon URLs, while from a coding point of view probably a huge weight lifted from their developers, are quite possibly the most user-unfriendly aspect of their site. Apart from their coders, who knows what part of the URL actually contains the portion of the site that pertains to the product you're looking at and what part will grant some anonymous surfer access to your wish list and credit card number? (yes, I'm being sardonic)

Paul Bausch, author of Amazon Hacks knows.

And he provided the following page on O'Reilly's site for creating shorter URLs to Amazon products.

Since I'm a geek, I threw together the following bookmarklet to click on when you're surfing Amazon and want to generate the short URL. It'll generate a small popup window where the short URL is easily copy-and-paste-able.
Link It
Edit: Since LJ apparently doesn't let you embed javascript code in a link anchor, the link goes to a page I have on my own site with the bookmarklet.

The technically-inclined might ask why I didn't just use javascript's alert() function--Mozilla Firefox doesn't appear to allow you to copy and paste from the alertbox.

2 comments | Leave a comment )


(no subject) - (Anonymous)
thepeopleseason::2004.06.17.10:21 am
[User Picture]Ah--I can probably fix the issue in a little bit...

Ideally, I could just hit the bookmarklet and have it end up in the clipboard, but unfortunately, the "javascript" function to put stuff into the clipboard is MSIE only.

thepeopleseason::2004.06.17.10:53 am
[User Picture]The page now has an updated "Link It" to correct for the international Amazon hosts. It'll also not pop anything up unless the host specifically has "amazon" in it.
Go to Top: