mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-15 07:29:21 +00:00
feat: email obfuscation (#2711)
This commit is contained in:
8 files changed
+67
-34
No files matched your search
@@ -0,0 +1,12 @@
|
||||
(function () {
|
||||
const links = document.querySelectorAll(".email-link");
|
||||
links.forEach((link) => {
|
||||
const email = atob(link.getAttribute("data-email"));
|
||||
const subject = link.getAttribute("data-subject");
|
||||
let mailto = "mailto:" + email;
|
||||
if (subject) {
|
||||
mailto += "?subject=" + encodeURIComponent(subject);
|
||||
}
|
||||
link.href = mailto;
|
||||
});
|
||||
})();
|
||||
Reference in new issue
Block a user