AdBlock for IE

I write something like adblock for ie. It has to parse the page, find unwanted ads and replace them with wanted ads.
The problem i faced is when to parse and what to parse.
My first idea was to do parsing in a temporary mime filter, but in this case there is a lot of "unresolved" code (internal/external scripts that can modify documen and are executed after parsing).
It is also possible to make filter for image/*, load wanted ad myself and return it in filter's Read method but i have to modify ad's "href" so the problem is not solved completely. Also, this approach does not work for activex(flash).
After that i tried to parse DOM from BHO, but in this case unwanted objects are displayed for a while before I can replace them.
So the best soluton whould be to parse DOM while it is being built or before it is rendered. Or may be to receive something likeBEHAVIOREVENT_CONTENTREADY for commom elements.

Any ideas on how to solve described problem?

[1042 byte] By [Cout] at [2008-1-27]
# 1

If we assume that mshtml worlks like msxml (see the diagram)

http://msdn.microsoft.com/library/en-us/xmlsdk/local/Local_-183538986_domparser1.gif

then true filtering can be mabe when the DOM is built or when it is written to the application(IE). Is that possible?

Cout at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...
# 2

You've outlined the common approaches.

At the moment, you aren't able to operate on the page in mid-DOM construction, so you have to decide which tradeoffs you'd like to make.

-Eric

EricLaw-MSFT at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...
# 3
there seems to be some effors similar on codeplex.com
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AdBlocker
browczar at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...
# 4
Looks like that project is no more... Too bad! Adblock is really what stops me from leaving Firefox and going over to IE7.
JarleNyg?rd at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...
# 5

same here..

however, note that this guy wasn't trying to create AdBlock, but instead to substitute ads with other ads..

there is not such thing as "good" ads that can't be removed in the real AdBlock

nickicha at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...
# 6
I'm using AdMuncher with IE7 now, in Vista, and it works pretty well. Not the same smooth integration as with AdBlock, but still pretty good. I'm actually considering switching from Firefox til IE7. :)
JarleNyg?rd at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...
# 7
Another Adblock alternative for IE is IE7Pro, it is a free Add-On for IE 7, present on the MarketPlace Web Site.
FremyCompany at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...
# 8

Here is another Ad Blocker for IE that is part of the Quero Toolbar:

http://www.quero.at/

Viktor78 at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...
# 9

well, "adblock pro" would match your need.

adblockpro.com

Fredia at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...