[Greasemonkey] Can't get simple tag filter to work :(

andreas.goetz at accenture.com andreas.goetz at accenture.com
Mon Apr 11 12:29:53 EDT 2005


Hi experts,

I'm trying to block out text ads from a website that marks them the
following way:

<cadv>some ad</cadv>

My idea (similiar to google butler) was this:

ad = document.getElementByTag('cadv')[0];
while (ad) {
	ad.parentNode.removeChild(ad);
	ad = document.getElementByTag('cadv')[0];
}

Unfortunately- though script rns without errors- the ads are still
visible. Any idea?

Also, for debugging- is it possible to somehow show the resulting HTML
(the modified DOM exported back to HTML)?

Thanks,
Andi


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.


More information about the Greasemonkey mailing list