Night Mode Addon compatible with 27+?

General discussion, compatibility and contributed extensions.

Moderators: satrow, Lootyhoof, Andrew Gilbertson

Firefairy
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: Tue Jan 03, 2017 12:32 pm

Night Mode Addon compatible with 27+?

Postby Firefairy » Mon Feb 13, 2017 2:25 pm

I am looking for an addon that will, when turned on, darken or invert every page loaded in the browser, preferably with a blacklist so I can turn it off on pages it doesn't play nicely with. All I have been able to find is Aniverto (https://addons.mozilla.org/en-us/firefox/addon/aniverto/), which performs the basic function I want, but has to be turned on every time one loads a page, which makes it nearly useless with my usual browsing behavior. That weakness has been removed by the dev in their newer addon, but that doesn't work in PM.

For reference, I already know about the following, and they don't suit my needs:
Dimming userscripts that only lower the brightness of pages. These also reduce contrast- I very much prefer light text on black or very dark background to black on gray/dim.
Userscripts that try to enforce nightmode on every page. Best solution I have found yet, I am currently using this one: https://userstyles.org/styles/136322/global-white-black-night-mode, the main downside is the lack of easy blacklist or disable-for-this-tab. Blacklist is doable, just not convenient, disable-by-tab isn't really a thing as far as I can tell.
F.lux and similar color-shifting programs to adjust screen color/brightness by time of day. I already use f.lux, I want an addon in addition, not in place of universal color shift.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1051
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Night Mode Addon compatible with 27+?

Postby JustOff » Mon Feb 13, 2017 8:08 pm

It seems it's rather simple to create an extension which will load css selectively per domain (as it done in HTML5 Video Tuner) to implement similar "night mode". Does anyone else interested in such add-on?
Here are the add-ons I made in a spare time. That was fun!

fillerup
Fanatic
Fanatic
Posts: 183
Joined: Mon May 19, 2014 7:14 pm
Location: Finland

Re: Night Mode Addon compatible with 27+?

Postby fillerup » Tue Feb 14, 2017 3:22 am

JustOff wrote:It seems it's rather simple to create an extension which will load css selectively per domain (as it done in HTML5 Video Tuner) to implement similar "night mode". Does anyone else interested in such add-on?

i'd totally use it if it can generate a particular color palette (say, dark green or dark blue depending on my needs), though i understand that's much more complicated than say, a simple color inverter

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1051
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Night Mode Addon compatible with 27+?

Postby JustOff » Tue Feb 14, 2017 9:20 pm

I have forked Dark Background and Light Text as Advanced Night Mode, hope the lovers of darkness will find it useful 8-)
Here are the add-ons I made in a spare time. That was fun!

User avatar
gracious1
Astronaut
Astronaut
Posts: 653
Joined: Sun May 15, 2016 5:00 am
Location: snowy upstate NY
Contact:

Re: Night Mode Addon compatible with 27+?

Postby gracious1 » Thu Feb 23, 2017 7:08 pm

Just the other night I was looking for a a night-mode addon, and all of the ones I could a find used jetpack. Glad I saw this thread. Thank you very much, Justoff! :thumbup:
ImageBe not the first by whom the new are tried, nor yet the last to lay the old aside.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1051
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Night Mode Addon compatible with 27+?

Postby JustOff » Sun Apr 30, 2017 8:39 pm

Advanced Night Mode has been updated to 1.0.3:

[+] Add special style to Invert method for Moon PDF Viewer
[±] Use Invert method as default for *.pdf
Here are the add-ons I made in a spare time. That was fun!

User avatar
mr tribute
Apollo supporter
Apollo supporter
Posts: 46
Joined: Sat Mar 19, 2016 11:24 pm

Re: Night Mode Addon compatible with 27+?

Postby mr tribute » Mon May 01, 2017 1:27 pm

Looks cool and works well. Thanks JustOff :thumbup:

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1051
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Night Mode Addon compatible with 27+?

Postby JustOff » Fri May 05, 2017 12:25 pm

Advanced Night Mode has been updated to 1.0.4:

