Hi I want to replace some of the HTML code of the current document with Javascript (Greasemonkey in Firefox). The problem is, that it is not just one tag.
Here is the source:
[code]Cheaterhossie</a></b><br /><br />
<img src=’./avatare/leet.gif’ alt=’Leet’ border=0 />
Now I want to replace that “leet.gif” with another image, but [u]only
My basic approach
[code]var oldbody = document.body.innerHTML;
var newbody = oldbody.replace(“/xxx/”, “xxx”);
window.addEventListener(
‘load’,
function() { document.body.innerHTML = newbody; },
true);
didn’t work.
Can anybody help? ?