When you click on a link in Chrome to go from page x to page y, for a split-second it displays a white empty page. I want to make that page black so it won't hurt my eyes.
Now, I'm a fresh graduate of this question:
Hack Chrome to show its internal pages with black background
As the accepted answer suggests, I've customized my C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css file.
It turns out that this file is able to target the split-second loading page! Yay! I was able to make that page black by putting a simple html {background: black} in Custom.css.
Problem is... The Custom.css file is applied to all web pages. This means that now I get a black background on all pages, which is something I don't want! (Because I already have an extension that flips the colors, and black flipped becomes white.)
My question is: How do I write CSS in Custom.css that targets only the white page that Chrome shows for a split-second while loading a webpage?
htmlelement? It can be called whatever you want and it should do nothing. But when it'll exist, I could targethtml:not([your_class_name])in theCustom.cssfile, and then I could make pages black even earlier. – Ram Rachum May 13 '13 at 09:10<html>and a few other elements are loaded. Then the extension still needs to run. So there is a certain period where you could still see white. I didn't see this happening in my testing, so I assumed it wasn't an issue. I'll add a classdark-by-defaultthrough the extension, see if that helps. – Oliver Salzburg May 13 '13 at 11:18