[±] Make PDF viewer interface color customizable
[±] Revert devtools theme back to 'light' when dark mode disabled
Here are the add-ons I made in a spare time. That was fun!

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1051
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Night Mode Addon compatible with 27+?

Postby JustOff » Tue May 09, 2017 8:46 pm

Advanced Night Mode has been updated to 1.0.5:

[+] Allow to switch on/off dark DevTools theme
[±] Properly handle non-standard (like about:something) URLs with parameters
Here are the add-ons I made in a spare time. That was fun!

vertigo220
Hobby Astronomer
Hobby Astronomer
Posts: 27
Joined: Sat Nov 16, 2013 8:08 pm
Location: US

Re: Night Mode Addon compatible with 27+?

Postby vertigo220 » Wed Jul 26, 2017 6:08 pm

Been using this for a few days now and it works well for the most part, but every now and then it'll load a page in a domain I've disabled it on in night mode. Also, I've run across a few different pages where none of the night modes work well. For example, on Reddit, the voting arrows are often invisible in night mode, and some (some subreddits use different images for the voting buttons) can be fixed with the different night mode settings and some can't, which seems strange since you'd think invert at least would always work.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1051
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Night Mode Addon compatible with 27+?

Postby JustOff » Wed Jul 26, 2017 6:32 pm

vertigo220 wrote:every now and then it'll load a page in a domain I've disabled it on in night mode.

Could you please provide the steps to reproduce?
seems strange since you'd think invert at least would always work.

CSS is quite a tricky thing ...
Here are the add-ons I made in a spare time. That was fun!

vertigo220
Hobby Astronomer
Hobby Astronomer
Posts: 27
Joined: Sat Nov 16, 2013 8:08 pm
Location: US

Re: Night Mode Addon compatible with 27+?

Postby vertigo220 » Wed Jul 26, 2017 10:29 pm

JustOff wrote:Could you please provide the steps to reproduce?


Go to a site with the addon enabled, when it loads in the default night mode, click the addon button and set it to disabled for that site. Continue browsing the site and every now and then it will load in night mode. For example, I just did a google search via the context menu, and it loaded the search page in night mode. I checked the addon, and sure enough, it was set to disabled for google. Also, another search I did just a little while ago that's still open is normal, not in night mode. Another site this happens a lot on is barter.vg, though I don't think it's anything with the site but rather I notice it more when I'm on a site that I'm browsing a lot and loading a lot of tabs in.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1051
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Night Mode Addon compatible with 27+?

Postby JustOff » Thu Jul 27, 2017 11:37 am

vertigo220 wrote:Go to a site with the addon enabled, when it loads in the default night mode, click the addon button and set it to disabled for that site. Continue browsing the site and every now and then it will load in night mode.

I can't reproduce this issue. If I change night mode for some site, it is always displayed using the selected mode. Could anyone else confirm the bug observed by vertigo220 and provide an exact way to reproduce it?
Here are the add-ons I made in a spare time. That was fun!

vertigo220
Hobby Astronomer
Hobby Astronomer
Posts: 27
Joined: Sat Nov 16, 2013 8:08 pm
Location: US

Re: Night Mode Addon compatible with 27+?

Postby vertigo220 » Thu Jul 27, 2017 3:51 pm

The only thing I can suggest is try changing it to night mode, using that to browse a site for a day or two, then change it to disabled for that site. Perhaps you need to cycle through the various options on a site for it to happen (i.e. 'Default' > 'Invert' > 'Simple CSS' > 'Stylesheet processor' > 'Default' > 'Disabled'), since I did that for some sites trying to find one that displayed everything properly. Though I don't think I did it with google, so maybe not. Last night I also had a page that was rendered normally (disabled for that page), but a small part of it (captcha box I think) was rendered in night mode. I'm guessing since captchas are served by google and it messed up and thought it was supposed to display google sites in night mode again.

tooshorttoolong
Apollo supporter
Apollo supporter
Posts: 49
Joined: Mon Sep 11, 2017 2:28 pm

Re: Night Mode Addon compatible with 27+?

Postby tooshorttoolong » Mon Oct 16, 2017 11:51 am

Since this seems to be the official bug report thread for Advanced Night Mode…

