Feature Request: Night-Mode

332 views
Skip to first unread message

JonasD

unread,
Mar 11, 2010, 3:06:04 AM3/11/10
to SteelAndroid
Hi,

not sure if this is the correct place to ask for new features (please
point me to other places otherwise).

I would like to see a Night-Mode in the browser that makes reading
websites in dark environments easier on the eyes. Most pages contain
black (dark) text on white (light) background. The latter tends to
blind you at night.

An easy implementation could be to invert background and text colors
(i.e. their RGB values) if a website's background color brightness is
above a certain value. Imagas can remain untouched.

What do you think?

Regards
Jonas

kolbysoft

unread,
Mar 11, 2010, 1:30:34 PM3/11/10
to SteelAndroid
Jonas,

a request just like yours has shown up in the past (back then it was
to invert colors to save power on AMOLED screens.
I tried doing it in javascript, but unfortunately, results were not
consistent enough to make it a feature. Without iterating over every
style on the page and determining if the color should be flipped, it
didn't work well at all.
Modern websites unfortunately (or not) use lots of different styles
for text, and it is almost impossible to automatically determine which
ones need changing to make text readable.
Sorry,
Michael

JonasD

unread,
Mar 12, 2010, 2:58:38 AM3/12/10
to SteelAndroid
Michael,

thanks for the reply. I can see how this can be hard with many CSS
styles etc.

There are two Firefox plugins that do this:
https://addons.mozilla.org/de/firefox/addon/7166
https://addons.mozilla.org/de/firefox/addon/10403

I tried them a while ago and they seemed to work reasonably well.
Don't know if they rely on some FF-specific infrastructure, but
otherwise they should provide an excellent starting point for such a
feature.

Regards
Jonas

Reply all
Reply to author
Forward
0 new messages