darkreader 4.9.104 → 4.9.105
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 +12 -11
- package/darkreader.mjs +12 -11
- package/package.json +17 -17
package/darkreader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dark Reader v4.9.
|
|
2
|
+
* Dark Reader v4.9.105
|
|
3
3
|
* https://darkreader.org/
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -6675,7 +6675,7 @@
|
|
|
6675
6675
|
);
|
|
6676
6676
|
}
|
|
6677
6677
|
let blobURLAllowed = null;
|
|
6678
|
-
|
|
6678
|
+
function checkBlobURLSupport() {
|
|
6679
6679
|
if (blobURLAllowed != null) {
|
|
6680
6680
|
document.dispatchEvent(
|
|
6681
6681
|
new CustomEvent("__darkreader__blobURLCheckResponse", {
|
|
@@ -6692,17 +6692,18 @@
|
|
|
6692
6692
|
}
|
|
6693
6693
|
const blob = new Blob([bytes], {type: "image/svg+xml"});
|
|
6694
6694
|
const objectURL = URL.createObjectURL(blob);
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
await new Promise((resolve, reject) => {
|
|
6698
|
-
image.onload = () => resolve();
|
|
6699
|
-
image.onerror = () => reject();
|
|
6700
|
-
image.src = objectURL;
|
|
6701
|
-
});
|
|
6695
|
+
const image = new Image();
|
|
6696
|
+
image.onload = () => {
|
|
6702
6697
|
blobURLAllowed = true;
|
|
6703
|
-
|
|
6698
|
+
sendBlobURLCheckResponse();
|
|
6699
|
+
};
|
|
6700
|
+
image.onerror = () => {
|
|
6704
6701
|
blobURLAllowed = false;
|
|
6705
|
-
|
|
6702
|
+
sendBlobURLCheckResponse();
|
|
6703
|
+
};
|
|
6704
|
+
image.src = objectURL;
|
|
6705
|
+
}
|
|
6706
|
+
function sendBlobURLCheckResponse() {
|
|
6706
6707
|
document.dispatchEvent(
|
|
6707
6708
|
new CustomEvent("__darkreader__blobURLCheckResponse", {
|
|
6708
6709
|
detail: {blobURLAllowed}
|
package/darkreader.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dark Reader v4.9.
|
|
2
|
+
* Dark Reader v4.9.105
|
|
3
3
|
* https://darkreader.org/
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -6470,7 +6470,7 @@ function injectProxy(enableStyleSheetsProxy, enableCustomElementRegistryProxy) {
|
|
|
6470
6470
|
);
|
|
6471
6471
|
}
|
|
6472
6472
|
let blobURLAllowed = null;
|
|
6473
|
-
|
|
6473
|
+
function checkBlobURLSupport() {
|
|
6474
6474
|
if (blobURLAllowed != null) {
|
|
6475
6475
|
document.dispatchEvent(
|
|
6476
6476
|
new CustomEvent("__darkreader__blobURLCheckResponse", {
|
|
@@ -6487,17 +6487,18 @@ function injectProxy(enableStyleSheetsProxy, enableCustomElementRegistryProxy) {
|
|
|
6487
6487
|
}
|
|
6488
6488
|
const blob = new Blob([bytes], {type: "image/svg+xml"});
|
|
6489
6489
|
const objectURL = URL.createObjectURL(blob);
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
await new Promise((resolve, reject) => {
|
|
6493
|
-
image.onload = () => resolve();
|
|
6494
|
-
image.onerror = () => reject();
|
|
6495
|
-
image.src = objectURL;
|
|
6496
|
-
});
|
|
6490
|
+
const image = new Image();
|
|
6491
|
+
image.onload = () => {
|
|
6497
6492
|
blobURLAllowed = true;
|
|
6498
|
-
|
|
6493
|
+
sendBlobURLCheckResponse();
|
|
6494
|
+
};
|
|
6495
|
+
image.onerror = () => {
|
|
6499
6496
|
blobURLAllowed = false;
|
|
6500
|
-
|
|
6497
|
+
sendBlobURLCheckResponse();
|
|
6498
|
+
};
|
|
6499
|
+
image.src = objectURL;
|
|
6500
|
+
}
|
|
6501
|
+
function sendBlobURLCheckResponse() {
|
|
6501
6502
|
document.dispatchEvent(
|
|
6502
6503
|
new CustomEvent("__darkreader__blobURLCheckResponse", {
|
|
6503
6504
|
detail: {blobURLAllowed}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "darkreader",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.105",
|
|
4
4
|
"description": "Dark mode for every website",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"api": "node --max-old-space-size=3072 tasks/cli.js build --api",
|
|
@@ -65,25 +65,25 @@
|
|
|
65
65
|
"malevic": "0.20.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@eslint/compat": "1.2.
|
|
69
|
-
"@eslint/eslintrc": "3.
|
|
70
|
-
"@eslint/js": "9.
|
|
68
|
+
"@eslint/compat": "1.2.7",
|
|
69
|
+
"@eslint/eslintrc": "3.3.0",
|
|
70
|
+
"@eslint/js": "9.21.0",
|
|
71
71
|
"@rollup/plugin-node-resolve": "16.0.0",
|
|
72
72
|
"@rollup/plugin-replace": "6.0.2",
|
|
73
73
|
"@rollup/plugin-typescript": "12.1.2",
|
|
74
|
-
"@stylistic/eslint-plugin": "
|
|
75
|
-
"@types/chrome": "0.0.
|
|
74
|
+
"@stylistic/eslint-plugin": "4.0.1",
|
|
75
|
+
"@types/chrome": "0.0.306",
|
|
76
76
|
"@types/eslint": "9.6.1",
|
|
77
|
-
"@types/jasmine": "5.1.
|
|
77
|
+
"@types/jasmine": "5.1.7",
|
|
78
78
|
"@types/jest": "29.5.14",
|
|
79
79
|
"@types/karma": "6.3.9",
|
|
80
80
|
"@types/karma-coverage": "2.0.3",
|
|
81
|
-
"@types/node": "22.13.
|
|
81
|
+
"@types/node": "22.13.5",
|
|
82
82
|
"@types/ws": "8.5.14",
|
|
83
83
|
"chokidar": "4.0.3",
|
|
84
84
|
"eslint-plugin-compat": "6.0.2",
|
|
85
85
|
"eslint-plugin-import": "2.31.0",
|
|
86
|
-
"globals": "
|
|
86
|
+
"globals": "16.0.0",
|
|
87
87
|
"globby": "14.1.0",
|
|
88
88
|
"jasmine-core": "5.6.0",
|
|
89
89
|
"jest": "29.7.0",
|
|
@@ -97,20 +97,20 @@
|
|
|
97
97
|
"karma-safari-launcher": "1.0.0",
|
|
98
98
|
"karma-spec-reporter": "0.0.36",
|
|
99
99
|
"less": "4.2.2",
|
|
100
|
-
"prettier": "3.5.
|
|
101
|
-
"puppeteer-core": "24.2.
|
|
102
|
-
"rollup": "4.34.
|
|
100
|
+
"prettier": "3.5.2",
|
|
101
|
+
"puppeteer-core": "24.2.1",
|
|
102
|
+
"rollup": "4.34.8",
|
|
103
103
|
"rollup-plugin-istanbul": "5.0.0",
|
|
104
|
-
"ts-jest": "29.2.
|
|
104
|
+
"ts-jest": "29.2.6",
|
|
105
105
|
"tslib": "2.8.1",
|
|
106
106
|
"typescript": "5.7.3",
|
|
107
|
-
"typescript-eslint": "8.24.
|
|
107
|
+
"typescript-eslint": "8.24.1",
|
|
108
108
|
"web-ext": "8.4.0",
|
|
109
|
-
"ws": "8.18.
|
|
109
|
+
"ws": "8.18.1",
|
|
110
110
|
"yazl": "3.3.1"
|
|
111
111
|
},
|
|
112
112
|
"optionalDependencies": {
|
|
113
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
114
|
-
"@rollup/rollup-win32-x64-msvc": "4.
|
|
113
|
+
"@rollup/rollup-linux-x64-gnu": "4.34.8",
|
|
114
|
+
"@rollup/rollup-win32-x64-msvc": "4.34.8"
|
|
115
115
|
}
|
|
116
116
|
}
|