(function (window, $) { 'use strict'; /*jslint browser: true, confusion: true, white: true */ /*global jQuery */ var deobfuscate = function () { $('.obfusma').each(function () { var $this = $(this), add = $this.text().replace(/\s*/g, '').replace(/\[at\]/gi, '@').replace(/\[dot\]/gi, '.'), $a = $('').attr('href', 'mailto:' + add).text(add).addClass('deobfusma'); $this.replaceWith($a); }); }, init = function () { deobfuscate(); }; $(init); }(window, jQuery));