CamiTools vastly improves my experience with Camino 1.0. If you haven't tried it and you do use Camino, I would strongly urge you to give it a try.
At the time of this writing, the current version of CamiTools is 4.4 and the current version of Camino is 1.0. I have come across what appears to be a bug with the Style tab and have reproduced the issue on a PowerMac G5 and a MacBook Pro, both running OS X 10.4.6. In this post I will detail the apparent issue and a workaround which has been tested and shown to work.
Within the CamiTools preference pane there is a tab marked Style. Here you can create a stylesheet that will override default settings for a site and give you a custom display - very handy if you find the functionality of a given site excellent but aren't too fond of some of the colors, fonts, or font sizes that they have chosen.
Unfortunately it doesn't seem to work. When I have created a style, saved it, checked the box marked 'Active Style', and restarted Camino, I have found the style is not in effect and the checkbox is unchecked.
We can begin recreating the issue by clicking the button marked 'Examples'. This will generate two css files - one for www.google.com and one for "anydomain". For the purpose of this example, we'll focus on the google style (which has been named ct_www.google.com.css). Go ahead and make any edits to the style that you'd like, then check the box marked 'Active Style', click the 'Save Style' button, and restart Camino. Now surf to Google. If it looks different per your styles, apparently this bug does not affect you. I'm interested in hearing from you if this works for you!
Assuming you're like me and the issue is effecting you, we can get started on the workaround. Start by closing Camino and opening up a finder window. In your finder window, navigate to home:Library:Application Data:Camino:chrome (that's ~/Library/Application Data/Camino/chrome for we command line ninjas). In here you'll see a few key files which include userContent.css, camistyle.css, and ct_www.google.com.css. Using your favorite text editor, open up userContent.css. You'll see a line that reads:
@import url(camistyle.css);
This line imports the camistyle.css file. If you open that file you'll see it is empty. If you open the ct_www.google.com.css file you'll see your google style. We can now add an @import line similar to the above to either camistyle.css or userContent.css. Either one will work. It is my guess that the Style tab in CamiTools is supposed to add the line to camistyle.css, so in my implementation I chose to add the following line to camistyle.css instead of userContent.css.
@import url(ct_www.google.com.css);
Now restart Camino and surf to Google. If all went well, you should see your style applied. If you look at ct_www.google.com.css within the Style tab you will see the box marked 'Active Style' checked, further proving my contention that this is the intended behavior.
All of these findings have been reported to the author of CamiTools, and hopefully we'll see a bug fix soon.
Leave a comment