Conditional userchrome.css?

[email protected] (Jason Bassford)
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization http://groups.google.com/
Message-ID <[email protected]>
Sorry, I know that this is slightly off topic.  But I've discovered I
can do what I want with Mozilla by using userchrome.css rather an XUL
overlay which is still totally incomprhensible to me (mainly because I
haven't found a code example that matches my particular need).  So -

Is there a method of applying a different set of userchrome.css
entries based on what theme is currently selected? (In other words, if
I'm using Modern then apply section X of userchrome.css, and if I'm
using Classic apply section Y?)

Also, is there any way, via an XPI script, of determining the current
user's Mozilla preferences directory?  (I'm assuming not because of
salting and security, but I thought I'd ask.)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.