Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Install a Chimera image blocking preference panel Web Browsers
On the same subject as the image blocking hint that was just recently posted, quite a while ago I opened an enhancement request for Chimera to support image blocking (bug report here).

It seems to have stalled a bit, but luckily a very industrious fellow named Prachi Gauriar created a preference panel for Chimera that allows you to add and subtract servers to block, as well as toggle GIF animations and block 3rd party image requests completely. I've been using it for over a month with the nightly builds and it's worked great!

Here's how to install the preference pane for Chimera:
  1. Download the preference pane:

    http://comp.uark.edu/~pgauria/ImagesPrefPane.tar.gz (Mirror)

  2. Unpack the file so that you have a file called Images.prefPane

  3. Make sure Chimera isn't running. Right-click on the Navigator icon and "Show Package Contents"

  4. Navigate to Contents -> PreferencesPanes

  5. Copy the file Images.prefPane into this folder.

  6. Still in the Navigator package, navigate up one level and go into the Resources folder.

  7. You will need to edit two files. First open MVPreferencePaneDefaults.plist in your favorite text editor. Add the line
     org.mozilla.chimera.preference.images,
    Insert this line between these two lines:
     org.mozilla.chimera.preference.privacy,
    org.mozilla.chimera.preference.security,
    NOTE: Make sure each line ends with a comma. When done, the file should look like this:
     (
    org.mozilla.chimera.preference.navigation,
    org.mozilla.chimera.preference.appearance,
    org.mozilla.chimera.preference.privacy,
    org.mozilla.chimera.preference.images,
    org.mozilla.chimera.preference.security,
    org.mozilla.chimera.preference.webfeatures
    )
    Save the file.

  8. Now, open the file MVPreferencePaneGroups.plist which is in the same folder as the last file. Add the same line as you did before, but this time add it between org.mozilla.chimera.preference.appearance and org.mozilla.chimera.preference.webfeatures. The file should look like this when you're done:
     (
    {
    identifier = general;
    panes = (
    org.mozilla.chimera.preference.navigation,
    org.mozilla.chimera.preference.appearance,
    org.mozilla.chimera.preference.images,
    org.mozilla.chimera.preference.webfeatures
    );
    },
    {
    identifier = security;
    panes = (
    org.mozilla.chimera.preference.privacy,
    org.mozilla.chimera.preference.security,
    );
    }
    )
    Save the file.

  9. Launch Chimera, open the preferences, and you should see the newly added Images prefpane. Enjoy!
[Editor's note: I haven't tested this one myself.]
    •    
  • Currently 1.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
 
[7,528 views]  

Install a Chimera image blocking preference panel | 9 comments | Create New Account
Click here to return to the 'Install a Chimera image blocking preference panel' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Work with updates?
Authored by: Eyedea on Dec 02, '02 11:22:08AM

Would I have to do this for each new build of Chimera?



[ Reply to This | # ]
Work with updates?
Authored by: theNonsuch on Dec 02, '02 11:40:20AM

Unfortunately, yes. What I usually do is once I've made the changes to the two preference files (MVPreferencePaneDefaults.plist and MVPreferencePaneGroups.plist), I keep copies of these and the image.prefpane aside and just copy them into the new Chimera package after downloading the latest nightly.



[ Reply to This | # ]
Work with updates?
Authored by: Eyedea on Dec 02, '02 12:37:50PM

K, thanks.

I'll pass on this one (I'm just too lazy) but hopefully it will be implemented in Chimera soon.



[ Reply to This | # ]
Work with updates? Maybe..
Authored by: cynikal on Dec 02, '02 01:55:18PM

why not just make a diff patch so you can apply the diff without worrying about eradicating any new changes when you overwrite newer files with the older modified files?



[ Reply to This | # ]
Work with updates? Solution
Authored by: cynikal on Dec 02, '02 03:28:51PM
I've written a quick and dirty shell script that when ran, will automatically download the prefpane and patch the required files. it needs to have your chimera running when you first run it (so it can determine where your navigator is installed/running from), if there's a better way to do this, let me know. it will prompt you when it's about to close it so that you have a chance to save your urls and such.. you can download it here here feedback welcome. be gentle though, i rushed and wrote it quickly and couldn't test it that much. works for me though, downloading the latest nightly build.

[ Reply to This | # ]
Does this accept regular expressions?
Authored by: r0adrage on Dec 02, '02 02:15:53PM

One thing I really loved in OmniWeb was that you could block images (and in fact anything) from being loaded if its URL matches one of the regular expressions, rather than simply a list of hosts.

For example, Yahoo loads all of its images from "us.yimg.com" (and a few variants), but their ads seem to be under "us.yimg.com/.*/a/". In Omniweb I could trivially block those ads while still being able to see the rest. For now I took care of it via the userContent.css (as in the other hint referenced above), but that's not nearly as easy as a preference panel.

I suppose I could look at the code :)



[ Reply to This | # ]
Does this accept regular expressions?
Authored by: cynikal on Dec 02, '02 03:20:15PM

There's a way to use basic regular expression anchors and text matching but not pattern matching. This is done in the css file though.. See my hint comment (5th comment down) at

http://www.macosxhints.com/article.php?story=20021127061854547



[ Reply to This | # ]
Automatically add the prefpane with ChimeraKnight
Authored by: vgz on Dec 03, '02 09:43:04PM

The latest version of ChimeraKnight and Chimericon can install prefpanes and .nib files as part of themes. Download them off versiontracker or macupdate and you can make the prefpane part of the nightly build updates automatically along with your custom theme, if you use one.



[ Reply to This | # ]
You dont have to restart Chimera
Authored by: dclal on Dec 24, '02 10:45:56PM

You dont have to restart Chimera to make this work. The pref.pane will show up when you select "show all".

Just one question, Does anyone have a good list of hosys to block?



[ Reply to This | # ]