Skip to content

Instantly share code, notes, and snippets.

@davidsharp
Created November 8, 2020 12:27
Show Gist options
  • Select an option

  • Save davidsharp/0b5e2efbf482174a649bd22011c50aae to your computer and use it in GitHub Desktop.

Select an option

Save davidsharp/0b5e2efbf482174a649bd22011c50aae to your computer and use it in GitHub Desktop.
Obfuscated email address mailto href on hover [PoC]
<!--some obfuscated email address-->
<a id="email">&#xfeff;&#xff48;&#xff45;&#xff4c;&#xff4c;&#xff4f;🍥&#xff45;&#xff58;&#xff41;&#xff4d;&#xff50;&#xff4c;&#xff45;👾&#xff43;&#xff4f;&#xff4d;</a>
email.addEventListener("mouseover",function(){
email.href='mailto:'+[['hello','example'].join('@'),'com'].join('.')
})
email.addEventListener("mouseout",function(){
email.removeAttribute('href')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment