[add-art dev] Fwd: Using XBL to "redirect" image loads

Steve Lambert steve at visitsteve.com
Thu Mar 20 06:59:35 PDT 2008


Wladimir's response...


Begin forwarded message:

> From: Wladimir Palant <trev at adblockplus.org>
> Date: March 20, 2008 2:27:56 AM EDT
> To: Steve Lambert <steve at visitsteve.com>
> Subject: Re: Fwd: Using XBL to "redirect" image loads
>
> Steve Lambert wrote:
>> I'm not sure.  I was thinking something like:
>> img:-moz-suppressed { -moz-binding('foo.xml#redirect'); }
>> Where foo.xml is a simple binding that has something like:
>>   <xbl:content>
>>     <html:img src="my-image-uri-here"/>
>>   </xbl:content>
>> (with the usual binding/bindings boilerplate around it, etc).
>
> Looks like a possible approach. I didn't know about -moz-suppressed  
> pseudo-class before, should be something I can use for Adblock Plus  
> as well.
>
> Generally - this will work as long as you deal with images and  
> applets/objects, and the integration with Adblock Plus will happen  
> "automatically". However, most of the time Adblock Plus blocks  
> scripts that *would* generate the images - but didn't because they  
> were blocked. That's the reason behind scripts.xml in the proof-of- 
> concept extension I gave you. If you use XBL, you won't be able to  
> do anything with the scripts, they will just "stay" blocked.
>
> regards
> Wladimir
>
> PS: Heh, it seems that I actually should know about -moz-suppressed  
> (see my comment on http://weblogs.mozillazine.org/bz/archives/ 
> 008106.html) - but that was too long ago. Problem is, this feature  
> doesn't exist in Firefox 2, you need Firefox 3 for it to work. So I  
> will have to wait for Firefox 3 to be released and after a month or  
> two I can probably start using it. Don't know how it is about you.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.add-art.org/pipermail/supperclub-add-art.org/attachments/20080320/dad56119/attachment.htm 


More information about the Supperclub mailing list