darkreader 4.9.95 → 4.9.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +11 -7
- package/darkreader.js +5944 -5513
- package/package.json +35 -28
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -157,8 +157,8 @@ Step 2: change Firefox's settings.
|
|
|
157
157
|
|
|
158
158
|
- Type `about:config` in the address bar and press Enter.
|
|
159
159
|
- A warning page may appear. Click `Accept the Risk and Continue` to proceed.
|
|
160
|
-
- Search for and set `extensions.webextensions.restrictedDomains` to an empty value (if the preference does not exist, create with
|
|
161
|
-
- Set `privacy.resistFingerprinting.block_mozAddonManager` to `true` (if the preference does not exist, create with
|
|
160
|
+
- Search for and set `extensions.webextensions.restrictedDomains` to an empty value (if the preference does not exist, create it with `String` as the type).
|
|
161
|
+
- Set `privacy.resistFingerprinting.block_mozAddonManager` to `true` (if the preference does not exist, create it with `Boolean` as the type).
|
|
162
162
|
|
|
163
163
|
After changing the necessary settings for both Dark Reader and Firefox, reload the desired page(s).
|
|
164
164
|
|
|
@@ -171,21 +171,25 @@ To reset them, click on the reset (or delete icon, if present) icon at the most-
|
|
|
171
171
|
### Clarification about quarantined domains ("Run on sites with restrictions" option)
|
|
172
172
|
<details><summary>Quarantined domains and Dark Reader — an explanation</summary>
|
|
173
173
|
|
|
174
|
-
The option "Run on sites with restrictions", present
|
|
174
|
+
The option "Run on sites with restrictions", present for some extensions, is only related to quarantined domains, and is not needed for Dark Reader to work on restricted websites. In the context of Firefox's source code, "restricted domains" and "quarantined domains" are two separate things.
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
**The "restricted domains" list** (controlled by the preference `extensions.webextensions.restrictedDomains`) is the same for all users and will restrict *all* user-installed extensions (without exceptions) from running on the specified websites. The list is controlled by Mozilla, and, as of December 2024, the list only contains Mozilla-owned domains. Sites that are not on that list will not be affected by those restrictions (meaning that the extensions will be able to run normally).
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
**The "quarantined domains" list** (controlled by the preferences `extensions.quarantinedDomains.enabled` and `extensions.quarantinedDomains.list`) contain domains that will run extensions normally, but if Firefox detects suspicious activity from a particular extension it will block that extension on those specific websites. The list is controlled by Mozilla, and, as of December 2024, the list only contains domains related to internet banking in Brazil. For more information about quarantined domains, see "[Why are some add-ons not allowed on sites restricted by Mozilla?](https://support.mozilla.org/en-US/kb/quarantined-domains)".
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
For Dark Reader, the option "Run on sites with restrictions" is not shown because Dark Reader is a [Recommended](https://support.mozilla.org/en-US/kb/recommended-extensions-program) extension by Mozilla. (The "Recommended" status is only relevant for "quarantined domains", and does not affect "restricted domains".)
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
Due to the fact that it is a Recommended extension, it means that it meets the "highest standards of security, functionality, and user experience". The quarantined domains are only related to extension security, and because Dark Reader is considered secure by Mozilla, that option is not shown, meaning **it will always run even on quarantined domains** (but will still obey the "restricted domains" list if it is not empty).
|
|
183
|
+
|
|
184
|
+
Regarding quarantined domains specifically, there is this [comment from Firefox's source code:](https://searchfox.org/mozilla-central/source/toolkit/components/extensions/Extension.sys.mjs#2937-2938)
|
|
183
185
|
|
|
184
186
|
```
|
|
185
187
|
// Privileged extensions and any extensions with a recommendation state are
|
|
186
188
|
// exempt from the quarantined domains.
|
|
187
189
|
```
|
|
188
190
|
|
|
191
|
+
A simple way to recapitulate all this information is: "restricted domains" exist to protect Mozilla-owned sites (no user-installed extension will run on them, without exceptions), while "quarantined domains" are meant to protect users from malicious extensions (and it doesn't apply to Dark Reader because it is a Recommended extension).
|
|
192
|
+
|
|
189
193
|
</details>
|
|
190
194
|
|
|
191
195
|
<h2 align="center">Contributors</h2>
|