Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

In Firefox we have two options at Firefox->Preferences->Preferences->Fonts and colors->Colors menu, Use system colors and Sites can use other colors.

I would like keep the first one checked (and this is ok) and change the second on a quick way.

A quick way could be pressing a shortcut on keyboard, running a terminal command or changing a content of a config file (because I can do a shell script and use a keyboard command).

My motivation is I would like to always use my system colors but if a webpage has strange visuals, I'd like change it to the original quickly.

Any ideas?

share|improve this question
IIRC, the firefox config is in a sqlite database, you could probably set up a script to update it. – Kevin May 14 '12 at 1:05
I'm not entirely sure if I understood what you're trying to achieve, but there're addons that seem related, e.g. Color toggle or ToggleDocumentColors_ (among many others, I guess). – sr_ May 14 '12 at 8:31
Thx sr_, a similar extension is PrefsBar and works to me. – GarouDan May 14 '12 at 11:16

I'm not sure about editing firefox config files manually is a good idea, and according to Mozilla one shouldn't. However, if you wish to avoid going through Firefox->Preferences->... you can open up a new tab with the address about:config?filter=color and toggle the value of browser.display.use_system_colors in the last column. This is the recommended way to edit Firefox preferences as far as I know.

share|improve this answer
Thx about comment. Intersting way. The property what I was looking for is browser.display.use_document_colors and I can change it using about:config. I would keep this in my mind. I had found a solution (uses shortcuts) and I will embrace it. Thx a lot. – GarouDan May 14 '12 at 10:54
up vote 1 down vote accepted

I had found a solution...

I asked on mozilla forum and they returned a answer to me. The solution is:

Install a extension called PrefBar. With this extension we can put a checkbox on mozilla that will change the property browser.display.use_document_colors. We can set a shorcut too (for example, F1).

With this extension we can enable severel other options too.

share|improve this answer

Your Answer


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.