2

Summary:

In Iceweasel (it's effectively Firefox), I want to block all images, but allow images on websites I specify. But the standard method to do this is not working.

The way you're supposed to be able to do this is as follows. In Iceweasel, select Edit/Preferences/Content and UNCHECK LoadImagesAutomatically. Select Exceptions, enter a website name, select "Allow". Now, Iceweasel should display images for websites with the "Allow" designaton, but not for any other site.

But images are NOT displayed on the "Allowed" sites. NO images are shown on any sites. And I've got the NoScript extension disabled. I have no other extensions.

Am I doing something wrong? If I have to use a workround, I don't want an extension that just toggles images on and off. I want to have images blocked by default, and only allow them on sites I choose. Many thanks if you have a solution.

Full Details:

I'm using Iceweasel 10.0.4. Is this an Iceweasel bug? Is there a workround?

CHECKING LoadImagesAutomatically does display images on all sites as you'd expect.

  • Iceweasel 10.0.4. is very old, not to say ancient... – Jan Aug 30 '14 at 20:29
  • I can not find this option on firefox version 31, though I do remember seeing it once apon a time. If it does not work, then you could try addblock plus, you can write rules to block, or not block. – ctrl-alt-delor Aug 30 '14 at 22:01
3

You can do that with a user stylesheet by using @-moz-document, e.g.

@-moz-document regexp('^(?!https?://(www\\.foo\\.com|www\\.bar\\.com)/).*') {
  img { display: none }
}

Note: if you do not want such not-displayed images to be downloaded, then instead of the user CSS solution, you can use the Greasemonkey extension and write a script to remove all the img elements (except for some specified sites). This will not work for img nodes that are added dynamically, though. And this may also break some scripts (if they expect to find some img node).

  • Good to know: Setting display:none for img elements isn't defined in any spec to stop images from being requested regardless. Here's a related SO question. – Anko Aug 30 '14 at 23:41
  • @Anko I've added a note. The OP's question was ambiguous on this point. – vinc17 Aug 31 '14 at 0:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.