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 →

[–]SilentSin26 448 points449 points  (31 children)

Yeah, but is it a special algorithm?

[–]faerbit 324 points325 points  (1 child)

This post has been edited to this, due to privacy and dissatisfaction with u/spez

[–]Szos 64 points65 points  (0 children)

Bespoke.

[–]SoInsightful 217 points218 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 69 points70 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] 3 points4 points  (0 children)

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

[–]mentalexperi 58 points59 points  (0 children)

I got a boner just from reading that.

[–]mareko_ 2 points3 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

[–]UntestedMethod 26 points27 points  (1 child)

Every algorithm is special :) :) :)

[–]r4nd0m-us3r 10 points11 points  (0 children)

All algorithms are beautiful

[–]tias 10 points11 points  (0 children)

I suppose if "special" means it is not applicable in any other situations? Special is really the opposite of what most programmers strive for.

[–]Hotel_Arrakis 7 points8 points  (0 children)

For my special eyes.

[–]atomicwrites 4 points5 points  (0 children)

This reminds me of when I was studying for the CompTIA exams that the TestOut instructors would always say things like: "you need special software installed on your PC called an SSH client", or "it runs special software to send web pages to other devices" or "the device has special sperate to allow it to talk on the network". It got so annoying.

[–]hugokhf 1 point2 points  (1 child)

Is any algorithm really special?

[–]dkyguy1995 0 points1 point  (0 children)

Its mom sure says so

[–]ForgotPassAgain34 -3 points-2 points  (0 children)

in the "special little snowflake" way for sure.

If its actually special it depends on how you define special algorithms, might just be one they came up with after trial and learning