Skip to content

welenofsky/Hide-Email

Repository files navigation

Hide Email

this package will find all elements with the class h-email and it will replace contents of that tag with a canvas that has the email

Usage

First create an element that has a data-hea attribute containing a base64 encoded email and a class of h-email

<a href="#"><span class="email-styles h-email" data-hea="ZW1haWxAZXhhbXBsZS5jb20="></span></a>

Then use the HideEmail() function

document.addEventListener("DOMContentLoaded", function(event) {
    HideEmails();
});

An example of how it is used is in the example.html file.

About

Puts email in a canvas to prevent basic bots from sniffing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published