Skip to content

Instantly share code, notes, and snippets.

@lidaobing
Created September 8, 2010 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lidaobing/570259 to your computer and use it in GitHub Desktop.
Save lidaobing/570259 to your computer and use it in GitHub Desktop.
bookmarklet for rememberthemilk, support remember the url of current page
javascript:(function(){h='m.rememberthemilk.com';p='/add';if(window.getSelection){t=window.getSelection();}else%20if(document.getSelection){t=document.getSelection();}else%20if(document.selection){t=document.selection.createRange().text;};cp='http://'+h+p+'?name='+((null==t||t==""||t==undefined)?encodeURIComponent(document.title):t)+'&url='+encodeURIComponent(location.href);w=window.open(cp,'addwindow','status=no,toolbar=no,width=250,height=560,resizable=yes');setTimeout(function(){w.focus();},500);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment