I want to create a simple button that when pressed, changes the value of the setting browser.display.document_color_use to 1, and when pressed a second time is changed back to 2.
I have no idea where to even begin. I really hope somebody can help me
and theme - Mozilla | MDN most likely. Or the content scripts API. I don’t think you can toggle the actual pref (as in, it’s not exposed) though. (Maybe yet?)
I still have no idea how to achieve the desired results without changing that specific setting, though. Hmm. Also, I am not a programmer so most of this stuff is like Chinese to me!
The problem is finding the “function” to either influence the setting browser.display.document_color_use or do something that achieves the same effect.
It’s basically just the toggle between “Always” and “Never” when forcing your own color scheme onto webpages you visit. (For example this webpage is horribly white and bright and burns two holes straight through my skull)
Is there anywhere you can request API support for certain preferences?