darkreader 4.9.92 → 4.9.95

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.
Files changed (2) hide show
  1. package/darkreader.js +9 -7
  2. package/package.json +10 -10
package/darkreader.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Dark Reader v4.9.92
2
+ * Dark Reader v4.9.95
3
3
  * https://darkreader.org/
4
4
  */
5
5
 
@@ -2136,10 +2136,8 @@
2136
2136
  ".fat",
2137
2137
  ".icofont",
2138
2138
  '[style*="font-"]',
2139
- '[class*="icon"]',
2140
- '[class*="Icon"]',
2141
- '[class*="symbol"]',
2142
- '[class*="Symbol"]',
2139
+ '[class*="icon"i]',
2140
+ '[class*="symbol"i]',
2143
2141
  ".glyphicon",
2144
2142
  '[class*="material-symbol"]',
2145
2143
  '[class*="material-icon"]',
@@ -2734,6 +2732,7 @@
2734
2732
  function joinSelectors(...selectors) {
2735
2733
  return selectors.filter(Boolean).join(", ");
2736
2734
  }
2735
+ const hostsWithOddScrollbars = ["calendar.google.com"];
2737
2736
  function getModifiedUserAgentStyle(theme, isIFrame, styleSystemControls) {
2738
2737
  const lines = [];
2739
2738
  if (!isIFrame) {
@@ -2802,7 +2801,10 @@
2802
2801
  ` color: ${modifyForegroundColor({r: 0, g: 0, b: 0}, theme)} !important;`
2803
2802
  );
2804
2803
  lines.push("}");
2805
- if (theme.scrollbarColor) {
2804
+ if (
2805
+ theme.scrollbarColor &&
2806
+ !hostsWithOddScrollbars.includes(location.hostname)
2807
+ ) {
2806
2808
  lines.push(getModifiedScrollbarStyle(theme));
2807
2809
  }
2808
2810
  if (theme.selectionColor) {
@@ -6327,7 +6329,7 @@
6327
6329
  function overrideProperty(cls, prop, overrides) {
6328
6330
  const proto = cls.prototype;
6329
6331
  const oldDescriptor = Object.getOwnPropertyDescriptor(proto, prop);
6330
- const newDescriptor = {...oldDescriptor};
6332
+ const newDescriptor = oldDescriptor ? {...oldDescriptor} : {};
6331
6333
  Object.keys(overrides).forEach((key) => {
6332
6334
  const factory = overrides[key];
6333
6335
  newDescriptor[key] = factory(oldDescriptor[key]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "darkreader",
3
- "version": "4.9.92",
3
+ "version": "4.9.95",
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",
@@ -66,23 +66,23 @@
66
66
  "@rollup/plugin-node-resolve": "15.2.3",
67
67
  "@rollup/plugin-replace": "5.0.7",
68
68
  "@rollup/plugin-typescript": "11.1.6",
69
- "@types/chrome": "0.0.269",
69
+ "@types/chrome": "0.0.270",
70
70
  "@types/eslint": "8.56.10",
71
71
  "@types/jasmine": "5.1.4",
72
72
  "@types/jest": "29.5.12",
73
73
  "@types/karma": "6.3.8",
74
74
  "@types/karma-coverage": "2.0.3",
75
- "@types/node": "22.2.0",
75
+ "@types/node": "22.5.4",
76
76
  "@types/ws": "8.5.12",
77
77
  "@typescript-eslint/eslint-plugin": "7.16.0",
78
78
  "@typescript-eslint/parser": "7.16.0",
79
79
  "chokidar": "3.6.0",
80
80
  "eslint": "8.57.0",
81
81
  "eslint-plugin-compat": "5.0.0",
82
- "eslint-plugin-import": "2.29.1",
82
+ "eslint-plugin-import": "2.30.0",
83
83
  "eslint-plugin-local": "4.2.2",
84
84
  "globby": "14.0.2",
85
- "jasmine-core": "5.2.0",
85
+ "jasmine-core": "5.3.0",
86
86
  "jest": "29.7.0",
87
87
  "jest-extended": "4.0.2",
88
88
  "karma": "6.4.4",
@@ -95,12 +95,12 @@
95
95
  "karma-spec-reporter": "0.0.36",
96
96
  "less": "4.2.0",
97
97
  "prettier": "3.3.3",
98
- "puppeteer-core": "23.0.2",
99
- "rollup": "4.20.0",
98
+ "puppeteer-core": "23.3.0",
99
+ "rollup": "4.21.2",
100
100
  "rollup-plugin-istanbul": "5.0.0",
101
- "ts-jest": "29.2.4",
102
- "tslib": "2.6.3",
103
- "typescript": "5.5.4",
101
+ "ts-jest": "29.2.5",
102
+ "tslib": "2.7.0",
103
+ "typescript": "5.6.2",
104
104
  "web-ext": "8.2.0",
105
105
  "ws": "8.18.0",
106
106
  "yazl": "2.5.1"