Apple Store bookmarklet

Remix: this movie + WordPress’ PressIt bookmarklet = Apple Store bookmarklet

javascript:if(navigator.userAgent.indexOf('Safari') >=0){
Q=getSelection();
}else{
Q=document.selection?document.selection.createRange().text:document.getSelection();}
void(window.open('http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore' +
'?productLearnMore='+encodeURIComponent(Q)));

(I’d make it draggable, but WordPress auto-curly-quoting is being too clever.)

Update: the movie is from Jon Rentzsch.

One Response to Apple Store bookmarklet

  1. Pedraum says:

    Hey Paul, nice work.

Leave a Reply

Your email address will not be published. Required fields are marked *