Adding CSS to CaminoModerator: Camino Developers
9 posts • Page 1 of 1
November 6th, 2009, 4:56 pm
I use a CSS for add blocking/element hiding in Opera and Safari. It works very well. It's easy to add to those browsers but I'm not sure how to add it to Camino. The CSS is made by Fanboy http://www.fanboy.co.nz/adblock/opera/f ... ements.css. Is it just a matter of placing the file in a specific folder or do I have to add it to another file that already exists? Can it even be done in Camino?
November 6th, 2009, 5:35 pm
Camino has an ad-blocking option build-in: Preferences > Web Features pane
It uses a stylesheet that you can find here: right click on Camino.app and choose Show Package Contents, then navigate Contents > Resources > ad_blocking.css (lots of what is covered by that file you link to is covered by Camino's ad-blocking). You can add to that file if you want, with the caveat that every time you upgrade, the file will be overwritten. In Camino 2.0, the file is 'live', btw. Toggling ad-blocking off/on in the prefpane reloads the file. Handy for experimenting with custom rules for sites. Otherwise, you can create a userstylesheet in your profile folder. ~/Applications Support/Camino/Chrome. The file must be named userContent.css. This is documented on the help site. Last edited by Uncle Asad on November 6th, 2009, 6:54 pm, edited 1 time in total.
Reason: caps matter, too ;-)
November 6th, 2009, 7:58 pm
Great thanks thats what I needed to know.
November 6th, 2009, 11:16 pm
Uncle Asad added to my post above:
On OS X, not really. Not for 'chrome', not for 'usercontent.css' ![]()
November 6th, 2009, 11:26 pm
Huh. OK. I was sure I had seen a case where someone tried to have the wrong case and it failed, but I guess not.
Mac OS X 10.3.9 • PowerBook G4 17" 1.33 GHz | Mac OS X 10.5.x • MacBook Pro 15" 2.2 GHz
Snow7's Camino Forum FAQ Search the Forum Camino. Help Troubleshoot Camino
November 6th, 2009, 11:57 pm
It used to fail, back in the old days. I think - but my memory is not (¡!) improving – Gecko 1.6 'fixed' that by a better communication with OS X internals.
November 8th, 2009, 9:07 am
I simply replaced the Camino default ad blocker css with the one I linked. I changed the name of it of course so Camino would use it. It works well. The default Camino one is decent but leaves a lot of empty spaces where ads are blocked and didn't collapse the space like the fanboy css does. Also I found the Camino ad block css didn't block text ads in Google and Gmail like fanboy's can. The only hassle will be having to replace the Camino ad block css every time Camino up dates but thats a minor annoyance.
November 8th, 2009, 9:18 am
If you install it as a userChrome.css file, you won't have to replace it every time (although I'm not sure which one would load first and get priority for collapsing whitespace). The only stuff that changes when updating Camino is stuff in the application package itself. cl
November 8th, 2009, 10:09 am
I put it in the default ad block css so I can easily toggle it on and off when I need to from Camino preferences.
9 posts • Page 1 of 1
Who is onlineUsers browsing this forum: Bagheria, dryeburn, thom-22 and 2 guests |
|