Disable stylish on certain sites in firefox

8

2

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?

rush

Posted 2012-08-18T07:00:48.410

Reputation: 957

Answers

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)[/:]).*")

Wladimir Palant

Posted 2012-08-18T07:00:48.410

Reputation: 1 101