Instead of the addon mentioned above, which for me used more cpu power, I have been using this one for a while, and it worked better on other pages like github, email, etc at least for me.
https://addons.mozilla.org/en-US/firefox/addon/dark-background-light-text/