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

Remove Camino's 'Connection Failed' message Apps
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.
% 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.]
    •    
  • Currently 1.33 / 5
  You rated: 1 / 5 (3 votes cast)
 
[6,873 views]  

Remove Camino's 'Connection Failed' message | 2 comments | Create New Account
Click here to return to the 'Remove Camino's 'Connection Failed' message' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove Camino's 'Connection Failed' message
Authored by: krusty76 on Jun 18, '07 09:40:16AM
I think the first block of commands intended to expand the existing JAR file, in which case it should have been
jar -xvf ../embed.jar
I don't think compressing the existing JAR file twice would do much good. :)

[ Reply to This | # ]
Remove Camino's 'Connection Failed' message
Authored by: EatingPie on Jun 24, '07 09:40:00AM

Indeed, that's correct.

jar -xvf ../embed.jar

I copy/pasted the commands right from the command line as I did them, so I must have edited this one after the fact. Darn.


---
-Pie



[ Reply to This | # ]