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.

Join the Conversation

1 Comment

Leave a comment

Your email address will not be published.