darkreader 4.9.46 → 4.9.53
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/README.md +10 -11
- package/darkreader.js +417 -379
- package/package.json +40 -39
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center"><a href="https://darkreader.org" target="_blank" rel="noreferrer noopener"><img width="250" alt="Dark Reader's mascot" src="https://raw.githubusercontent.com/darkreader/darkreader.github.io/master/images/darkreader-mascot.svg"></a></p>
|
|
2
|
-
<p align="center">Dark Reader <strong>analyzes</strong> web pages and aims to <strong>reduce
|
|
2
|
+
<p align="center">Dark Reader <strong>analyzes</strong> web pages and aims to <strong>reduce eyestrain</strong> while browsing the web.</p>
|
|
3
3
|
<br/>
|
|
4
4
|
<p align="center"><a rel="noreferrer noopener" href="https://chrome.google.com/webstore/detail/dark-reader/eimadpbcbfnmbkopoojfekhnkhdbieeh/"><img alt="Chrome Web Store" src="https://img.shields.io/badge/Chrome-141e24.svg?&style=for-the-badge&logo=google-chrome&logoColor=white"></a> <a rel="noreferrer noopener" href="https://addons.mozilla.org/firefox/addon/darkreader/"><img alt="Firefox Add-ons" src="https://img.shields.io/badge/Firefox-141e24.svg?&style=for-the-badge&logo=firefox-browser&logoColor=white"></a> <a rel="noreferrer noopener" href="https://darkreader.org/safari/"><img alt="Apple App Store" src="https://img.shields.io/badge/Safari-141e24.svg?&style=for-the-badge&logo=safari&logoColor=white"></a> <a rel="noreferrer noopener" href="https://microsoftedge.microsoft.com/addons/detail/dark-reader/ifoakfbpdcdoeenechcleahebpibofpc/"><img alt="Edge Addons" src="https://img.shields.io/badge/Edge-141e24.svg?&style=for-the-badge&logo=microsoft-edge&logoColor=white"></a> <a el="noreferrer noopener" href="https://addons.thunderbird.net/thunderbird/addon/darkreader"><img alt="Thunderbird" src="https://img.shields.io/badge/Thunderbird-141e24.svg?&style=for-the-badge&logo=thunderbird&logoColor=white"></a>
|
|
5
5
|
|
|
@@ -16,18 +16,18 @@ If the help page doesn't answer your question, open up a new [discussion](https:
|
|
|
16
16
|
|
|
17
17
|
## How to contribute
|
|
18
18
|
|
|
19
|
-
Read more about contributing to Dark Reader in [CONTRIBUTING.md](https://github.com/darkreader/darkreader/blob/
|
|
19
|
+
Read more about contributing to Dark Reader in [CONTRIBUTING.md](https://github.com/darkreader/darkreader/blob/main/CONTRIBUTING.md).
|
|
20
20
|
|
|
21
21
|
## Building for use
|
|
22
22
|
|
|
23
23
|
You can install the extension from a file.
|
|
24
24
|
Install [Node.js LTS](https://nodejs.org/en/). Download the source code (or check out from git).
|
|
25
|
-
Open terminal in the root folder and run:
|
|
25
|
+
Open the terminal in the root folder and run:
|
|
26
26
|
|
|
27
|
-
- `npm install`
|
|
28
|
-
- `npm run build`
|
|
27
|
+
- `npm install`
|
|
28
|
+
- `npm run build`
|
|
29
29
|
|
|
30
|
-
This will
|
|
30
|
+
This will create a `build/release/darkreader-chrome.zip` file for use in a Chromium-based browser and a `build/release/darkreader-firefox.xpi` file for use in Firefox.
|
|
31
31
|
|
|
32
32
|
## Using Dark Reader for a website
|
|
33
33
|
|
|
@@ -90,14 +90,13 @@ const CSS = await collectCSS();
|
|
|
90
90
|
const isEnabled = isDarkReaderEnabled();
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
Be aware
|
|
94
|
-
the code will use. They originate from the webextension-api.
|
|
93
|
+
Be aware that darkreader will add the `chrome` object onto the `window` object. These are to stub certain functions that the code will use. They originate from the webextension-api.
|
|
95
94
|
|
|
96
95
|
## Site fixes
|
|
97
96
|
|
|
98
|
-
Automatically syncing the site fixes to every Dark Reader user was disabled because the GitHub team
|
|
97
|
+
Automatically syncing the site fixes to every Dark Reader user was disabled because the GitHub team does not allow using GitHub as a CDN. The storage of these files would be expensive, and making requests to other resources would look suspicious. Each new release of Dark Reader will include these changes.
|
|
99
98
|
|
|
100
|
-
However, this can be enabled
|
|
99
|
+
However, this can be enabled using the following steps:
|
|
101
100
|
|
|
102
101
|
- Click on the Dark Reader icon.
|
|
103
102
|
- Click on the Dev tools button (in the bottom-right corner).
|
|
@@ -119,7 +118,7 @@ However, this can be enabled by the following steps:
|
|
|
119
118
|
<p align="center"><a rel="noreferrer noopener" href="https://opencollective.com/darkreader#backers" target="_blank"><img src="https://opencollective.com/darkreader/backers.svg?width=890&limit=1000"></a></p>
|
|
120
119
|
|
|
121
120
|
<h2 align="center">Sponsors</h2>
|
|
122
|
-
<p>Does your company use Dark Reader? Ask your manager or the marketing team if your company would be interested in supporting our project. Your support will allow the maintainers to dedicate more time
|
|
121
|
+
<p>Does your company use Dark Reader? Ask your manager or the marketing team if your company would be interested in supporting our project. Your support will allow the maintainers to dedicate more time to maintenance and creating new features for everyone. Also, your company's logo will show on <a rel="noreferrer noopener" href="https://github.com/darkreader/darkreader#sponsors" target="_blank">GitHub</a>. Who doesn't want a little extra exposure? <a rel="noreferrer noopener" href="https://opencollective.com/darkreader" target="_blank">Here's the info</a>.</p>
|
|
123
122
|
|
|
124
123
|
<h3 align="center"><strong>Thank you to all our wonderful sponsors!</strong></h3>
|
|
125
124
|
<br/>
|