Skip to content

Instantly share code, notes, and snippets.

@dhou
Created January 23, 2009 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dhou/50974 to your computer and use it in GitHub Desktop.
Save dhou/50974 to your computer and use it in GitHub Desktop.
CmdUtils.makeBookmarkletCommand({
name: 'clip-to-evernote',
icon: "http://evernote.com/about/img/favicon.ico",
homepage: "http://damienh.org",
author: { name: "Damien Hou", email: "houyongr@gmail.com"},
license: "GPL",
description: "Summon Evernote, any where any time. That's it!",
help: "Just type 'clip-to-evernote'",
url: "javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();",
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment