javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection, s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.instapaper.com/b', l=d.location,e=encodeURIComponent,p='?v=3&u='+e(l.href) +'&t='+e(d.title) +'&s='+e(s), u=f+p;try{if(!/^(.*\.)?instapaper([^.]*)?$/.test(l.host))throw(0); iptstbt();}catch(z){a =function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1, width=250,height=150'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0); else a();}void(0)
I'm interested in using similar JavaScript if I ever write my own personal bookmarking service.