Skip to content

Instantly share code, notes, and snippets.

@akatopo
Forked from kaplanmyrth/README.md
Last active December 30, 2015 15:59
Show Gist options
  • Save akatopo/7851638 to your computer and use it in GitHub Desktop.
Save akatopo/7851638 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();},250);})();
{
"name": "Gmail Share",
"description": "Shares the current page via gmail",
"icon": "http://upload.wikimedia.org/wikipedia/commons/4/4e/Gmail_Icon.png",
"link": "https://gmail.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment