Cout60039

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 like BEHAVIOREVENT_CONTENTREADY for commom elements.

Any ideas on how to solve described problem


Re: Internet Explorer Extension Development AdBlock for IE

Cout

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





Re: Internet Explorer Extension Development AdBlock for IE

EricLaw-MSFT

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





Re: Internet Explorer Extension Development AdBlock for IE

browczar

there seems to be some effors similar on codeplex.com
http://www.codeplex.com/Wiki/View.aspx ProjectName=AdBlocker




Re: Internet Explorer Extension Development AdBlock for IE

Jarle Nygard

Looks like that project is no more... Too bad! Adblock is really what stops me from leaving Firefox and going over to IE7.




Re: Internet Explorer Extension Development AdBlock for IE

nickicha

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





Re: Internet Explorer Extension Development AdBlock for IE

Jarle Nygard

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. :)





Re: Internet Explorer Extension Development AdBlock for IE

FremyCompany

Another Adblock alternative for IE is IE7Pro, it is a free Add-On for IE 7, present on the MarketPlace Web Site.




Re: Internet Explorer Extension Development AdBlock for IE

Viktor78

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

http://www.quero.at/





Re: Internet Explorer Extension Development AdBlock for IE

Fredia

well, "adblock pro" would match your need.

adblockpro.com