Implement selective image blocking in Chimera

Nov 26, '02 09:07:28AM

Contributed by: Anonymous

I love Mozilla's preferences for blocking images. On a whim, I copied the line of code written to Mozilla user's prefs.js file that, in my case, accepts images from the originating server only:

serveruser_pref("network.image.imageBehavior", 1);
and pasted it into my Chimera prefs.js file. Sure enough - blocking worked! The downside is that this blocks images on sites like Apple. A better alternative is, as you know, Mozilla's ability to selectively choose an image on a page and block all images from that image's server.

Well, you can duplicate that functionality in Chimera by creating a file called cookperm.text in your [random.slt] folder inside ~/Library -> Application Support -> Chimera -> Profiles -> Default. The file should contain the URL(s) of the server(s) you want to blocl. In this example, the servers are ar.atwola.com and those from spinbox.versiontracker.com:
# HTTP Permission File
# http://www.netscape.com/newsref/std/cookie_spec.html
# This is a generated file! Do not edit.

ar.atwola.com 1F
spinbox.versiontracker.com 1F
@@@@ 0F 1F 2F
Hopefully this helps those of us still using dial-up, at least until Chimera builds this functionality into its preferences.

[Editor's note: I just took my fully developed Mozilla cookperm.txt file and copied it into the specified folder in the Chimera prefs structure, and it worked like a charm!]

Comments (7)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20021126060728897