No description
Find a file
Felipe M. b5261ff753
All checks were successful
ci/woodpecker/tag/release Pipeline was successful
ci: add woodpecker config
2025-11-23 09:30:36 +01:00
.woodpecker ci: add woodpecker config 2025-11-23 09:30:36 +01:00
icons Initial commit 2025-11-22 08:53:53 +01:00
.gitignore Initial commit 2025-11-22 08:53:53 +01:00
content.js Initial commit 2025-11-22 08:53:53 +01:00
generate_icons.py Initial commit 2025-11-22 08:53:53 +01:00
Makefile ci: add woodpecker config 2025-11-23 09:30:36 +01:00
manifest.json Initial commit 2025-11-22 08:53:53 +01:00
popup.html Initial commit 2025-11-22 08:53:53 +01:00
popup.js Initial commit 2025-11-22 08:53:53 +01:00
README.md Initial commit 2025-11-22 08:53:53 +01:00
styles.css Initial commit 2025-11-22 08:53:53 +01:00

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

  1. Clone or download this repository.
  2. Open your browser's extensions page (e.g., chrome://extensions).
  3. Enable Developer mode.
  4. Click Load unpacked and select this directory.

Development

This project includes a Makefile for common tasks:

  • make build: Packages the extension into extension.zip.
  • make lint: Lints the extension using web-ext.
  • make clean: Removes build artifacts.