Skip to content

Commit 142c6df

Browse files
authored
Merge pull request #8 from lirena00/v1.1.0
updated to v1.1.0
2 parents 9cacc74 + a56df3c commit 142c6df

File tree

15 files changed

+516
-125
lines changed

15 files changed

+516
-125
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@
22

33
A sleek browser extension that turns your web browsing experience into grayscale, helping reduce digital distractions and avoid doomscrolling.
44

5-
![Version](https://img.shields.io/badge/version-1.0.0-black)
6-
![License](https://img.shields.io/badge/license-MIT-gray)
5+
![Version](https://img.shields.io/badge/version-1.1.0-black)
6+
![License](https://img.shields.io/badge/license-MIT-black)
7+
8+
<p align="center">
9+
<a href="https://chromewebstore.google.com/detail/monochromate/hafcajcllbjnoolpfngclfmmgpikdhlm">
10+
<img src="./src/public/chrome_badge.svg" alt="Chrome" />
11+
</a>
12+
<a href="https://addons.mozilla.org/en-US/firefox/addon/monochromate/">
13+
<img src="./src/public/firefox_badge.svg" alt="Firefox" />
14+
</a>
15+
</p>
716

817
## ✨ Features
918

@@ -38,7 +47,8 @@ This will build the extension in **watch mode**, so changes automatically reflec
3847
To generate an optimized build:
3948

4049
```bash
41-
npm build
50+
npm zip
51+
npm zip:firefox
4252
```
4353

4454
This creates a final version inside the `dist/` folder, ready for submission to the Chrome Web Store and Mozilla Add-ons.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "monochromate",
33
"description": "An extension that greyscales the webpage to reduce doomscrolling",
44
"private": true,
5-
"version": "1.0.2",
5+
"version": "1.1.0",
66
"type": "module",
77
"scripts": {
88
"dev": "wxt",

src/entrypoints/background.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ export default defineBackground(() => {
101101
width: 100vw;
102102
height: 100vh;
103103
pointer-events: none;
104-
z-index: 100;
105-
backdrop-filter: grayscale(${intensity}%) !important;
104+
z-index: 2147483647;
105+
backdrop-filter: grayscale(${intensity}%) ;
106106
`;
107107
document.documentElement.appendChild(overlay);
108108
} else {
109-
overlay.style.backdropFilter = `grayscale(${intensity}%) !important`;
109+
overlay.style.backdropFilter = `grayscale(${intensity}%)`;
110110
}
111111
},
112112
args: [intensity],

src/entrypoints/content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ const createOrUpdateOverlay = (intensity: number) => {
1717
height: 100vh;
1818
pointer-events: none;
1919
z-index: 2147483647;
20-
backdrop-filter: grayscale(${intensity}%) !important;
20+
backdrop-filter: grayscale(${intensity}%) ;
2121
`;
2222
document.documentElement.appendChild(overlay);
2323
} else {
24-
overlay.style.backdropFilter = `grayscale(${intensity}%) !important`;
24+
overlay.style.backdropFilter = `grayscale(${intensity}%) `;
2525
}
2626
};
2727

src/entrypoints/popup/App.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* Global scrollbar styles */
2+
::-webkit-scrollbar {
3+
width: 6px;
4+
height: 6px;
5+
}
6+
7+
::-webkit-scrollbar-track {
8+
background: transparent;
9+
}
10+
11+
::-webkit-scrollbar-thumb {
12+
background: #d1d1d1;
13+
border-radius: 3px;
14+
}
15+
16+
::-webkit-scrollbar-thumb:hover {
17+
background: #a1a1a1;
18+
}
19+
20+
/* Target specific scrollable areas */
21+
.overflow-y-auto::-webkit-scrollbar {
22+
width: 4px;
23+
}
24+
25+
.overflow-y-auto::-webkit-scrollbar-thumb {
26+
background: #d1d1d1;
27+
}
28+
29+
/* For Firefox */
30+
* {
31+
scrollbar-width: thin;
32+
scrollbar-color: #d1d1d1 transparent;
33+
}

0 commit comments

Comments
 (0)