Yet another step closer to the solution. Import JQuery.
This commit is contained in:
parent
3b82aabcc0
commit
f2d47cfc39
2 changed files with 17 additions and 1 deletions
5
data/jquery.js
vendored
Normal file
5
data/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -1 +1,12 @@
|
|||
if (document.body) document.body.innerHTML = document.body.innerHTML.replace(/google/g, 'bing');
|
||||
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);
|
||||
/* $('body, body *').contents().filter(function() {
|
||||
return this.nodeType == Node.TEXT_NODE
|
||||
&& this.nodeValue.indexOf('§') >= 0;
|
||||
}).each(function() {
|
||||
this.nodeValue = this.nodeValue.replace(/\S{0}§\S*\b/g,
|
||||
'<a href="javascript:alert($1)">$1</a>');
|
||||
}); */
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue