The Web Realm
     Marc Chadwick's Weblog
 Local: Home About Contact
Wishlists: Books DVDs Thinkgeek 
Syndicate: RSS RSD Atom

 CamiTools Style Bug
Hacks 

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.

 Comments:

Leave a comment

 

February 2008
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29  


Recent Entries
# links for 2008-02-10
# Biofuels Do More Harm Than Good
# del.icio.us
# That'll do it
# Under Construction
# Revamp
# GooSync
# Trusting Google
# Play AACs on your TiVo with TiVo Desktop from a Mac
# My Once and Future Cloud
Flickr Photostream
www.flickr.com
Categories
Apple
Aquarium
Banking
Blog Stuff
Bookmarks
Books
Boston
Comedy
Comics
Development
Drama
Entertainment
For the Mac
Hacks
Hardware
In The News
Internet
Linux
Mobile Phones
Movies
Music
Open Source
OS X
Politics
Red Sox
Science
Security
Software
Sports
Stuff 'n Junk
Sysadmin Stuff
Technology
Television
Testing
Thoughts
UNIX
Vermont
Virii
Windows
Tags
blog  cloud  development  bookmarks  google  code  email  global warming  gmail  google calendar  news  organization  politics  science  study  symbian  tags  test  web 2.0 
Archives
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
March 2007
February 2007
January 2007
December 2006
November 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
Guest Posts
Blog for America
Boston Metroblogs
Links
802 Online
Blog for America
Boston Metroblogs
Dream Theater Info Network
Dr. Mosh
Engadget
Gizmodo
Lukwam
Mac OS X Hints
The Register
SAGE
Skadz
Slashdot
Kevin Smith
Powered by Movable Type Publishing Platform
This blog is licensed under a Creative Commons License.