No description
- JavaScript 45.3%
- HTML 23.5%
- CSS 13.6%
- Python 11.9%
- Makefile 5.7%
Replace Woodpecker CI with GitHub/Forgejo Actions workflows matching the patterns used in mattermost-marketplace-ng. Add CI workflow with lint and build jobs, and release workflow with artifact upload. Also update .gitignore with web-ext-artifacts and AI tool entries. Reviewed-on: #1 Co-authored-by: Felipe M. <me@fmartingr.com> Co-committed-by: Felipe M. <me@fmartingr.com> |
||
|---|---|---|
| .github/workflows | ||
| 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.