darkreader 4.9.108 → 4.9.109
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 +1 -58
- package/darkreader.mjs +1 -58
- package/package.json +1 -1
package/darkreader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dark Reader v4.9.
|
|
2
|
+
* Dark Reader v4.9.109
|
|
3
3
|
* https://darkreader.org/
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -366,7 +366,6 @@
|
|
|
366
366
|
darkColorScheme: "Default",
|
|
367
367
|
immediateModify: false
|
|
368
368
|
};
|
|
369
|
-
if (__PLUS__);
|
|
370
369
|
const filterModeSites = [
|
|
371
370
|
"*.officeapps.live.com",
|
|
372
371
|
"*.sharepoint.com",
|
|
@@ -2110,22 +2109,6 @@
|
|
|
2110
2109
|
return null;
|
|
2111
2110
|
}
|
|
2112
2111
|
|
|
2113
|
-
function getBackgroundPoles(_theme) {
|
|
2114
|
-
return ["", ""];
|
|
2115
|
-
}
|
|
2116
|
-
function getTextPoles(_theme) {
|
|
2117
|
-
return ["", ""];
|
|
2118
|
-
}
|
|
2119
|
-
function modifyBgColorExtended({h, s, l, a}, _pole1, _pole2) {
|
|
2120
|
-
return {h, s, l, a};
|
|
2121
|
-
}
|
|
2122
|
-
function modifyFgColorExtended({h, s, l, a}, _pole1, _pole2) {
|
|
2123
|
-
return {h, s, l, a};
|
|
2124
|
-
}
|
|
2125
|
-
function modifyLightSchemeColorExtended({h, s, l, a}, _pole1, _pole2) {
|
|
2126
|
-
return {h, s, l, a};
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
2112
|
let variablesSheet;
|
|
2130
2113
|
const registeredColors = new Map();
|
|
2131
2114
|
function registerVariablesSheet(sheet) {
|
|
@@ -2350,28 +2333,8 @@
|
|
|
2350
2333
|
}
|
|
2351
2334
|
function _modifyBackgroundColor(rgb, theme) {
|
|
2352
2335
|
if (theme.mode === 0) {
|
|
2353
|
-
if (__PLUS__) {
|
|
2354
|
-
const poles = getBackgroundPoles();
|
|
2355
|
-
return modifyColorWithCache(
|
|
2356
|
-
rgb,
|
|
2357
|
-
theme,
|
|
2358
|
-
modifyLightSchemeColorExtended,
|
|
2359
|
-
poles[0],
|
|
2360
|
-
poles[1]
|
|
2361
|
-
);
|
|
2362
|
-
}
|
|
2363
2336
|
return modifyLightSchemeColor(rgb, theme);
|
|
2364
2337
|
}
|
|
2365
|
-
if (__PLUS__) {
|
|
2366
|
-
const poles = getBackgroundPoles();
|
|
2367
|
-
return modifyColorWithCache(
|
|
2368
|
-
rgb,
|
|
2369
|
-
theme,
|
|
2370
|
-
modifyBgColorExtended,
|
|
2371
|
-
poles[0],
|
|
2372
|
-
poles[1]
|
|
2373
|
-
);
|
|
2374
|
-
}
|
|
2375
2338
|
const pole = getBgPole(theme);
|
|
2376
2339
|
return modifyColorWithCache(rgb, theme, modifyBgHSL, pole);
|
|
2377
2340
|
}
|
|
@@ -2429,28 +2392,8 @@
|
|
|
2429
2392
|
}
|
|
2430
2393
|
function _modifyForegroundColor(rgb, theme) {
|
|
2431
2394
|
if (theme.mode === 0) {
|
|
2432
|
-
if (__PLUS__) {
|
|
2433
|
-
const poles = getTextPoles();
|
|
2434
|
-
return modifyColorWithCache(
|
|
2435
|
-
rgb,
|
|
2436
|
-
theme,
|
|
2437
|
-
modifyLightSchemeColorExtended,
|
|
2438
|
-
poles[0],
|
|
2439
|
-
poles[1]
|
|
2440
|
-
);
|
|
2441
|
-
}
|
|
2442
2395
|
return modifyLightSchemeColor(rgb, theme);
|
|
2443
2396
|
}
|
|
2444
|
-
if (__PLUS__) {
|
|
2445
|
-
const poles = getTextPoles();
|
|
2446
|
-
return modifyColorWithCache(
|
|
2447
|
-
rgb,
|
|
2448
|
-
theme,
|
|
2449
|
-
modifyFgColorExtended,
|
|
2450
|
-
poles[0],
|
|
2451
|
-
poles[1]
|
|
2452
|
-
);
|
|
2453
|
-
}
|
|
2454
2397
|
const pole = getFgPole(theme);
|
|
2455
2398
|
return modifyColorWithCache(rgb, theme, modifyFgHSL, pole);
|
|
2456
2399
|
}
|
package/darkreader.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dark Reader v4.9.
|
|
2
|
+
* Dark Reader v4.9.109
|
|
3
3
|
* https://darkreader.org/
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -349,7 +349,6 @@ const DEFAULT_THEME = {
|
|
|
349
349
|
darkColorScheme: "Default",
|
|
350
350
|
immediateModify: false
|
|
351
351
|
};
|
|
352
|
-
if (__PLUS__);
|
|
353
352
|
const filterModeSites = [
|
|
354
353
|
"*.officeapps.live.com",
|
|
355
354
|
"*.sharepoint.com",
|
|
@@ -2068,22 +2067,6 @@ function getSheetScope(sheet) {
|
|
|
2068
2067
|
return null;
|
|
2069
2068
|
}
|
|
2070
2069
|
|
|
2071
|
-
function getBackgroundPoles(_theme) {
|
|
2072
|
-
return ["", ""];
|
|
2073
|
-
}
|
|
2074
|
-
function getTextPoles(_theme) {
|
|
2075
|
-
return ["", ""];
|
|
2076
|
-
}
|
|
2077
|
-
function modifyBgColorExtended({h, s, l, a}, _pole1, _pole2) {
|
|
2078
|
-
return {h, s, l, a};
|
|
2079
|
-
}
|
|
2080
|
-
function modifyFgColorExtended({h, s, l, a}, _pole1, _pole2) {
|
|
2081
|
-
return {h, s, l, a};
|
|
2082
|
-
}
|
|
2083
|
-
function modifyLightSchemeColorExtended({h, s, l, a}, _pole1, _pole2) {
|
|
2084
|
-
return {h, s, l, a};
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
2070
|
let variablesSheet;
|
|
2088
2071
|
const registeredColors = new Map();
|
|
2089
2072
|
function registerVariablesSheet(sheet) {
|
|
@@ -2295,28 +2278,8 @@ function modifyBgHSL({h, s, l, a}, pole) {
|
|
|
2295
2278
|
}
|
|
2296
2279
|
function _modifyBackgroundColor(rgb, theme) {
|
|
2297
2280
|
if (theme.mode === 0) {
|
|
2298
|
-
if (__PLUS__) {
|
|
2299
|
-
const poles = getBackgroundPoles();
|
|
2300
|
-
return modifyColorWithCache(
|
|
2301
|
-
rgb,
|
|
2302
|
-
theme,
|
|
2303
|
-
modifyLightSchemeColorExtended,
|
|
2304
|
-
poles[0],
|
|
2305
|
-
poles[1]
|
|
2306
|
-
);
|
|
2307
|
-
}
|
|
2308
2281
|
return modifyLightSchemeColor(rgb, theme);
|
|
2309
2282
|
}
|
|
2310
|
-
if (__PLUS__) {
|
|
2311
|
-
const poles = getBackgroundPoles();
|
|
2312
|
-
return modifyColorWithCache(
|
|
2313
|
-
rgb,
|
|
2314
|
-
theme,
|
|
2315
|
-
modifyBgColorExtended,
|
|
2316
|
-
poles[0],
|
|
2317
|
-
poles[1]
|
|
2318
|
-
);
|
|
2319
|
-
}
|
|
2320
2283
|
const pole = getBgPole(theme);
|
|
2321
2284
|
return modifyColorWithCache(rgb, theme, modifyBgHSL, pole);
|
|
2322
2285
|
}
|
|
@@ -2370,28 +2333,8 @@ function modifyFgHSL({h, s, l, a}, pole) {
|
|
|
2370
2333
|
}
|
|
2371
2334
|
function _modifyForegroundColor(rgb, theme) {
|
|
2372
2335
|
if (theme.mode === 0) {
|
|
2373
|
-
if (__PLUS__) {
|
|
2374
|
-
const poles = getTextPoles();
|
|
2375
|
-
return modifyColorWithCache(
|
|
2376
|
-
rgb,
|
|
2377
|
-
theme,
|
|
2378
|
-
modifyLightSchemeColorExtended,
|
|
2379
|
-
poles[0],
|
|
2380
|
-
poles[1]
|
|
2381
|
-
);
|
|
2382
|
-
}
|
|
2383
2336
|
return modifyLightSchemeColor(rgb, theme);
|
|
2384
2337
|
}
|
|
2385
|
-
if (__PLUS__) {
|
|
2386
|
-
const poles = getTextPoles();
|
|
2387
|
-
return modifyColorWithCache(
|
|
2388
|
-
rgb,
|
|
2389
|
-
theme,
|
|
2390
|
-
modifyFgColorExtended,
|
|
2391
|
-
poles[0],
|
|
2392
|
-
poles[1]
|
|
2393
|
-
);
|
|
2394
|
-
}
|
|
2395
2338
|
const pole = getFgPole(theme);
|
|
2396
2339
|
return modifyColorWithCache(rgb, theme, modifyFgHSL, pole);
|
|
2397
2340
|
}
|