Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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("google.com")

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

1 Answer 1

up vote 2 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 google.com 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.