import
11
_locales/am/messages.json
Normal file
11
_locales/ar/messages.json
Normal file
11
_locales/bg/messages.json
Normal file
11
_locales/bn/messages.json
Normal file
11
_locales/ca/messages.json
Normal file
11
_locales/cs/messages.json
Normal file
11
_locales/da/messages.json
Normal file
11
_locales/de/messages.json
Normal file
11
_locales/el/messages.json
Normal file
158
_locales/en/messages.json
Normal file
11
_locales/es/messages.json
Normal file
11
_locales/es_419/messages.json
Normal file
11
_locales/et/messages.json
Normal file
11
_locales/fa/messages.json
Normal file
11
_locales/fi/messages.json
Normal file
11
_locales/fil/messages.json
Normal file
11
_locales/fr/messages.json
Normal file
11
_locales/gu/messages.json
Normal file
11
_locales/he/messages.json
Normal file
11
_locales/hi/messages.json
Normal file
11
_locales/hr/messages.json
Normal file
11
_locales/hu/messages.json
Normal file
11
_locales/id/messages.json
Normal file
11
_locales/it/messages.json
Normal file
11
_locales/ja/messages.json
Normal file
11
_locales/kn/messages.json
Normal file
11
_locales/ko/messages.json
Normal file
11
_locales/lt/messages.json
Normal file
11
_locales/lv/messages.json
Normal file
11
_locales/ml/messages.json
Normal file
11
_locales/mr/messages.json
Normal file
11
_locales/ms/messages.json
Normal file
11
_locales/nl/messages.json
Normal file
11
_locales/no/messages.json
Normal file
11
_locales/pl/messages.json
Normal file
11
_locales/pt_BR/messages.json
Normal file
11
_locales/pt_PT/messages.json
Normal file
11
_locales/ro/messages.json
Normal file
11
_locales/ru/messages.json
Normal file
11
_locales/sk/messages.json
Normal file
11
_locales/sl/messages.json
Normal file
11
_locales/sr/messages.json
Normal file
11
_locales/sv/messages.json
Normal file
11
_locales/sw/messages.json
Normal file
11
_locales/ta/messages.json
Normal file
11
_locales/te/messages.json
Normal file
11
_locales/th/messages.json
Normal file
11
_locales/tr/messages.json
Normal file
11
_locales/uk/messages.json
Normal file
11
_locales/vi/messages.json
Normal file
11
_locales/zh_CN/messages.json
Normal file
11
_locales/zh_TW/messages.json
Normal file
5331
background.js
Normal file
74
config/color-schemes.drconf
Normal file
@@ -0,0 +1,74 @@
|
||||
Default
|
||||
|
||||
DARK
|
||||
background: #181a1b
|
||||
text: #e8e6e3
|
||||
|
||||
LIGHT
|
||||
background: #181a1b
|
||||
text: #e8e6e3
|
||||
|
||||
================================
|
||||
|
||||
Catppuccin
|
||||
|
||||
DARK
|
||||
background: #161320
|
||||
text: #d9e0ee
|
||||
|
||||
================================
|
||||
|
||||
Dracula
|
||||
|
||||
DARK
|
||||
background: #282b36
|
||||
text: #e8e6e3
|
||||
|
||||
================================
|
||||
|
||||
Gruvbox
|
||||
|
||||
DARK
|
||||
background: #282828
|
||||
text: #ebdbb2
|
||||
|
||||
LIGHT
|
||||
background: #fbf1c7
|
||||
text: #3c3836
|
||||
|
||||
================================
|
||||
|
||||
Nord
|
||||
|
||||
DARK
|
||||
background: #2e3440
|
||||
text: #eceff4
|
||||
|
||||
LIGHT
|
||||
background: #eceff4
|
||||
text: #3b4252
|
||||
|
||||
================================
|
||||
|
||||
Solarized
|
||||
|
||||
DARK
|
||||
background: #002b36
|
||||
text: #93a1a1
|
||||
|
||||
LIGHT
|
||||
background: #fdf6e3
|
||||
text: #586e75
|
||||
|
||||
================================
|
||||
|
||||
Tokyo Night
|
||||
|
||||
DARK
|
||||
background: #1a1b26
|
||||
text: #a9b1d6
|
||||
|
||||
LIGHT
|
||||
background: #d5d6db
|
||||
text: #343b58
|
||||
|
||||
1121
config/dark-sites.config
Normal file
21004
config/dynamic-theme-fixes.config
Normal file
2745
config/inversion-fixes.config
Normal file
174
config/static-themes.config
Normal file
@@ -0,0 +1,174 @@
|
||||
*
|
||||
|
||||
NEUTRAL BG
|
||||
html
|
||||
body
|
||||
:not([style*="background-color:"]):not(iframe)
|
||||
|
||||
NEUTRAL TEXT
|
||||
html
|
||||
body
|
||||
:not([style*="color:"])
|
||||
.sr-reader *:not([class*='sr-pivot'])
|
||||
|
||||
RED TEXT
|
||||
h1:not([style*="color:"])
|
||||
h2:not([style*="color:"])
|
||||
h3:not([style*="color:"])
|
||||
h4:not([style*="color:"])
|
||||
h5:not([style*="color:"])
|
||||
h6:not([style*="color:"])
|
||||
|
||||
GREEN TEXT
|
||||
cite:not([style*="color:"])
|
||||
|
||||
BLUE BG ACTIVE
|
||||
input:not([style*="background-color:"])
|
||||
textarea:not([style*="background-color:"])
|
||||
button:not([style*="background-color:"])
|
||||
[role="button"]
|
||||
|
||||
BLUE TEXT ACTIVE
|
||||
a:not([style*="color:"])
|
||||
|
||||
BLUE BORDER
|
||||
:not([style*="border-color:"])
|
||||
::before
|
||||
::after
|
||||
|
||||
FADE BG
|
||||
div:empty
|
||||
.sr-reader *
|
||||
.sr-backdrop
|
||||
|
||||
FADE TEXT
|
||||
input::placeholder
|
||||
textarea::placeholder
|
||||
|
||||
NO IMAGE
|
||||
input:not([style*="background-image:"])
|
||||
textarea:not([style*="background-image:"])
|
||||
|
||||
================================
|
||||
|
||||
github.com
|
||||
|
||||
RED TEXT
|
||||
.pl-k
|
||||
|
||||
GREEN BG ACTIVE
|
||||
.btn-primary
|
||||
|
||||
GREEN TEXT
|
||||
.pl-c
|
||||
|
||||
BLUE TEXT
|
||||
.pl-s
|
||||
.pl-pds
|
||||
.pl-c1
|
||||
|
||||
NO IMAGE
|
||||
.btn
|
||||
.btn-primary
|
||||
|
||||
================================
|
||||
|
||||
imdb.com
|
||||
|
||||
RED BG
|
||||
.jw-progress:empty
|
||||
.jw-knob:empty
|
||||
|
||||
FADE BG
|
||||
.MediaSheetstyles__MediaContainer-sc-1warcg6-0
|
||||
.MediaSheetstyles__MediaContentContainer-sc-1warcg6-1
|
||||
|
||||
TRANSPARENT BG
|
||||
.ipc-lockup-overlay
|
||||
.ipc-lockup-overlay__content *
|
||||
.jw-captions
|
||||
.jw-controls
|
||||
.jw-controls *
|
||||
.jw-controls-backdrop:empty
|
||||
.jw-overlays
|
||||
.MediaSheetstyles__MediaContentContainer-sc-1warcg6-1 div
|
||||
.Slate__VideoPreviewContainer-ss6ccs-3
|
||||
.styles__MediaViewerTouchHandler-sc-6t1jw8-5
|
||||
|
||||
================================
|
||||
|
||||
mail.google.com
|
||||
|
||||
RED BG ACTIVE
|
||||
.T-I-KE
|
||||
|
||||
NO IMAGE
|
||||
.T-I-KE
|
||||
|
||||
================================
|
||||
|
||||
nationstates.net
|
||||
|
||||
TRANSPARENT BG
|
||||
.paperclip
|
||||
|
||||
================================
|
||||
|
||||
opencollective.com
|
||||
|
||||
BLUE BG ACTIVE
|
||||
.TierCard .action
|
||||
|
||||
TRANSPARENT BG
|
||||
.CollectiveCover .content
|
||||
|
||||
================================
|
||||
|
||||
reddit.com
|
||||
|
||||
RED BG
|
||||
.reddit-video-player-root .seek-bar-progress
|
||||
.reddit-video-player-root .volume-slider-progress
|
||||
.reddit-video-player-root .volume-slider-thumb
|
||||
|
||||
BLUE BG
|
||||
.reddit-video-player-root .seek-bar-buffered
|
||||
.reddit-video-player-root .volume-slider-track
|
||||
|
||||
FADE BG
|
||||
.reddit-video-player-root .ended-controls
|
||||
.reddit-video-player-root .playback-controls
|
||||
|
||||
TRANSPARENT BG
|
||||
.reddit-video-player-root video + div
|
||||
.reddit-video-player-root .ended-controls :not(button)
|
||||
.reddit-video-seek-bar-root
|
||||
.reddit-video-player-root .playback-controls .control-button
|
||||
|
||||
================================
|
||||
|
||||
youtube.com
|
||||
|
||||
RED BG
|
||||
.ytp-swatch-background-color.ytp-swatch-background-color
|
||||
|
||||
BLUE BG
|
||||
.ytp-load-progress:empty
|
||||
|
||||
FADE BG
|
||||
.ytp-chrome-top
|
||||
.ytp-chrome-bottom
|
||||
.ytp-pause-overlay
|
||||
|
||||
TRANSPARENT BG
|
||||
#previewbar
|
||||
.ytp-button.ytp-button
|
||||
.ytp-chrome-bottom *
|
||||
.ytp-chrome-top *
|
||||
.ytp-gradient-bottom:empty
|
||||
.ytp-gradient-top:empty
|
||||
.ytp-pause-overlay *
|
||||
.ytp-progress-bar-padding:empty
|
||||
.ytp-scrubber-container
|
||||
.ytp-timed-markers-container:empty
|
||||
.ytp-tooltip-text-wrapper
|
||||
BIN
icons/dm_128.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
icons/dm_16.png
Normal file
|
After Width: | Height: | Size: 373 B |
BIN
icons/dm_42.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
31
inject/fallback.js
Normal file
@@ -0,0 +1,31 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
if (document.documentElement instanceof HTMLHtmlElement &&
|
||||
matchMedia('(prefers-color-scheme: dark)').matches &&
|
||||
!document.querySelector('.darkreader--fallback')) {
|
||||
const css = 'html, body, body :not(iframe):not(div[style^="position:absolute;top:0;left:-"]) { background-color: #181a1b !important; border-color: #776e62 !important; color: #e8e6e3 !important; } html, body { opacity: 1 !important; transition: none !important; }';
|
||||
const fallback = document.createElement('style');
|
||||
fallback.classList.add('darkreader');
|
||||
fallback.classList.add('darkreader--fallback');
|
||||
fallback.media = 'screen';
|
||||
fallback.textContent = css;
|
||||
if (document.head) {
|
||||
document.head.append(fallback);
|
||||
}
|
||||
else {
|
||||
const root = document.documentElement;
|
||||
root.append(fallback);
|
||||
const observer = new MutationObserver(() => {
|
||||
if (document.head) {
|
||||
observer.disconnect();
|
||||
if (fallback.isConnected) {
|
||||
document.head.append(fallback);
|
||||
}
|
||||
}
|
||||
});
|
||||
observer.observe(root, { childList: true });
|
||||
}
|
||||
}
|
||||
|
||||
})();
|
||||
5124
inject/index.js
Normal file
33
inject/sub-success-handler.js
Normal file
@@ -0,0 +1,33 @@
|
||||
// Listen for subscription status updates from the webpage
|
||||
window.addEventListener(
|
||||
'message',
|
||||
function (event) {
|
||||
// Validate message structure and origin
|
||||
if (!event.data || typeof event.data !== 'object') return
|
||||
|
||||
const { type, text } = event.data
|
||||
|
||||
// Verify all required fields are present and valid
|
||||
if (
|
||||
type === 'FROM_PAGE' &&
|
||||
text?.type === 'subscription_status' &&
|
||||
text?.extensionId === chrome.runtime.id &&
|
||||
typeof text?.status === 'string'
|
||||
) {
|
||||
// Log the validated message
|
||||
console.log('Subscription status update received:', text.status)
|
||||
|
||||
chrome.storage.sync.set(
|
||||
{ dm_subscription_status: text.status.toLowerCase() },
|
||||
() => {
|
||||
console.log('Subscription status updated:', text.status)
|
||||
}
|
||||
)
|
||||
|
||||
if (text.status.toLowerCase() === 'active') {
|
||||
chrome.storage.sync.remove('dm_clicks_count', () => {})
|
||||
}
|
||||
}
|
||||
},
|
||||
false
|
||||
)
|
||||
63
manifest.json
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"update_url": "https://clients2.google.com/service/update2/crx",
|
||||
"manifest_version": 3,
|
||||
"name": "__MSG_appName__",
|
||||
"version": "4.9.61",
|
||||
"description": "__MSG_appDesc__",
|
||||
"default_locale": "en",
|
||||
"icons": {
|
||||
"16": "icons/dm_16.png",
|
||||
"42": "icons/dm_42.png",
|
||||
"128": "icons/dm_128.png"
|
||||
},
|
||||
"background": {
|
||||
"service_worker": "background.js"
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": ["<all_urls>"],
|
||||
"js": ["inject/fallback.js", "inject/index.js"],
|
||||
"run_at": "document_start",
|
||||
"all_frames": true,
|
||||
"match_about_blank": true
|
||||
},
|
||||
{
|
||||
"matches": ["https://get-premium.online/*", "http://localhost:8000/*"],
|
||||
"js": ["inject/sub-success-handler.js"],
|
||||
"run_at": "document_start",
|
||||
"all_frames": true,
|
||||
"match_about_blank": true
|
||||
}
|
||||
],
|
||||
"permissions": [
|
||||
"alarms",
|
||||
"fontSettings",
|
||||
"scripting",
|
||||
"tabs",
|
||||
"storage",
|
||||
"unlimitedStorage"
|
||||
],
|
||||
"commands": {
|
||||
"toggle": {
|
||||
"suggested_key": {
|
||||
"default": "Alt+Shift+D"
|
||||
},
|
||||
"description": "__MSG_toggle_extension__"
|
||||
},
|
||||
"addSite": {
|
||||
"suggested_key": {
|
||||
"default": "Alt+Shift+A"
|
||||
},
|
||||
"description": "__MSG_toggle_current_site__"
|
||||
}
|
||||
},
|
||||
"action": {
|
||||
"default_title": "Dark Mode Google Docs",
|
||||
"default_icon": {
|
||||
"16": "icons/dm_16.png",
|
||||
"42": "icons/dm_42.png"
|
||||
},
|
||||
"default_popup": "ui/popup/index.html"
|
||||
},
|
||||
"host_permissions": ["*://*/*"]
|
||||
}
|
||||
202
ui/assets/fonts/LICENSE.txt
Normal file
@@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
BIN
ui/assets/fonts/OpenSans-Light.ttf
Normal file
BIN
ui/assets/fonts/OpenSans-Regular.ttf
Normal file
BIN
ui/assets/fonts/OpenSans-SemiBold.ttf
Normal file
BIN
ui/assets/images/darkreader-icon-256x256.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
60
ui/assets/images/darkreader-type.svg
Normal file
@@ -0,0 +1,60 @@
|
||||
<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_17_2)">
|
||||
<mask id="mask0_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_17_2)">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L29.4375 6.68182L24.75 0Z" fill="#2B2B2B"/>
|
||||
</g>
|
||||
<mask id="mask1_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask1_17_2)">
|
||||
<path d="M25.5727 10.6169L36 21.2315V11.4546L25.5727 10.6169Z" fill="url(#paint0_linear_17_2)"/>
|
||||
</g>
|
||||
<mask id="mask2_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask2_17_2)">
|
||||
<path d="M13.5 30.5455H28.5V28.6364H13.5V30.5455ZM13.5 34.3636H24.75V32.4545H13.5V34.3636ZM13.5 21V22.9091H28.5V21H13.5ZM13.5 26.7273H28.5V24.8182H13.5V26.7273Z" fill="#F1F1F1"/>
|
||||
</g>
|
||||
<mask id="mask3_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask3_17_2)">
|
||||
<path d="M24.75 0V8.59091C24.75 10.1731 26.0086 11.4545 27.5625 11.4545H36L24.75 0Z" fill="#464646"/>
|
||||
</g>
|
||||
<mask id="mask4_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask4_17_2)">
|
||||
<path d="M8.8125 0C7.26562 0 6 1.28864 6 2.86364V3.10227C6 1.52727 7.26562 0.238636 8.8125 0.238636H24.75V0H8.8125Z" fill="white" fill-opacity="0.2"/>
|
||||
</g>
|
||||
<mask id="mask5_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask5_17_2)">
|
||||
<path d="M33.1875 41.7614H8.8125C7.26562 41.7614 6 40.4727 6 38.8977V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V38.8977C36 40.4727 34.7344 41.7614 33.1875 41.7614Z" fill="#1A237E" fill-opacity="0.2"/>
|
||||
</g>
|
||||
<mask id="mask6_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask6_17_2)">
|
||||
<path d="M27.5625 11.4545C26.0086 11.4545 24.75 10.1731 24.75 8.59091V8.82955C24.75 10.4117 26.0086 11.6932 27.5625 11.6932H36V11.4545H27.5625Z" fill="#1A237E" fill-opacity="0.1"/>
|
||||
</g>
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="url(#paint1_radial_17_2)"/>
|
||||
</g>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_17_2" x1="546.996" y1="101.755" x2="546.996" y2="1072.22" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#0B0B0B" stop-opacity="0.2"/>
|
||||
<stop offset="1" stop-color="#1A237E" stop-opacity="0.02"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="paint1_radial_17_2" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(101.041 82.5315) scale(4837.46 4896.99)">
|
||||
<stop stop-color="white" stop-opacity="0.1"/>
|
||||
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<clipPath id="clip0_17_2">
|
||||
<rect width="30" height="42" fill="white" transform="translate(6)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.3 KiB |
60
ui/assets/images/mode-dark-32.svg
Normal file
@@ -0,0 +1,60 @@
|
||||
<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_17_2)">
|
||||
<mask id="mask0_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_17_2)">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L29.4375 6.68182L24.75 0Z" fill="#2B2B2B"/>
|
||||
</g>
|
||||
<mask id="mask1_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask1_17_2)">
|
||||
<path d="M25.5727 10.6169L36 21.2315V11.4546L25.5727 10.6169Z" fill="url(#paint0_linear_17_2)"/>
|
||||
</g>
|
||||
<mask id="mask2_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask2_17_2)">
|
||||
<path d="M13.5 30.5455H28.5V28.6364H13.5V30.5455ZM13.5 34.3636H24.75V32.4545H13.5V34.3636ZM13.5 21V22.9091H28.5V21H13.5ZM13.5 26.7273H28.5V24.8182H13.5V26.7273Z" fill="#F1F1F1"/>
|
||||
</g>
|
||||
<mask id="mask3_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask3_17_2)">
|
||||
<path d="M24.75 0V8.59091C24.75 10.1731 26.0086 11.4545 27.5625 11.4545H36L24.75 0Z" fill="#464646"/>
|
||||
</g>
|
||||
<mask id="mask4_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask4_17_2)">
|
||||
<path d="M8.8125 0C7.26562 0 6 1.28864 6 2.86364V3.10227C6 1.52727 7.26562 0.238636 8.8125 0.238636H24.75V0H8.8125Z" fill="white" fill-opacity="0.2"/>
|
||||
</g>
|
||||
<mask id="mask5_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask5_17_2)">
|
||||
<path d="M33.1875 41.7614H8.8125C7.26562 41.7614 6 40.4727 6 38.8977V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V38.8977C36 40.4727 34.7344 41.7614 33.1875 41.7614Z" fill="#1A237E" fill-opacity="0.2"/>
|
||||
</g>
|
||||
<mask id="mask6_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask6_17_2)">
|
||||
<path d="M27.5625 11.4545C26.0086 11.4545 24.75 10.1731 24.75 8.59091V8.82955C24.75 10.4117 26.0086 11.6932 27.5625 11.6932H36V11.4545H27.5625Z" fill="#1A237E" fill-opacity="0.1"/>
|
||||
</g>
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="url(#paint1_radial_17_2)"/>
|
||||
</g>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_17_2" x1="546.996" y1="101.755" x2="546.996" y2="1072.22" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#0B0B0B" stop-opacity="0.2"/>
|
||||
<stop offset="1" stop-color="#1A237E" stop-opacity="0.02"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="paint1_radial_17_2" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(101.041 82.5315) scale(4837.46 4896.99)">
|
||||
<stop stop-color="white" stop-opacity="0.1"/>
|
||||
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<clipPath id="clip0_17_2">
|
||||
<rect width="30" height="42" fill="white" transform="translate(6)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.3 KiB |
60
ui/assets/images/mode-light-32.svg
Normal file
@@ -0,0 +1,60 @@
|
||||
<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_17_2)">
|
||||
<mask id="mask0_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_17_2)">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L29.4375 6.68182L24.75 0Z" fill="#2B2B2B"/>
|
||||
</g>
|
||||
<mask id="mask1_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask1_17_2)">
|
||||
<path d="M25.5727 10.6169L36 21.2315V11.4546L25.5727 10.6169Z" fill="url(#paint0_linear_17_2)"/>
|
||||
</g>
|
||||
<mask id="mask2_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask2_17_2)">
|
||||
<path d="M13.5 30.5455H28.5V28.6364H13.5V30.5455ZM13.5 34.3636H24.75V32.4545H13.5V34.3636ZM13.5 21V22.9091H28.5V21H13.5ZM13.5 26.7273H28.5V24.8182H13.5V26.7273Z" fill="#F1F1F1"/>
|
||||
</g>
|
||||
<mask id="mask3_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask3_17_2)">
|
||||
<path d="M24.75 0V8.59091C24.75 10.1731 26.0086 11.4545 27.5625 11.4545H36L24.75 0Z" fill="#464646"/>
|
||||
</g>
|
||||
<mask id="mask4_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask4_17_2)">
|
||||
<path d="M8.8125 0C7.26562 0 6 1.28864 6 2.86364V3.10227C6 1.52727 7.26562 0.238636 8.8125 0.238636H24.75V0H8.8125Z" fill="white" fill-opacity="0.2"/>
|
||||
</g>
|
||||
<mask id="mask5_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask5_17_2)">
|
||||
<path d="M33.1875 41.7614H8.8125C7.26562 41.7614 6 40.4727 6 38.8977V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V38.8977C36 40.4727 34.7344 41.7614 33.1875 41.7614Z" fill="#1A237E" fill-opacity="0.2"/>
|
||||
</g>
|
||||
<mask id="mask6_17_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="0" width="30" height="42">
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask6_17_2)">
|
||||
<path d="M27.5625 11.4545C26.0086 11.4545 24.75 10.1731 24.75 8.59091V8.82955C24.75 10.4117 26.0086 11.6932 27.5625 11.6932H36V11.4545H27.5625Z" fill="#1A237E" fill-opacity="0.1"/>
|
||||
</g>
|
||||
<path d="M24.75 0H8.8125C7.26562 0 6 1.28864 6 2.86364V39.1364C6 40.7114 7.26562 42 8.8125 42H33.1875C34.7344 42 36 40.7114 36 39.1364V11.4545L24.75 0Z" fill="url(#paint1_radial_17_2)"/>
|
||||
</g>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_17_2" x1="546.996" y1="101.755" x2="546.996" y2="1072.22" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#0B0B0B" stop-opacity="0.2"/>
|
||||
<stop offset="1" stop-color="#1A237E" stop-opacity="0.02"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="paint1_radial_17_2" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(101.041 82.5315) scale(4837.46 4896.99)">
|
||||
<stop stop-color="white" stop-opacity="0.1"/>
|
||||
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<clipPath id="clip0_17_2">
|
||||
<rect width="30" height="42" fill="white" transform="translate(6)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.3 KiB |
1
ui/popup/app.js
Normal file
41
ui/popup/compatibility.js
Normal file
@@ -0,0 +1,41 @@
|
||||
(function () {
|
||||
var match = navigator.userAgent.toLowerCase().match(/chrom[e|ium]\/([^ \.]+)/);
|
||||
if (!match) {
|
||||
return;
|
||||
}
|
||||
var version = parseInt(match[1]);
|
||||
var minChromeVersion = 63;
|
||||
if (version >= minChromeVersion) {
|
||||
return;
|
||||
}
|
||||
var warning = document.createElement("div");
|
||||
warning.className = "compatibility-warning";
|
||||
var text = document.createTextNode(
|
||||
[
|
||||
"Your Google Chrome (or Chromium) version " + version + " is out of date.",
|
||||
"In order to use this extension update your Google Chrome.",
|
||||
"If you cannot update, install the old Dark Reader version, which works for at least Chrome 49, from ",
|
||||
].join(" ")
|
||||
);
|
||||
var link = document.createElement("a");
|
||||
link.href = "https://chrome.google.com/webstore/detail/iabnclnclchijjckhdljmocghgmgnnii";
|
||||
link.target = "_blank";
|
||||
link.textContent = "here";
|
||||
warning.appendChild(text);
|
||||
warning.appendChild(link);
|
||||
warning.style.backgroundColor = "#00222b";
|
||||
warning.style.boxSizing = "border-box";
|
||||
warning.style.color = "#e96c4c";
|
||||
warning.style.height = "100%";
|
||||
warning.style.left = "0";
|
||||
warning.style.padding = "40% 1rem 0 1rem";
|
||||
warning.style.position = "fixed";
|
||||
warning.style.textAlign = "justify";
|
||||
warning.style.textAlignLast = "center";
|
||||
warning.style.top = "0";
|
||||
warning.style.width = "100%";
|
||||
warning.style.zIndex = "2014";
|
||||
link.style.color = "#e96c4c";
|
||||
link.style.outline = "none";
|
||||
document.body.appendChild(warning);
|
||||
})();
|
||||
23
ui/popup/index.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Dark Reader settings</title>
|
||||
<meta name="theme-color" content="#0B2228" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="../assets/images/darkreader-icon-256x256.png"
|
||||
/>
|
||||
<script src="index.js" defer></script>
|
||||
<script src="compatibility.js" defer></script>
|
||||
<script src="app.js" defer></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="loader">
|
||||
<label class="loader__message">Loading, please wait</label>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||