1document.addEventListener('DOMContentLoaded', function () { 2 decryptEmailaddresses(); 3}); 4 5function decryptEmailaddresses() { 6 // Ersetze E-Mailadressen 7 const unicorns = document.querySelectorAll('span.unicorn'); 8 unicorns.forEach(unicorn => { 9 unicorn.replaceWith('@'); 10 }); 11 12 // Ersetze mailto-Links 13 const links = document.querySelectorAll('a[href^="javascript:decryptUnicorn"]'); 14 links.forEach(link => { 15 // Selektiere Einhorn-Werte 16 var emails = link.getAttribute('href').match(/\((.*)\)/)[1]; 17 18 emails = emails 19 // ROT13-Transformation 20 .replace(/[a-z]/gi, function (s) { 21 return String.fromCharCode(s.charCodeAt(0) + (s.toLowerCase() < 'n' ? 13 : -13)) 22 }) 23 // Ersetze # durch @ 24 .replace(/\|/g, '@'); 25 26 // Ersetze Einhörner 27 link.setAttribute('href', 'mailto:' + emails); 28 }); 29}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.