Re: adblock extension not filtering backgrounds
Philip <[email protected]> Wed, 04 May 2005 15:30:58 GMT
| Newsgroups | gmane.comp.mozilla.devel.unix |
|---|---|
| Organization | SBC http://yahoo.sbc.com |
| Message-ID | <[email protected]> |
Roland wrote: > On 4-5-2005 7:03, Philip wrote: > >> Roland wrote: >> >>> On 28-4-2005 22:14, Philip wrote: >>> >>>> Philip wrote: >>>> >>>>> DC wrote: >>>>> >>>>>> Philip wrote: >>>>>> >>>>>> >>>>>>> Some annoying yahoo ads started to appear that I could not get >>>>>>> adblock to filter. It seems these graphics are tablbe backgrounds. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Is there a way to get adblock to zap these things too? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> URL? I might have a solution but would like to try it first, >>>>>> before I >>>>>> step on my, uh, thingy. }:O) >>>>>> >>>>> >>>>> >>>>> It was one of Yahoo's ads. So it only appears sporatically. I wish >>>>> now that I >>>>> had saved the page source. >>>>> >>>>> Basically you can try to jury rig it. The ad image is the >>>>> background attribute >>>>> of a table. The table element(s) contains a transparent spacer.gif >>>>> that give the >>>>> table size, but allow the background to show through. >>>> >>>> >>>> >>>> >>>> >>>> I caught one of the ads on yahoo. Here is the offending html: >>>> >>>> <table width="728" height="90" border="0" cellspacing="0" >>>> cellpadding="0" >>>> background="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_personals2/20050415_53485_v2_728x90_super_ypmiranda_w2m.jpg"> >>>> >>> >>> >>> >>> You could add the following line to AdBlock (Tools -> AdBlock -> >>> Preferences; press label /Add/ to the right of the New Filter input >>> field): >>> >>> http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_personals* >>> >> >> This does not work. The image is in the background attribute of the >> table and is not filtered. > > AdBlock is capable of filtering background images (I've tried it with > IMDB's photo galleries, which also use a table background to display the > actual pictures). > Did you include the trailing * in the AdBlock rule? > Which version of AdBlock are you using (I'm using v0.5d2 Nightly build 39). I have build 35 background="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_personals2/20050415_53485_v2_728x90_super_ypmiranda_w2m.jpg" Adblock Filters http://us.a1.yimg.com/us.yimg.com/a/* http://us.a1.yimg.com/us.yimg.com/* http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_personals2/* Still coming through