rugk / website-dark-mode-switcher

This is a (Firefox) add-on (WebExtension) that lets you invert the website's color scheme by inverting/changing the prefers-color-scheme media feature of CSS.
https://addons.mozilla.org/firefox/addon/dark-mode-website-switcher/?src=external-github-top
Other
58 stars 4 forks source link

Cannot download from Firefox Addon Store #53

Closed mbledkowski closed 2 years ago

mbledkowski commented 2 years ago

Bug description

Hi, I don't know why, but when I try do download this addon from Firefox's Add-on Store it shows "You need an updated version of Firefox for this extension" information. Other addons I can download just fine.

Steps to reproduce

  1. Go to https://addons.mozilla.org/en-US/firefox/addon/dark-mode-website-switcher/ image

Actual behavior

"You need an updated version of Firefox for this extension" information

Expected behavior

Option to download this addon.

System

Arch Linux x86_64, Linux 5.16.10-zen1-1-zen, Firefox version 97.0.1 (64 bit), all packages up to date

rugk commented 2 years ago

As indicated in other issues (https://github.com/rugk/website-dark-mode-switcher/issues/52) this is very likely an issue with the privacy.resistFingerprinting option or any other add-on or some Firefox tweaking tool or similar that could have set that option.

To check that, please open a new tab and go to about:config. If there is a warning, accept that. Then enter privacy.resistFingerprinting there. If it is enabled, then please disable it by double-clicking on it.

The problem is that for privacy reasons, Firefox overrides the user agent when that option is set. As this add-on requires v95 or higher if an old user agent is spoofed, the addon.mozilla.org (AMO) website thinks the add-on is not compatible. Note that you also need to have that option disabled, because Firefox would also override that dark mode when that option is set, rendering this add-on incompatible. See https://github.com/rugk/website-dark-mode-switcher/issues/22 for more information.