darkreader 4.9.55 → 4.9.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/darkreader.js +4 -3
- package/package.json +12 -12
package/darkreader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dark Reader v4.9.
|
|
2
|
+
* Dark Reader v4.9.57
|
|
3
3
|
* https://darkreader.org/
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
MessageType["CS_FETCH"] = "cs-fetch";
|
|
155
155
|
MessageType["CS_DARK_THEME_DETECTED"] = "cs-dark-theme-detected";
|
|
156
156
|
MessageType["CS_DARK_THEME_NOT_DETECTED"] = "cs-dark-theme-not-detected";
|
|
157
|
+
MessageType["CS_LOG"] = "cs-log";
|
|
157
158
|
})(MessageType || (MessageType = {}));
|
|
158
159
|
|
|
159
160
|
var isNavigatorDefined = typeof navigator !== 'undefined';
|
|
@@ -2267,7 +2268,7 @@
|
|
|
2267
2268
|
lines.push(" color-scheme: ".concat(theme.mode === 1 ? 'dark' : 'dark light', " !important;"));
|
|
2268
2269
|
lines.push('}');
|
|
2269
2270
|
}
|
|
2270
|
-
var bgSelectors = joinSelectors(isIFrame ? '' : 'html, body', styleSystemControls ? 'input, textarea, select, button' : '');
|
|
2271
|
+
var bgSelectors = joinSelectors(isIFrame ? '' : 'html, body', styleSystemControls ? 'input, textarea, select, button, dialog' : '');
|
|
2271
2272
|
if (bgSelectors) {
|
|
2272
2273
|
lines.push("".concat(bgSelectors, " {"));
|
|
2273
2274
|
lines.push(" background-color: ".concat(modifyBackgroundColor({ r: 255, g: 255, b: 255 }, theme), ";"));
|
|
@@ -2413,7 +2414,7 @@
|
|
|
2413
2414
|
}
|
|
2414
2415
|
if (prop.includes('background')) {
|
|
2415
2416
|
if ((rule.style.webkitMaskImage && rule.style.webkitMaskImage !== 'none') ||
|
|
2416
|
-
(rule.style.webkitMask && rule.style.webkitMask
|
|
2417
|
+
(rule.style.webkitMask && !rule.style.webkitMask.startsWith('none')) ||
|
|
2417
2418
|
(rule.style.mask && rule.style.mask !== 'none') ||
|
|
2418
2419
|
(rule.style.getPropertyValue('mask-image') && rule.style.getPropertyValue('mask-image') !== 'none')) {
|
|
2419
2420
|
return function (filter) { return modifyForegroundColor(rgb, filter); };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "darkreader",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.57",
|
|
4
4
|
"description": "Dark mode for every website",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"api": "node tasks/build.js --api",
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
"@rollup/plugin-replace": "4.0.0",
|
|
58
58
|
"@rollup/plugin-typescript": "8.3.4",
|
|
59
59
|
"@rollup/pluginutils": "4.2.1",
|
|
60
|
-
"@types/chrome": "0.0.
|
|
61
|
-
"@types/eslint": "8.4.
|
|
60
|
+
"@types/chrome": "0.0.195",
|
|
61
|
+
"@types/eslint": "8.4.6",
|
|
62
62
|
"@types/jasmine": "4.0.3",
|
|
63
|
-
"@types/jest": "28.1.
|
|
63
|
+
"@types/jest": "28.1.7",
|
|
64
64
|
"@types/karma": "6.3.3",
|
|
65
65
|
"@types/karma-coverage": "2.0.1",
|
|
66
|
-
"@types/node": "18.
|
|
66
|
+
"@types/node": "18.7.8",
|
|
67
67
|
"@types/offscreencanvas": "2019.7.0",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
69
|
-
"@typescript-eslint/parser": "5.
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "5.33.1",
|
|
69
|
+
"@typescript-eslint/parser": "5.33.1",
|
|
70
70
|
"chokidar": "3.5.3",
|
|
71
|
-
"eslint": "8.
|
|
71
|
+
"eslint": "8.22.0",
|
|
72
72
|
"eslint-plugin-compat": "4.0.2",
|
|
73
73
|
"eslint-plugin-import": "2.26.0",
|
|
74
74
|
"eslint-plugin-local": "1.0.0",
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
"less": "4.1.3",
|
|
89
89
|
"malevic": "0.19.1",
|
|
90
90
|
"prettier": "2.7.1",
|
|
91
|
-
"puppeteer-core": "16.
|
|
92
|
-
"rollup": "2.
|
|
91
|
+
"puppeteer-core": "16.2.0",
|
|
92
|
+
"rollup": "2.78.1",
|
|
93
93
|
"rollup-plugin-istanbul2": "2.0.2",
|
|
94
|
-
"ts-jest": "28.0.
|
|
94
|
+
"ts-jest": "28.0.8",
|
|
95
95
|
"tslib": "2.4.0",
|
|
96
96
|
"typescript": "4.7.4",
|
|
97
|
-
"web-ext": "7.
|
|
97
|
+
"web-ext": "7.2.0",
|
|
98
98
|
"ws": "8.8.1",
|
|
99
99
|
"yazl": "2.5.1"
|
|
100
100
|
}
|