Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use dark theme in the Firefox, however sometimes I visit several sites that don't need such theme. I want to see them in original style.

I found the way to enable specific features per site with :

@-moz-document domain("")

Is there a way to disable stylish at all only for certain domains without annoying mouse clicking to disable the whole stylish for all aites and enable it again after?

share|improve this question
up vote 4 down vote accepted

Not as easy as one would like. The relevant bug hasn't been fixed as of now. You can achieve the same effect using the regexp() condition (available since Firefox 6) but the regular expressions required are rather ugly. E.g. to exclude domain you would write:

@-moz-document regexp("https?://(?!([^.]+\\.)?google\\.com[/:]).*")

If you need to specify multiple domains you have to do it like this:

@-moz-document regexp("https?://(?!([^.]+\\.)?(google\\.com|example\\.com|foo\\.bar)[/:]).*")
share|improve this answer
Looks like the only way. Thank you. – rush Aug 19 '12 at 20:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .