I have a lot of ad sites artificialy disabled in my hosts table. Basically it keeps any browser from connecting to the ad site, making it impossible to display them. Camino, however, doesn't play nice here -- when it can't connect to the ad site, it puts a very ugly and annoying message in the ad frame instead. I mean, I love the Camino icon, but splattering it all over my ad-free page is just ... wrong! The solution requires removing one line of text, but getting to that text is a bit funky. So take a deep breath, fire up your Terminal, and get read to rock. (The following assumes Camino is in the top-level /Applications directory.
Edit the offending file:
[robg adds: Please keep in mind that ads, as annoying as they can be at times (anyone remember the "mortgage rate giraffe" on CNN?), are why the vast majority of web content remains free.]
% cd /Applications/Camino.app/Contents/MacOS/chrome
% mkdir embed
% cd embed
% jar -cvf ../embed.jar
% cd locale/en-US/global
Now you're ready to start...Edit the offending file:
% vi appstrings.properties
Find the Connection Error message and delete it. Start with:
connectionFailure=The connection was refused when attempting to contact %S.
And end with:
connectionFailure=
Save the file:
:wq
Preserve the original embed.jar and create a new one with your changes:
% cd ../../..
% mv ../embed.jar ../embed-save.jar
% jar -cvf ../embed.jar *
All done! Oh, just one more thing: the consequence of this change is that when Camino cannot connect to a URL you typed directly into the address bar, you don't get a message there either (this is actually how Camino used to behave in the old days). A small price to pay, trust me!
[robg adds: Please keep in mind that ads, as annoying as they can be at times (anyone remember the "mortgage rate giraffe" on CNN?), are why the vast majority of web content remains free.]
•
[6,931 views]

