mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
25 lines
No EOL
508 B
JavaScript
25 lines
No EOL
508 B
JavaScript
|
|
(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 = $('<a/>').attr('href', 'mailto:' + add).text(add).addClass('deobfusma');
|
|
|
|
$this.replaceWith($a);
|
|
});
|
|
},
|
|
init = function () {
|
|
|
|
deobfuscate();
|
|
};
|
|
|
|
$(init);
|
|
|
|
}(window, jQuery)); |