forked from BlowbackAgency/EmailObfuscation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emo.min.js
executable file
·1 lines (1 loc) · 971 Bytes
/
emo.min.js
1
function addLoadEvent(e){var r=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){r(),"function"==typeof e&&e()}}function emo_replace(){for(var e=1;e<emo_addr.length;e++){var r="emo_email_"+e,n=document.getElementById(r);n&&(n.firstChild&&n.removeChild(n.firstChild),n.outerHTML=decrypt_string(e))}}function decrypt_string(e){var r="'"+e+"'";if(decryption_cache[r])return decryption_cache[r];if(emo_addr[e])var n=emo_addr[e];if(!n.length)return"Error, not a valid index.";var o=decode_base64(n);return decryption_cache[r]=o,decodeURIComponent(escape(o))}function decode_base64(e){for(var r,n,o,d,t,a,i,c=emo_addr[0],f="",h=0;h<e.length;)d=c.indexOf(e.charAt(h++)),t=c.indexOf(e.charAt(h++)),a=c.indexOf(e.charAt(h++)),i=c.indexOf(e.charAt(h++)),r=(d<<2)+(t>>4),n=((15&t)<<4)+(a>>2),o=((3&a)<<6)+i,f+=String.fromCharCode(r),64!=a&&(f+=String.fromCharCode(n)),64!=i&&(f+=String.fromCharCode(o));return f}var decryption_cache=new Array;