Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Automatically detects if a user is logged into gmail, and if they are, will replace all the mailto: links on your webpage with links to the gmail compose window (automatically filling in the To field):
var email = $(this).attr('href').replace(/^mailto:/,'');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.