No description
|
|
||
|---|---|---|
| .woodpecker | ||
| icons | ||
| .gitignore | ||
| content.js | ||
| generate_icons.py | ||
| Makefile | ||
| manifest.json | ||
| popup.html | ||
| popup.js | ||
| README.md | ||
| styles.css | ||
Smart Dark Mode Extension
A lightweight web extension that applies a smart dark mode to websites while preserving media content.
Features
- Smart Inversion: Uses intelligent CSS filters (
invert(1) hue-rotate(180deg)) to darken pages without breaking colors. - Media Preservation: Automatically protects images, videos, and elements with background images from inversion.
- Per-Site Persistence: Remembers your preferences for each domain.
- System Sync: Optional setting to only activate when your OS is in dark mode.
- Smart Detection: Detects if a site is already dark and provides a visual hint.
Installation
- Clone or download this repository.
- Open your browser's extensions page (e.g.,
chrome://extensions). - Enable Developer mode.
- Click Load unpacked and select this directory.
Development
This project includes a Makefile for common tasks:
make build: Packages the extension intoextension.zip.make lint: Lints the extension usingweb-ext.make clean: Removes build artifacts.