overdodactyl / ShadowFox

A universal dark theme for Firefox
https://overdodactyl.github.io/ShadowFox/
MIT License
1.32k stars 58 forks source link

only removing the flashing purple screen in private mode #281

Closed natask closed 4 years ago

natask commented 5 years ago

I am not sure if this is the right place to ask but since ShadowFox solves this issue, I thought I can get some answers here.

under my current setup, I invert whole windows so white background that is so prevalent as default across many applications and websites doesn't bother me.

It has its downsides; like having to re-invert images back but currently the one that has been bothering me is that Firefox private page has this purple flash with every opening of a new tab along a purple background for about:privatebrowsing. I was able to get about:privatebrowsing to my liking using usercontent.css but I can't figure out how to remove the flashing purple screen.

I have tried out shadowFox and if I wasn't so in love with inverting windows directly, I would be using because along with all the dark theme it offers, it has solved this pesky issue. I am sure because the private page (and also new tab) defaults to a greyish brown color with no purple flashing (I have verified by continuously opening new private tabs).

TL:DR

I was wondering which css line is responsible for the greyish brown background that removes the flashing purple screen in private mode so that I can adopt it for my usage.

Thank you.

natask commented 5 years ago

I couldn't wait longer so I just bit the bullet and did binary search to find the css lines responsible. For anyone curious they are located in userChrome.css:

#tabbrowser-tabpanels {
  background: white !important
}

This affects both private and normal tabs. It is possible to affect them separately by prefacing the selector with #main-window[privatebrowsingmode].

I can't seem to find a solid documentation for these tweaks though but my problem is solved.

overdodactyl commented 4 years ago

Glad you found a solution!