Skip to content

Instantly share code, notes, and snippets.

@harrypujols
Last active October 10, 2015 03:47
Show Gist options
  • Save harrypujols/3627467 to your computer and use it in GitHub Desktop.
Save harrypujols/3627467 to your computer and use it in GitHub Desktop.
Hide my e-mail from bots
$(function() {
var m = 'mail';
var a = 'to';
var i = '@site.com';
var l = 'foo';
$('li.email').replaceWith('<li><a href='+m+a+':'+l+i+'?subject=Hello%20from%20'+i+'>E-mail</a></li>');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment