
-----------------------------------
rizzix
Mon Jan 23, 2006 5:31 pm

[Tutorial] Removing DIV ads
-----------------------------------
Sometimes when you apply for a "free" web hosting service, most of these companies prepend really ugly and annoying DIV ads to your web page.

Here's a script that I've tested to work with both Firefox and IE6.

(Note: Check your web hosting providers' policies/agreements, before you decide to use this. Most of them do not permit you to remove those ads.)

var z = document.body.childNodes;
for (var i = 0;  i < z.length;  i++) {
    if (z Just make sure all your webpages begin with that code

for example: 
    Hello World



    var z = document.body.childNodes;
    for (var i = 0;  i < z.length;  i++) {
        if (z will display Bye World
