Skip to content

Instantly share code, notes, and snippets.

@kaplanmyrth
Forked from akatopo/README.md
Last active December 28, 2015 19:39
Show Gist options
  • Save kaplanmyrth/7551390 to your computer and use it in GitHub Desktop.
Save kaplanmyrth/7551390 to your computer and use it in GitHub Desktop.

This is a command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

This command opens a new window and starts an email message in Gmail with the current page's title as the subject line and the URL in the body of the message.

function(){m='http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(document.location);w=window.open(m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');setTimeout(function(){w.focus();},%20250);}
{
"name": "Send by Gmail",
"description": "Sends by Gmail",
"icon": "https://www.google.com/a/kaplan-myrth.ca/images/favicon.ico",
"link": "http://gmail.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment