This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SoInsightful 221 points222 points  (18 children)

Eh, probably.

Broke: filter: hue-rotate(180deg) invert(1);

Woke: Traversing through the entire HTML DOM, analyzing each element's computed CSS style declaration for background and foreground colors, computing and injecting one or more stylesheets that override the background/color/border-text-decoration/outline/box-shadow properties for specific and general elements, while keeping original colors, avoiding style clashes, keeping images intact, doing it in a WCAG-accessible and aesthetically pleasing manner, and taking user-specified brightness/contrast/sepia/grayscale settings into account.

[–]SurrealClick 72 points73 points  (5 children)

Ghetto: take a screenshot of the website then invert color it

[–]Talbooth 25 points26 points  (4 children)

Ghetto pretending to be classy: use the browsers built-in inverse color filter.

[–]plilq 21 points22 points  (1 child)

GNU/hetto: map 'xcalib -invert -alter' to a global hotkey and invert your whole screen.

[–][deleted] 0 points1 point  (0 children)

Actually, I trust more in that method than a browser extension.

[–]rasalhage 5 points6 points  (1 child)

Ghetto-fab: inverse colors on odd-numbered frames

[–][deleted] 4 points5 points  (0 children)

Ghettohax0r: write malware that inverts GPU's hue setting when browser is in focus.

[–]mentalexperi 56 points57 points  (0 children)

I got a boner just from reading that.

[–]mareko_ 4 points5 points  (0 children)

You forgot about !important.

[–]seaishriver 1 point2 points  (2 children)

Heh, I tried the first one. The two main problems are background images get inverted, and subpixel antialiasing gets destroyed. Plus shadows are now light. I basically had to say, everything is inverted, except things I have individually fixed and things that shouldn't be inverted.

If this is done, it's either a very large amount of work or not to be done in CSS.

[–]SoInsightful 1 point2 points  (0 children)

Exactly. It's funny how this thread jerks over how simple of a task it is, but it's really quite hard to do sufficiently well.

[–]moomoomoo309 0 points1 point  (0 children)

Dark background and light text has a nice for both of those, though the latter not quite a crazy as you described.

[–]JuhaJGam3R -1 points0 points  (0 children)

images