✨ feat(footer/socials): add base64 encoded email protection
This commit is contained in:
1
static/js/decodeMail.min.js
vendored
Normal file
1
static/js/decodeMail.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(){"use strict";document.querySelectorAll("[data-encoded-email]").forEach(function(e){var t=function(e){try{var t=[...atob(e)].map(e=>e.charCodeAt(0)),r=new Uint8Array(t.length);return r.set(t),new TextDecoder("utf-8").decode(r)}catch(e){return console.error("Failed to decode Base64 string: ",e),null}}(e.getAttribute("data-encoded-email"));t?e.setAttribute("href","mailto:"+t):e.style.display="none"})}();
|
Reference in New Issue
Block a user