No description
  • JavaScript 45.3%
  • HTML 23.5%
  • CSS 13.6%
  • Python 11.9%
  • Makefile 5.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Felipe M. 72c0c4bc0c
All checks were successful
CI / lint (push) Successful in 36s
CI / build (push) Successful in 51s
Authenticate the setup actions against the GitHub API
setup-go, setup-node and setup-bun resolve versions through
api.github.com. Anonymously that is sixty requests an hour for the
whole runner host, and the jobs started failing on it. GH_API_TOKEN is
a read-only GitHub token held as a Forgejo secret.

Where the secret is absent the input is empty and the action falls back
to an anonymous request, exactly as before.
2026-09-22 12:54:19 +02:00
.github/workflows Authenticate the setup actions against the GitHub API 2026-09-22 12:54:19 +02:00
icons Initial commit 2025-11-22 08:53:53 +01:00
.gitignore ci: migrate from Woodpecker CI to Forgejo Actions (#1) 2026-04-08 11:06:20 +02: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: migrate from Woodpecker CI to Forgejo Actions (#1) 2026-04-08 11:06:20 +02:00
manifest.json ci: migrate from Woodpecker CI to Forgejo Actions (#1) 2026-04-08 11:06:20 +02: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 ci: migrate from Woodpecker CI to Forgejo Actions (#1) 2026-04-08 11:06:20 +02: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.