Inverting Screen Colours for Late-Night Hacking

I've recently found it really hurts my eyes when working late at night going from a terminal (which is black background and light text) to a browser window like google.com with a large expanse of white. To help with this I've been looking for ways to reduce the screen…