Skip to content

Instantly share code, notes, and snippets.

@1rick
Last active December 11, 2015 05:58
Show Gist options
  • Save 1rick/4555401 to your computer and use it in GitHub Desktop.
Save 1rick/4555401 to your computer and use it in GitHub Desktop.
Asana bookmarklet
javascript: function trim12(str){ var str=str.replace(/^\s\s*/,''), ws=/\s/, i=str.length; while(ws.test(str.charAt(--i))); return str.slice(0,i+1);}location.href='mailto:x+2994000114462@mail.asana.com?SUBJECT='+encodeURIComponent(trim12('[Story idea] '+document.title))+'&BODY='+encodeURIComponent(trim12(document.title))+encodeURIComponent('\n\n'+location.href)+encodeURIComponent('\n\n%3E'+window.getSelection());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment