├── .editorconfig
├── .eslintignore
├── .eslintrc
├── .github
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ ├── bug_report_site_issue.md
│ └── feature_request.md
├── .gitignore
├── .gitmodules
├── CONTRIBUTING.md
├── CONTRIBUTORS.md
├── LICENSE.md
├── README.md
├── assets
├── amotags.txt
├── icon-base.svg
├── icon-dark-org.svg
├── icon-final.png
├── icon-final.svg
├── icon-light-org.svg
├── screencasts
│ └── .gitkeep
├── screenshots
│ ├── disabled-light-mode.png
│ ├── enabled-dark-style.png
│ └── enabled-light-style.png
└── texts
│ ├── de
│ ├── Changelog
│ │ ├── 1.0.html
│ │ ├── 1.0.md
│ │ ├── 1.1.html
│ │ ├── 1.1.md
│ │ ├── 1.2.html
│ │ ├── 1.2.md
│ │ ├── 1.3.html
│ │ ├── 1.3.md
│ │ ├── 2.0.html
│ │ └── 2.0.md
│ ├── amoDescription.html
│ ├── amoScreenshots.csv
│ ├── amoSummary.txt
│ ├── permissions.md
│ └── privacy.txt
│ └── en
│ ├── Changelog
│ ├── 1.0.html
│ ├── 1.0.md
│ ├── 1.1.html
│ ├── 1.1.md
│ ├── 1.2.html
│ ├── 1.2.md
│ ├── 1.3.html
│ ├── 1.3.md
│ ├── 2.0.html
│ ├── 2.0.md
│ └── next.md
│ ├── amoDescription.html
│ ├── amoScreenshots.csv
│ ├── amoSummary.txt
│ ├── permissions.md
│ └── privacy.txt
├── jsconfig.json
├── package-lock.json
├── package.json
├── scripts
├── make.sh
└── manifests
│ ├── dev.json
│ └── firefox.json
├── src
├── _locales
│ ├── da
│ │ └── messages.json
│ ├── de
│ │ └── messages.json
│ └── en
│ │ └── messages.json
├── background
│ ├── background.html
│ ├── background.js
│ └── modules
│ │ ├── ActionButton.js
│ │ └── InstallUpgrade.js
├── common
│ ├── common.css
│ ├── common.js
│ ├── img
│ │ ├── check.svg
│ │ ├── close-white.svg
│ │ ├── close.svg
│ │ ├── error-white.svg
│ │ ├── info-dark.svg
│ │ ├── info-light.svg
│ │ ├── open-in-new.svg
│ │ └── warning-dark.svg
│ └── modules
│ │ ├── BrowserSettings
│ │ └── BrowserSettings.js
│ │ ├── DarkModeLogic.js
│ │ ├── data
│ │ ├── BrowserCommunicationTypes.js
│ │ ├── DefaultSettings.js
│ │ └── MessageLevel.js
│ │ └── lodash
│ │ ├── .internal
│ │ ├── baseGetTag.js
│ │ ├── freeGlobal.js
│ │ ├── getTag.js
│ │ └── root.js
│ │ ├── debounce.js
│ │ ├── isFunction.js
│ │ ├── isObject.js
│ │ ├── isObjectLike.js
│ │ ├── isPlainObject.js
│ │ ├── isString.js
│ │ └── throttle.js
├── icons
│ ├── icon-dark.svg
│ └── icon-light.svg
├── manifest.json
├── options
│ ├── fastLoad.js
│ ├── modules
│ │ └── CustomOptionTriggers.js
│ ├── options.css
│ ├── options.html
│ └── options.js
└── tests
│ ├── .eslintrc
│ ├── index.css
│ ├── index.html
│ ├── module.test.js
│ ├── run.js
│ └── setup.js
└── tests
/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 |
3 | root = true
4 |
5 | [*]
6 | # Unix style files
7 | end_of_line = lf
8 | charset = utf-8
9 | trim_trailing_whitespace = true
10 | insert_final_newline = true
11 |
12 | [*.sh]
13 | indent_style = space
14 | indent_size = 4
15 |
16 | [*.json]
17 | indent_style = space
18 | indent_size = 2
19 |
20 | [*.html]
21 | indent_style = tab
22 |
23 | [*.css]
24 | indent_style = space
25 | indent_size = 2
26 |
27 | [*.js]
28 | indent_style = space
29 | indent_size = 4
30 |
31 | [*.eslintrc]
32 | indent_style = space
33 | indent_size = 4
34 |
35 | [*.{md,markdown}]
36 | indent_style = space
37 | indent_size = 2
38 | trim_trailing_whitespace = false
39 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | src/common/lib/*
2 | src/common/modules/lib/*
3 | src/common/modules/lodash/*
4 | src/popup/lib/*
5 |
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 | "parserOptions": {
4 | "ecmaVersion": 2017,
5 | "sourceType": "module",
6 | "ecmaFeatures": {
7 | "impliedStrict": true
8 | }
9 | },
10 | "env": {
11 | "browser": true,
12 | "webextensions": true,
13 | "es6": true
14 | },
15 | "extends": "eslint:recommended",
16 | "rules": {
17 | // basic rules
18 | "semi": 1,
19 | "semi-style": 2,
20 | "semi-spacing": 1,
21 | "camelcase": 2,
22 | "quotes": ["warn", "double", {
23 | "avoidEscape": true,
24 | "allowTemplateLiterals": false
25 | }],
26 | "brace-style": 2,
27 |
28 | // just to make sure (are defaults)
29 | "indent": ["error", 4],
30 |
31 | // allow console output for errors in browsers
32 | "no-console": 0,
33 |
34 | // technically required, because of CSP
35 | "no-eval": 2,
36 | "no-implied-eval": 2,
37 |
38 | // great new EcmaScript features
39 | "prefer-const": ["error", {
40 | "destructuring": "all"
41 | }],
42 | "no-var": 1,
43 | "prefer-arrow-callback": 1,
44 | "implicit-arrow-linebreak": 1,
45 | "arrow-parens": 1,
46 | "arrow-spacing": 1,
47 | "no-confusing-arrow": 1,
48 | "prefer-rest-params": 2,
49 | "prefer-spread": 2,
50 | "prefer-template": 1,
51 | "template-curly-spacing": 1,
52 | "symbol-description": 2,
53 | "object-shorthand": ["warn", "consistent-as-needed"],
54 | "prefer-promise-reject-errors": 2,
55 | /* "prefer-destructuring": 1, */ // https://github.com/eslint/eslint/issues/10250
56 | "prefer-numeric-literals": 1,
57 |
58 | // additional rules
59 | "no-new-object": 2,
60 | "eqeqeq": ["error", "smart"],
61 | "curly": ["error", "all"],
62 | "dot-location": ["error", "property"],
63 | "dot-notation": 2,
64 | "no-array-constructor": 2,
65 | "no-throw-literal": 2,
66 | "no-self-compare": 2,
67 | "no-useless-call": 1,
68 | /* "no-use-before-define": 1, */
69 | "consistent-return": 2,
70 | "spaced-comment": 1,
71 | "no-multi-spaces": 1,
72 | "no-new-wrappers": 2,
73 | "no-script-url": 2,
74 | "no-void": 1,
75 | "vars-on-top": 1,
76 | "yoda": ["error", "never"],
77 | /* "no-warning-comments": 1, */ // should be enabled later
78 | "require-await": 1,
79 | "require-jsdoc": ["error", {
80 | "require": {
81 | "FunctionDeclaration": true,
82 | "MethodDefinition": false,
83 | "ClassDeclaration": false,
84 | "ArrowFunctionExpression": false
85 | }
86 | }],
87 | "valid-jsdoc": ["error", {
88 | "prefer": {
89 | "return": "returns"
90 | },
91 | "preferType": {
92 | "Boolean": "boolean",
93 | "Number": "number",
94 | "object": "Object",
95 | "String": "string",
96 | "HtmlElement": "HTMLElement"
97 | },
98 | "requireReturnType": true,
99 | "matchDescription": ".+",
100 | "requireParamDescription": false,
101 | "requireReturnDescription": false
102 | }],
103 | "wrap-iife": ["error", "inside"],
104 | "no-loop-func": 2,
105 | "no-unused-expressions": 2,
106 | // "linebreak-style": 1, // cannot be used when contributing on Windows
107 | }
108 | }
109 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: bug
6 | assignees: ''
7 |
8 | ---
9 |
10 | ## Bug description
11 |
12 |
13 | ## Steps to reproduce
14 |
15 |
16 | 1.
17 | 2.
18 | 3.
19 |
20 | ### Actual behavior
21 |
22 |
23 | ### Expected behavior
24 |
25 |
26 | ## System
27 |
28 |
29 | Operating system and version:
30 | Browser and version: Firefox
31 | Add-on version:
32 |
33 | ## Possible solution
34 |
35 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report_site_issue.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Problem with a specific website
3 | about: Create a bug report for a problem on a specific website
4 | title: ''
5 | labels: bug, site-issue
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Affected website:**
11 |
12 | ## Bug description
13 |
14 |
15 | ## Steps to reproduce
16 |
17 |
18 | 1. Go to https://example.com/replace-with-url
19 | 2.
20 | 3.
21 |
22 | ### Screencast/Screenshots
23 |
24 |
25 | ### Actual behavior
26 |
27 |
28 | ### Expected behavior
29 |
30 |
31 | ## System
32 |
33 |
34 | Operating system and version:
35 | Browser and version: Firefox
36 | Add-on version:
37 |
38 | ## Possible solution
39 |
40 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: enhancement
6 | assignees: ''
7 |
8 | ---
9 |
10 | ## Background
11 |
12 |
13 |
14 | ## Proposed solution
15 |
16 |
17 |
18 | ## Alternatives
19 |
20 |
21 |
22 | ## Additional context
23 |
24 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | build/
2 | node_modules/
3 | .vscode
4 |
5 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "src/common/modules/Localizer"]
2 | path = src/common/modules/Localizer
3 | url = https://github.com/TinyWebEx/Localizer/
4 | [submodule "src/tests/helper"]
5 | path = src/tests/helper
6 | url = https://github.com/TinyWebEx/TestHelper
7 | [submodule "src/common/modules/AddonSettings"]
8 | path = src/common/modules/AddonSettings
9 | url = https://github.com/TinyWebEx/AddonSettings
10 | [submodule "src/common/modules/Logger"]
11 | path = src/common/modules/Logger
12 | url = https://github.com/TinyWebEx/Logger
13 | [submodule "src/common/modules/MessageHandler"]
14 | path = src/common/modules/MessageHandler
15 | url = https://github.com/TinyWebEx/MessageHandler
16 | [submodule "src/common/modules/BrowserCommunication"]
17 | path = src/common/modules/BrowserCommunication
18 | url = https://github.com/TinyWebEx/BrowserCommunication
19 | [submodule "src/common/modules/AutomaticSettings"]
20 | path = src/common/modules/AutomaticSettings
21 | url = https://github.com/TinyWebEx/AutomaticSettings
22 | [submodule "src/common/modules/CommonCss"]
23 | path = src/common/modules/CommonCss
24 | url = https://github.com/TinyWebEx/CommonCss
25 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Nice to see you want to contribute to this project! :+1: :tada:
2 | Please have a look at this guide to know what you are changing.
3 |
4 | As I do not want to duplicate the instructions all over, please **find the common contributors docs here**: https://github.com/TinyWebEx/common/blob/master/CONTRIBUTING.md
5 |
6 | Some links and potential special rules for this repo only are listed below.
7 |
8 | ## Support us!
9 |
10 | You like this add-on, but have no idea how to support us?
11 |
12 | Here are some easy things you can always do:
13 |
14 | * Spread the word and recommend it to others! 🤗😍
15 | * Leave a rating [at addons.mozilla.org](https://addons.mozilla.org/firefox/addon/dark-mode-website-switcher/reviews/) if you like it!
16 | Also consider writing some text and not only leaving stars there. It's always nice to hear some warm words. ☺️
17 | * Star this project [on GitHub](https://github.com/rugk/website-dark-mode-switcher) by clicking the "star" icon!
18 |
19 | ## Translations
20 |
21 | It would be great if you can contribute your translations! You can either translate the JSON files directly or use [this online translator service](https://lusito.github.io/web-ext-translator/?gh=https://github.com/rugk/website-dark-mode-switcher).
22 |
23 | **Manually:** To translate it manually, go to [`src/_locales/en`](src/_locales/en) and copy the English (or any other existing language) `messages.json` file. (You could also use another source language if you want, but usually English is the best.) Create a new dir at `src/_locales` with the abbreviation of the language you want to translate.
24 | **Web-ext-translator:** Go to [this page](https://lusito.github.io/web-ext-translator/) and translate it online. Download the result by clicking on "Export to ZIP" at the bottom.
25 |
26 | At the end, just submit a Pull Request with your changed files.
27 | Of course, you can (and should) improve existing translations.
28 |
29 | For more details, [see the official docs](https://developer.mozilla.org/Add-ons/WebExtensions/Internationalization#Providing_localized_strings_in__locales).
30 |
31 | ### Other items to translate
32 |
33 | * Text assets to translate: [`assets/texts`](assets/texts)
34 | * Screenshots: [`assets/screenshots`](assets/screenshots)
35 | * Wiki to translate: [wiki](../../wiki)
36 | * Sidebar file for adding language: [`_Sidebar` file](../../wiki/_Sidebar/_edit)
37 |
38 | For more information, see the whole [contributing doc](https://github.com/TinyWebEx/common/blob/master/CONTRIBUTING.md#translations).
39 |
40 | ## Coding
41 |
42 | See the **common guide** on how to [start coding](https://github.com/TinyWebEx/common/blob/master/CONTRIBUTING.md#coding) and what rules to follow.
43 |
44 | **Attention:** For this add-on, you need to execute [`scripts/downloadEmojiImages.sh`](scripts/downloadEmojiImages.sh) to download the bundled emoji sheets if you use anything else than the "native emojis" ("emojis from your OS") in the settings of this add-on. The reason is just, that these big files are not bundled/distributed in this repo.
45 |
46 | ### Tests
47 |
48 | * Test dir: [`src/tests/`](src/tests/)
49 | * EsLint config for tests: [`src/tests/.eslintrc`](src/tests/.eslintrc)
50 |
51 | ## Need ideas?
52 |
53 | Don't have any idea what to take up? [Here you can find a list of good issues for starters](../../contribute), e.g. if you want to start with this project or a (programming) language in general.
54 | However, of course, feel free to take on any issue (that is not claimed or assigned to someone else).
55 |
56 | Also, there are other add-on's, which are very similar and may also need work:
57 |
58 | * [Awesome Emoji Picker](https://github.com/rugk/how-did-i-get-here/contribute)
59 | * [Mastodon Simplified Federation](https://github.com/rugk/mastodon-simplified-federation/contribute)
60 | * [Offline QR Code Generator](https://github.com/rugk/offline-qr-code/contribute)
61 | * [How did I get here?](https://github.com/rugk/how-did-i-get-here/contribute)
62 |
63 | There is also [an overview over all good first issues in other add-on repos](https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+archived%3Afalse+user%3Arugk+user%3ATinyWebEx+label%3A%22good+first+issue%22). Also [check out the libraries used by this project](https://github.com/TinyWebEx).
64 |
--------------------------------------------------------------------------------
/CONTRIBUTORS.md:
--------------------------------------------------------------------------------
1 | # Contributors
2 |
3 | * @tartpvule
4 | * @ENT8R
5 | * Kyle Copperfield (@kmcopper)
6 |
7 | ## Translators
8 |
9 | ### Danish
10 |
11 | - [@Grooty12](https://github.com/Grooty12)
12 |
13 | ### German
14 |
15 | - [@rugk](https://github.com/rugk)
16 |
17 | ### Turkish
18 |
19 | - Ömür Turan ([@omurturan](https://github.com/omurturan))
20 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | ## Dark Mode Website Switcher license
2 |
3 | Copyright (c) 2019 rugk and contributors
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
11 | ## [lodash](https://github.com/lodash/lodash)
12 |
13 | This project includes some source code from lodash.
14 |
15 | The MIT License
16 |
17 | Copyright JS Foundation and other contributors
18 |
19 | Based on Underscore.js, copyright Jeremy Ashkenas,
20 | DocumentCloud and Investigative Reporters & Editors
21 |
22 | This software consists of voluntary contributions made by many
23 | individuals. For exact contribution history, see the revision history
24 | available at https://github.com/lodash/lodash
25 |
26 | The following license applies to all parts of this software except as
27 | documented below:
28 |
29 | ====
30 |
31 | Permission is hereby granted, free of charge, to any person obtaining
32 | a copy of this software and associated documentation files (the
33 | "Software"), to deal in the Software without restriction, including
34 | without limitation the rights to use, copy, modify, merge, publish,
35 | distribute, sublicense, and/or sell copies of the Software, and to
36 | permit persons to whom the Software is furnished to do so, subject to
37 | the following conditions:
38 |
39 | The above copyright notice and this permission notice shall be
40 | included in all copies or substantial portions of the Software.
41 |
42 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
43 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
44 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
45 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
46 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
47 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
48 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
49 |
50 | ====
51 |
52 | Copyright and related rights for sample code are waived via CC0. Sample
53 | code is defined as all source code displayed within the prose of the
54 | documentation.
55 |
56 | CC0: http://creativecommons.org/publicdomain/zero/1.0/
57 |
58 | ====
59 |
60 | Files located in the node_modules and vendor directories are externally
61 | maintained libraries used by this software which have their own
62 | licenses; we recommend you read them, as their terms may differ from the
63 | terms above.
64 |
65 | ## [Mozilla Photon icons](https://design.firefox.com/icons/viewer/)
66 |
67 | * [`src/icons/icon-dark.svg`](src/icons/icon-dark.svg) is based on the [window icon](https://design.firefox.com/icons/viewer/#win) by Mozilla, license: [MPL v2.0](https://www.mozilla.org/en-US/MPL/2.0/)
68 |
69 | The MPLv2.0 license is reproduced below:
70 |
71 | Mozilla Public License, version 2.0 1. Definitions 1.1. “Contributor” means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.
72 |
73 | 1.2. “Contributor Version” means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor’s Contribution.
74 |
75 | 1.3. “Contribution” means Covered Software of a particular Contributor.
76 |
77 | 1.4. “Covered Software” means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.
78 |
79 | 1.5. “Incompatible With Secondary Licenses” means
80 |
81 | that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or
82 |
83 | that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License.
84 |
85 | 1.6. “Executable Form” means any form of the work other than Source Code Form.
86 |
87 | 1.7. “Larger Work” means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.
88 |
89 | 1.8. “License” means this document.
90 |
91 | 1.9. “Licensable” means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License.
92 |
93 | 1.10. “Modifications” means any of the following:
94 |
95 | any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or
96 |
97 | any new file in Source Code Form that contains any Covered Software.
98 |
99 | 1.11. “Patent Claims” of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version.
100 |
101 | 1.12. “Secondary License” means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses.
102 |
103 | 1.13. “Source Code Form” means the form of the work preferred for making modifications.
104 |
105 | 1.14. “You” (or “Your”) means an individual or a legal entity exercising rights under this License. For legal entities, “You” includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
106 |
107 | 2. License Grants and Conditions 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:
108 |
109 | under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and
110 |
111 | under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version.
112 |
113 | 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution.
114 |
115 | 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor:
116 |
117 | for any code that a Contributor has removed from Covered Software; or
118 |
119 | for infringements caused by: (i) Your and any other third party’s modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or
120 |
121 | under Patent Claims infringed by Covered Software in the absence of its Contributions.
122 |
123 | This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).
124 |
125 | 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3).
126 |
127 | 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License.
128 |
129 | 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents.
130 |
131 | 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.
132 |
133 | 3. Responsibilities 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients’ rights in the Source Code Form.
134 |
135 | 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then:
136 |
137 | such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and
138 |
139 | You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients’ rights in the Source Code Form under this License.
140 |
141 | 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s).
142 |
143 | 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.
144 |
145 | 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction.
146 |
147 | 4. Inability to Comply Due to Statute or Regulation If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.
148 |
149 | 5. Termination 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice.
150 |
151 | 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate.
152 |
153 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination.
154 |
155 | 6. Disclaimer of Warranty Covered Software is provided under this License on an “as is” basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Covered Software is with You. Should any Covered Software prove defective in any respect, You (not any Contributor) assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of any Covered Software is authorized under this License except under this disclaimer.
156 |
157 | 7. Limitation of Liability Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages. This limitation of liability shall not apply to liability for death or personal injury resulting from such party’s negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.
158 |
159 | 8. Litigation Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party’s ability to bring cross-claims or counter-claims.
160 |
161 | 9. Miscellaneous This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor.
162 |
163 | 10. Versions of the License 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.
164 |
165 | 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward.
166 |
167 | 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License).
168 |
169 | 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.
170 |
171 | Exhibit A - Source Code Form License Notice This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
172 |
173 | If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.
174 |
175 | You may add additional accurate notices of copyright ownership.
176 |
177 | Exhibit B - “Incompatible With Secondary Licenses” Notice This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.
178 |
179 | ## Special thanks
180 | * to [SVGO](https://jakearchibald.github.io/svgomg/) for their SVG minimisation tool
181 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Dark Mode Website Switcher
2 |
3 | [](https://addons.mozilla.org/firefox/addon/dark-mode-website-switcher/?utm_source=github.com&utm_medium=git&utm_content=badge-version&campaign=github)
4 | [](https://addons.mozilla.org/firefox/addon/dark-mode-website-switcher/?utm_source=github.com&utm_medium=git&utm_content=badge-downloads&campaign=github)
5 | [](https://addons.mozilla.org/firefox/addon/dark-mode-website-switcher/?utm_source=github.com&utm_medium=git&utm_content=badge-users&campaign=github)
6 | [](https://addons.mozilla.org/firefox/addon/dark-mode-website-switcher/reviews/?utm_source=github.com&utm_medium=git&utm_content=badge-stars&campaign=github)
7 |
8 | This is a (Firefox) add-on (WebExtension) that lets you invert the website's color scheme by inverting/changing the [`prefers-color-scheme`](https://developer.mozilla.org/docs/Web/CSS/@media/prefers-color-scheme) media feature of CSS without requiring you to change the whole system style setting.
9 |
10 | Test websites:
11 | * https://stuffandnonsense.co.uk/blog/redesigning-your-product-and-website-for-dark-mode
12 | * https://webkit.org/
13 | * https://pinafore.social/
14 | * https://s.codepen.io/aardrian/debug/NmoQdN
15 | * http://adrianroselli.com/
16 | * https://emojipedia.org/
17 | * https://bugzilla.mozilla.org/
18 |
19 | This extension only works with modern Firefox v95 or higher. Versions [before v1.0](../../releases) do support older browser versions, but use a more error-prone way of darkening websites.
20 |
21 | ## Download
22 |
23 | **[](https://addons.mozilla.org/firefox/addon/dark-mode-website-switcher/?utm_source=github.com&utm_medium=git&utm_content=download-button&campaign=github)**
24 |
25 | ## Contribute
26 |
27 | You can easily get involved in this FLOSS project and any help is certainly appreciated. Here are some ideas:
28 |
29 | * 📃 [Translate this add-on into multiple languages!](./CONTRIBUTING.md#translations)
30 | * 🐛 [Fix some easy issues and get started in add-on development](CONTRIBUTING.md#coding) (or just try out the development version)
31 | * 💡 [Or check out some other add-on issues](CONTRIBUTING.md#need-ideas) (or translate them).
32 |
33 | Or, in any case, [support us by spreading the word!](./CONTRIBUTING.md#support-us) ❤️
34 |
35 | If you want to find out how this add-on currently works on a technical level, [have a look at this Stackoverflow answer](https://stackoverflow.com/a/55910185/5008962). I've explained it there in detail.
36 |
--------------------------------------------------------------------------------
/assets/amotags.txt:
--------------------------------------------------------------------------------
1 | prefers-color-scheme, css, webdev, development, website, dark, light, mode, dark-theme, dark-style, dark-website, website-design
2 |
--------------------------------------------------------------------------------
/assets/icon-base.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
237 |
--------------------------------------------------------------------------------
/assets/icon-dark-org.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
49 |
--------------------------------------------------------------------------------
/assets/icon-final.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rugk/website-dark-mode-switcher/f07e3f233b23f72175d39f1a8c9feee625ca5f6f/assets/icon-final.png
--------------------------------------------------------------------------------
/assets/icon-final.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
238 |
--------------------------------------------------------------------------------
/assets/icon-light-org.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
49 |
--------------------------------------------------------------------------------
/assets/screencasts/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rugk/website-dark-mode-switcher/f07e3f233b23f72175d39f1a8c9feee625ca5f6f/assets/screencasts/.gitkeep
--------------------------------------------------------------------------------
/assets/screenshots/disabled-light-mode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rugk/website-dark-mode-switcher/f07e3f233b23f72175d39f1a8c9feee625ca5f6f/assets/screenshots/disabled-light-mode.png
--------------------------------------------------------------------------------
/assets/screenshots/enabled-dark-style.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rugk/website-dark-mode-switcher/f07e3f233b23f72175d39f1a8c9feee625ca5f6f/assets/screenshots/enabled-dark-style.png
--------------------------------------------------------------------------------
/assets/screenshots/enabled-light-style.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rugk/website-dark-mode-switcher/f07e3f233b23f72175d39f1a8c9feee625ca5f6f/assets/screenshots/enabled-light-style.png
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/1.0.html:
--------------------------------------------------------------------------------
1 |
2 |
Neu: Kann Webseiten das dunkle Design erzwingen.
3 |
Verbessert: Der dunkle Modus kann mit einem Klick auf den Toolbar-Button angepasst werden.
4 |
5 |
6 | Mehr Informationen auf GitHub.
7 |
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/1.0.md:
--------------------------------------------------------------------------------
1 | * **Neu:** Kann Webseiten das dunkle Design erzwingen.
2 | * **Verbessert:** Der dunkle Modus kann mit einem Klick auf den Toolbar-Button angepasst werden.
3 |
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/1.1.html:
--------------------------------------------------------------------------------
1 |
2 |
Verbessert: Lokale Dateien und weitere URLs werden nun unterstützt (#8)
3 |
Verbessert: Leerzeichen in Media-Queries werden nun ignoriert (#7)
4 |
5 |
6 | Mehr Informationen auf GitHub.
7 |
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/1.1.md:
--------------------------------------------------------------------------------
1 | * **Improved:** Local files and other URLs are now also supported ([#8](https://github.com/rugk/website-dark-mode-switcher/issues/8))
2 | * **Improved:** Whitespace characters in media queries are ignored ([#7](https://github.com/rugk/website-dark-mode-switcher/issues/7))
3 |
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/1.2.html:
--------------------------------------------------------------------------------
1 |
2 |
Neu: Du kannst den dunklen Modus nun (standardmäßig) mit der Tastenkombination Ctrl+Shift+B wechseln (#10)
3 |
Verbessert: Verringere Anzahl der Log-Messages, die in die Konsole geschrieben werden. (#11)
4 |
Behoben: Das gefälschte Media-Query-JavaScript-Resultat ist nun realistischer. (#13)
5 |
Behoben:@import wird nun bei CSS Stylesheets unterstützt. (#28)
6 |
Behoben: Eine „race condition“ verhinderte das Aktivieren des dunklen Modus auf einigen Seite und wurde nun behoben. (#9)
7 |
Intern: Die Abhängigkeiten wurden aktualisiert, um die Sicherheit und die Verlässlichkeit des Add-on's zu gewährleisten.
8 |
9 |
10 | Mehr Informationen auf GitHub.
11 |
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/1.2.md:
--------------------------------------------------------------------------------
1 | * **Neu:** Du kannst den dunklen Modus nun (standardmäßig) mit der Tastenkombination Ctrl+Shift+B wechseln ([#10](https://github.com/rugk/website-dark-mode-switcher/issues/10))
2 | * **Verbessert:** Verringere Anzahl der Log-Messages, die in die Konsole geschrieben werden. ([#11](https://github.com/rugk/website-dark-mode-switcher/issues/11))
3 | * **Behoben:** Das gefälschte Media-Query-JavaScript-Resultat ist nun realistischer. ([#13](https://github.com/rugk/website-dark-mode-switcher/issues/13))
4 | * **Behoben:** `@import` wird nun bei CSS Stylesheets unterstützt. ([#28](https://github.com/rugk/website-dark-mode-switcher/issues/28))
5 | * **Behoben:** Eine „race condition“ verhinderte das Aktivieren des dunklen Modus auf einigen Seite und wurde nun behoben. ([#9](https://github.com/rugk/website-dark-mode-switcher/issues/9))
6 | * **Intern:** Die Abhängigkeiten wurden aktualisiert, um die Sicherheit und die Verlässlichkeit des Add-on's zu gewährleisten.
7 |
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/1.3.html:
--------------------------------------------------------------------------------
1 |
2 |
Verbessert: Verbesserte Kompatibilität mit GitHub, Twitter und weiteren Seiten durch ein Umschreiben der Funktion der JavaScript-Fälschung. (#30, #35, danke an @tartpvule)
3 |
Verbessert: Verbesserter Initialisierungsprozess der Inhaltsskripte. (#36, danke an @tartpvule)
4 |
5 |
6 | Mehr Informationen auf GitHub.
7 |
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/1.3.md:
--------------------------------------------------------------------------------
1 | * **Verbessert:** Verbesserte Kompatibilität mit GitHub, Twitter und weiteren Seiten durch ein Umschreiben der Funktion der JavaScript-Fälschung. ([#30](https://github.com/rugk/website-dark-mode-switcher/issues/30), [#35](https://github.com/rugk/website-dark-mode-switcher/pull/35), danke an [@tartpvule](https://github.com/tartpvule))
2 | * **Verbessert:** Verbesserter Initialisierungsprozess der Inhaltsskripte. ([#36](https://github.com/rugk/website-dark-mode-switcher/pull/36), danke an [@tartpvule](https://github.com/tartpvule))
3 |
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/2.0.html:
--------------------------------------------------------------------------------
1 |
2 |
Verbessert: Durch den Wechsel auf eine komplett neue API von Firefox verbessert sich die Webseiten-Kompatibilität drastisch und es wurden dadurch viele Probleme behoben. (#5)
3 |
Neu: Du kannst nun in den Einstellungen auswählen, zwischen welchen Stilen der Toolbar-Knopf wechseln soll.
4 |
5 |
6 | Mehr Informationen auf GitHub.
7 |
--------------------------------------------------------------------------------
/assets/texts/de/Changelog/2.0.md:
--------------------------------------------------------------------------------
1 | * **Verbessert:** Durch den Wechsel auf eine komplett neue API von Firefox verbessert sich die Webseiten-Kompatibilität drastisch und es wurden dadurch viele Probleme behoben. ([#5](https://github.com/rugk/website-dark-mode-switcher/issues/5))
2 | * **Neu:** Du kannst nun in den Einstellungen auswählen, zwischen welchen Stilen der Toolbar-Knopf wechseln soll.
3 |
--------------------------------------------------------------------------------
/assets/texts/de/amoDescription.html:
--------------------------------------------------------------------------------
1 | Dieses Add-on ändert das Webseiten-Farbschema in dem es das prefers-color-scheme Media-Query-Feature von CSS invertiert, sodass du nicht die ganze Systemeinstellung anpassen musst.
2 |
3 | Du kannst den dunklen Modus auch mit der Tastenkombination Ctrl+Shift+B umschalten (dies ist in den Firefox-Add-on-Einstellungen anpassbar).
4 |
5 | Diese Erweiterung funktioniert nur mit Firefox v95 oder höher.
6 |
7 |
8 | ✍️ Benutzung ✍️
9 |
10 | Du kannst einen Toolbar-Button nutzen, um das Erzwingen eines dunklen Modus aktivieren oder zu deaktivieren. Es zeigt ein gelbes Mondsymbol, wenn es aktiviert ist und Webseiten auf ein dunkles Design erzwingt.
11 |
12 |
13 | ⛱️ Test-Webseiten ⛱️
14 | Hier einige bekannte Webseiten, die den dunklen System-Stil benutzen, sodass du diese mit diesem Add-on testen kannst:
15 |
22 |
23 |
24 | 📝 Entwicklung 📝
25 | Dieses Add-on ist freie Open-Source-Software und wird auf GitHub entwickelt. Fork' es auf GitHub and trage zu dem Projekt bei.
26 | Es gibt einige leichte Issues zum Starten.
27 |
28 |
29 | 💬 Berechtigungen 💬
30 | Dieses Add-on verlangt so wenig Berechtigungen, wie möglich.
31 | Eine Erklärung aller Berechtigungen, die dieses Add-on erfragt, kann auf dieser Seite gefunden werden.
32 |
--------------------------------------------------------------------------------
/assets/texts/de/amoScreenshots.csv:
--------------------------------------------------------------------------------
1 | disabled-light-mode.png; "So sieht deine Webseite aus, wenn das Add-on deaktiviert ist.";
2 | enabled-dark-style.png; "Ist das Add-on aktiviert, so erzwingt es einen dunklen Webseiten-Stil.";
3 | enabled-light-style.png; "Ist das Add-on aktiviert, so erzwingt es einen dunklen Webseiten-Stil, unabhängig von der System-Einstellung.";
4 |
--------------------------------------------------------------------------------
/assets/texts/de/amoSummary.txt:
--------------------------------------------------------------------------------
1 | Passt das Farbdesign aller Webseiten an, sodass diese standardmäßig alle dunkel sind, wenn es die Seite ein spezielles Design dafür hat. Es lässt Webseiten dunkel erscheinen, auch wenn ein helles Systemdesign genutzt wird.
2 |
--------------------------------------------------------------------------------
/assets/texts/de/permissions.md:
--------------------------------------------------------------------------------
1 | # Erfragte Berechtigungen
2 |
3 | Für eine allgemeine Erklärung von Add-on-Berechtigungen siehe [diesen Support-Artikel]https://support.mozilla.org/de/kb/berechtigungsdialoge-der-firefox-erweiterungen).
4 |
5 | ## Berechtigungen bei Installation
6 |
7 | | Internal Id | Permission | Explanation |
8 | |:------------|:-------------------------------------------|:----------------------------------------------------------------------------|
9 | | `tabs` | Auf Browsertabs zugreifen | Benötigt, um das (dunkle) Design in die existierenden Webseiten einzufügen. |
10 | | `` | Auf Ihre Daten für alle Websites zugreifen | Benötigt, um das (dunkle) Design in die Webseiten einzufügen. |
11 |
12 | ## Versteckte Berechtigungen
13 |
14 | Zusätzlich verlangt dieses Add-on folgende Berechtigungen, welche in Firefox aber nicht abgefragt werden, da sie keine tiefgreifenden Berechtigungen sind.
15 |
16 | | Interne ID | Berechtigung | Erklärung |
17 | |:-------------|:---------------------------------------|:--------------------------------------------------------------|
18 | | `storage` | Zugriff auf lokalen Speicher | Benötigt um Einstellungen abzuspeichern |
19 |
--------------------------------------------------------------------------------
/assets/texts/de/privacy.txt:
--------------------------------------------------------------------------------
1 | Dieses Add-on sendet keine Informationen zum Add-on-Autor oder einer Drittpartei.
2 |
3 | Eine Erklärung aller Berechtigungen, die dieses Add-on erfragt, kann auf https://github.com/rugk/website-dark-mode-switcher/blob/master/assets/texts/de/permissions.md gefunden werden.
4 |
5 | == DIENSTE VON DRITTEN ==
6 |
7 | Dieses ADD-ON nutzt den „Sync storage” des Browsers, um die Einstellungen zu speichern. Wenn der NUTZER „Sync” im Browser aktiviert, werden die Einstellungen des Add-ons hochgeladen und zwischen den Geräten, die mit dem (Mozilla) Account des Browsers verbunden sind, synchronisiert. Wenn dies nicht gemacht wird, werden die Daten lokal auf dem Gerät gespeichert.
8 | In Mozilla Firefox werden die Daten Ende-zu-Ende-verschlüsselt, bevor sie hochgeladen und auf den Servern von Mozilla gespeichert werden.
9 | Siehe https://accounts.firefox.com/legal/privacy und https://www.mozilla.org/privacy/firefox/#c-privacy-topic-8 für Mozilla's Datenschutzerklärung über dieses Thema.
10 |
11 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/1.0.html:
--------------------------------------------------------------------------------
1 |
2 |
New: Can force a website to be dark.
3 |
Improved: You can trigger the dark mode with a click on the toolbar button.
4 |
5 |
6 | More information on GitHub.
7 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/1.0.md:
--------------------------------------------------------------------------------
1 | * **New:** Can force a website to be dark.
2 | * **Improved:** You can trigger the dark mode with a click on the toolbar button.
3 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/1.1.html:
--------------------------------------------------------------------------------
1 |
2 |
Improved: Local files and other URLs are now also supported (#8)
3 |
Improved: Whitespace characters in media queries are ignored (#7)
4 |
5 |
6 | More information on GitHub.
7 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/1.1.md:
--------------------------------------------------------------------------------
1 | * **Improved:** Local files and other URLs are now also supported ([#8](https://github.com/rugk/website-dark-mode-switcher/issues/8))
2 | * **Improved:** Whitespace characters in media queries are ignored ([#7](https://github.com/rugk/website-dark-mode-switcher/issues/7))
3 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/1.2.html:
--------------------------------------------------------------------------------
1 |
2 |
New: You can now toggle the dark mode with the hot key Ctrl+Shift+B by default (#10)
3 |
Improved: Reduced amount of log messages written to console (#11)
4 |
Improved: The settings page was expanded and is now much more useful than just being
5 |
Fixed: The JavaScript faking of the media query result is more realistic now. (#13)
6 |
Fixed:@import is now supported for CSS stylesheets. (#28)
7 |
Fixed: Fixed a race condition leading some sites to not enable the dark mode. (#9)
8 |
Internal: Dependencies were updated to ensure the security and reliability of this add-on.
9 |
10 |
11 | More information on GitHub.
12 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/1.2.md:
--------------------------------------------------------------------------------
1 | * **New:** You can now toggle the dark mode with the hot key Ctrl+Shift+B by default ([#10](https://github.com/rugk/website-dark-mode-switcher/issues/10))
2 | * **Improved:** Reduced amount of log messages written to console ([#11](https://github.com/rugk/website-dark-mode-switcher/issues/11))
3 | * **Improved:** The settings page was expanded and is now much more useful than just being
4 | * **Fixed:** The JavaScript faking of the media query result is more realistic now. ([#13](https://github.com/rugk/website-dark-mode-switcher/issues/13))
5 | * **Fixed:** `@import` is now supported for CSS stylesheets. ([#28](https://github.com/rugk/website-dark-mode-switcher/issues/28))
6 | * **Fixed:** Fixed a race condition leading some sites to not enable the dark mode. ([#9](https://github.com/rugk/website-dark-mode-switcher/issues/9))
7 | * **Internal:** Dependencies were updated to ensure the security and reliability of this add-on.
8 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/1.3.html:
--------------------------------------------------------------------------------
1 |
2 |
Improved: Improved compatibility with GitHub, Twitter and more sites due to rewrite of JavaScript faking (#30, #35, thanks @tartpvule)
3 |
Improved: Improve initialization process of content scripts. (#36, thanks @tartpvule)
4 |
5 |
6 | More information on GitHub.
7 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/1.3.md:
--------------------------------------------------------------------------------
1 | * **Improved:** Improved compatibility with GitHub, Twitter and more sites due to rewrite of JavaScript faking ([#30](https://github.com/rugk/website-dark-mode-switcher/issues/30), [#35](https://github.com/rugk/website-dark-mode-switcher/pull/35), thanks [@tartpvule](https://github.com/tartpvule))
2 | * **Improved:** Improve initialization process of content scripts. ([#36](https://github.com/rugk/website-dark-mode-switcher/pull/36), thanks [@tartpvule](https://github.com/tartpvule))
3 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/2.0.html:
--------------------------------------------------------------------------------
1 |
2 |
Improved: Switched to a completely new API of Firefox, drastically improving the compatibility and fixing many issues. (#5)
3 |
New: You can now adjust between which styles the toolbar button should toggle in the settings.
4 |
5 |
6 | More information on GitHub.
7 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/2.0.md:
--------------------------------------------------------------------------------
1 | * **Improved:** Switched to a completely new API of Firefox, drastically improving the compatibility and fixing many issues. ([#5](https://github.com/rugk/website-dark-mode-switcher/issues/5))
2 | * **New:** You can now adjust between which styles the toolbar button should toggle in the settings.
3 |
--------------------------------------------------------------------------------
/assets/texts/en/Changelog/next.md:
--------------------------------------------------------------------------------
1 | * **New:** The translation for Danish has been added. (, thanks to [@Grooty12](https://github.com/Grooty12).
2 |
--------------------------------------------------------------------------------
/assets/texts/en/amoDescription.html:
--------------------------------------------------------------------------------
1 | This is an add-on that lets you invert the website's color scheme by inverting/changing the prefers-color-scheme media feature of CSS without requiring you to change the whole system style setting.
2 |
3 | You can also trigger toggling the dark mode with the hot key Ctrl+Shift+B (customizable in the Firefox add-on settings).
4 |
5 | This extension only works with Firefox v95 or higher.
6 |
7 |
8 | ✍️ Usage ✍️
9 |
10 | You can use a toolbar button to toggle whether it should force a dark mode or not. It displays a yellow moon icon, if it is enabled and forces the website to be dark.
11 |
12 |
13 | ⛱️ Test websites ⛱️
14 | Here are some well-known websites that support the dark system style, so you can test them with this add-on:
15 |