6

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?

4

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)[/:]).*")
  • Looks like the only way. Thank you. – rush Aug 19 '12 at 20:34

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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