Groups > Browsers > Opera Browser Technical topics > Re: Blocking images from external sites




Re: Blocking images from external sites

Re: Blocking images from external sites
Mon, 11 Jun 2007 22:50:57 -040
Russell Wood wrote:
> Is it possible to block images from external sites?

Yes, with User JavaScript.  For example, see:

http://userjs.org/scripts/site/enhancements/block-external

Please read the notes prior to installation.  Also, you should probably 
edit the script prior to using it globally for all sites.  Otherwise, 
simply enable it for certain sites via right-click on page, "Edit site 
preferences...", Scripting tab, User JavaScript files folder setting.

Post Reply
Blocking images from external sites
Tue, 12 Jun 2007 00:23:35 -000
Is it possible to block images from external sites?

-- 
Post Reply
Re: Blocking images from external sites
Tue, 12 Jun 2007 11:23:39 +010
On Tue, 12 Jun 2007 03:50:57 +0100, Lee Harvey <leeharvey@grassyknoll.com>
 
wrote:

> Russell Wood wrote:
>> Is it possible to block images from external sites?
>
> Yes, with User JavaScript.

I'm not sure that it really is. The user Javascripts I've seen (including  
the one you linked to) simply go through the document once it's loaded and  
then remove the images. By then Opera has already requested the images  
 from the server and may have even got as far as displaying them for a  
second before the 'onload' fires and the user javascript runs, so the  
images haven't really been blocked, just hidden, and the remote site has  
successfully served you their images and logged you. This will include  
images inserted via Javascript which include a query string to gather  
stats on browser, OS, screen size, etc. And that's before you start  
worrying about things like javascript that fetches new images after the  
page has loaded when you hover over things (either AJAX content or old  
fashioned image swaps).

A genuine blocker needs to work at the same level as Opera's content  
blocking, not at Javascript level. It has to decide to ignore things while  
it's still parsing the markup and working out what further resources need  
to be downloaded, and then continue working if the content of the page  
changes dynamically after that.

Fundamental options like 'block all third party images' (at both global  
and site preferences level) should have been part of Opera's content  
blocking from the start. I hope they get added one day, but we've seen M2  
spend a lot of time gathering dust since its initial release five years  
ago so I'm not going to assume Opera will add seemingly obvious features  
to the content blocking any time soon either, especially when they're busy  
establishing 'partnerships' with companies and content providers who rely  
Post Reply
Re: Blocking images from external sites
Wed, 13 Jun 2007 05:35:17 -000
On 2007-06-12, Eik <spam@hotmail.com> wrote:
> On Tue, 12 Jun 2007 03:50:57 +0100, Lee Harvey
<leeharvey@grassyknoll.com>  
> wrote:
>
>> Russell Wood wrote:
>>> Is it possible to block images from external sites?
>>
>> Yes, with User JavaScript.
>
> I'm not sure that it really is. The user Javascripts I've seen (including 

> the one you linked to) simply go through the document once it's loaded and 

> then remove the images.

This isn't what I want.

> A genuine blocker needs to work at the same level as Opera's content  
> blocking, not at Javascript level. It has to decide to ignore things while 

> it's still parsing the markup and working out what further resources need 

> to be downloaded, and then continue working if the content of the page  
> changes dynamically after that.
>
> Fundamental options like 'block all third party images' (at both global  
> and site preferences level) should have been part of Opera's content  
> blocking

This would be handy.

-- 
Post Reply
about | contact