5 lines
173 B
JavaScript
5 lines
173 B
JavaScript
if (document.body) {
|
|
var replaced = $("body:not(a)").html().replace(/\S{0}(§\S*)\b/g,
|
|
'<a href="javascript:alert($1)">$1</a>');
|
|
$("body").html(replaced);
|
|
};
|