First thanks JustOff, this is an awesome addon! (Even if you "just" forked it originally. Thanks to Mikhail Khvoinitsky, the original author, too :))

Now my issue: ANM forces "Use system colors". If I un-tick this setting, ANM puts it back on when I disable the night mode. This is a problem for pages that fail to set either text or background colors and just assume text is black and bg is white (because my system colors are: bright text, dark bg).

Another issue is that on some web pages, when night mode is enabled, the pages first flash in white before ANM changes the style. For example these two pages:
https://schnouki.net/posts/2014/12/12/o ... -on-linux/
https://bb.arethusa.su/

I am using ANM 1.0.5 with PM 27.5.1 on Linux.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1051
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Night Mode Addon compatible with 27+?

Postby JustOff » Mon Oct 16, 2017 1:27 pm

tooshorttoolong wrote:Now my issue: ANM forces "Use system colors". If I un-tick this setting, ANM puts it back on when I disable the night mode. This is a problem for pages that fail to set either text or background colors and just assume text is black and bg is white (because my system colors are: bright text, dark bg).

Sorry, but I can't figure out what you mean. Could you provide a simpler description with screenshots?

Another issue is that on some web pages, when night mode is enabled, the pages first flash in white before ANM changes the style. For example these two pages:
https://schnouki.net/posts/2014/12/12/o ... -on-linux/
https://bb.arethusa.su/

I'll look at this.
Here are the add-ons I made in a spare time. That was fun!

tooshorttoolong
Apollo supporter
Apollo supporter
Posts: 49
Joined: Mon Sep 11, 2017 2:28 pm

Re: Night Mode Addon compatible with 27+?

Postby tooshorttoolong » Mon Oct 16, 2017 2:08 pm

JustOff wrote:Sorry, but I can't figure out what you mean. Could you provide a simpler description with screenshots?

Open the preferences, Content, Colors. There is a "Use system colors" checkbox:
colors.png


When I enable the night mode, the setting is automatically changed:
colors-night-mode.png


And when I disable the night mode, it goes back to:
colors-after-night-mode.png


This is no matter what the original setting was. ANM will always enable "Use system colors" when I go out of the night mode. I would like it to keep the previous setting instead :).

tooshorttoolong
Apollo supporter
Apollo supporter
Posts: 49
Joined: Mon Sep 11, 2017 2:28 pm

Re: Night Mode Addon compatible with 27+?

Postby tooshorttoolong » Mon Oct 16, 2017 2:12 pm

JustOff wrote:
Another issue is that on some web pages, when night mode is enabled, the pages first flash in white before ANM changes the style. For example these two pages:
https://schnouki.net/posts/2014/12/12/o ... -on-linux/
https://bb.arethusa.su/

I'll look at this.

Thanks. BTW I’m not sure if I was clear, I mean that the pages seem to use their normal CSS theme for a short moment if:
- I enable night mode.
- then I load or reload the page.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1051
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA
Contact:

Re: Night Mode Addon compatible with 27+?

Postby JustOff » Mon Oct 16, 2017 2:24 pm

tooshorttoolong wrote:ANM will always enable "Use system colors" when I go out of the night mode.

As far as I see it always disables it :coffee:
I would like it to keep the previous setting instead

Well, i.e. you want ANM preserves last state of "Use system colors" when it disables its night mode, right? This can be a problem, because it is not clear what state to consider the original. We can only try to add an option like "Enable system colors when go out of night mode".
Here are the add-ons I made in a spare time. That was fun!

tooshorttoolong
Apollo supporter
Apollo supporter
Posts: 49
Joined: Mon Sep 11, 2017 2:28 pm

Re: Night Mode Addon compatible with 27+?

Postby tooshorttoolong » Mon Oct 16, 2017 3:05 pm

JustOff wrote:Well, i.e. you want ANM preserves last state of "Use system colors" when it disables its night mode, right?

Yes.
JustOff wrote:This can be a problem, because it is not clear what state to consider the original. We can only try to add an option like "Enable system colors when go out of night mode".

Is it not possible to store the original state when the user asks to switch to the night mode?
But a setting would work too.


Return to “Browser extensions”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests