1if (typeof jQuery !== 'undefined') { 2 $(function () { 3 decryptEmailaddresses(); 4 }); 5} else { 6 console.warn('Email obfuscator addon requires jQuery.'); 7} 8 9function decryptEmailaddresses() { 10 // Ersetze E-Mailadressen 11 $('span.unicorn').each(function () { 12 $(this).replaceWith('@'); 13 }); 14 15 // Ersetze mailto-Links 16 $('a[href^="javascript:decryptUnicorn"]').each(function () { 17 18 // Selektiere Einhorn-Werte 19 var emails = $(this).attr('href').match(/\((.*)\)/)[1]; 20 21 emails = emails 22 // ROT13-Transformation 23 .replace(/[a-z]/gi, function (s) { 24 return String.fromCharCode(s.charCodeAt(0) + (s.toLowerCase() < 'n' ? 13 : -13)) 25 }) 26 // Ersetze # durch @ 27 .replace(/\|/g, '@'); 28 29 // Ersetze Einhörner 30 $(this).attr('href', 'mailto:' + emails); 31 }); 32}
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.