From 2400278e002e1f3a76bc4413e08c8ef2c414c102 Mon Sep 17 00:00:00 2001 From: Mat Manna Date: Thu, 6 Aug 2026 17:58:26 -0400 Subject: [PATCH] feat: new ?invert easter egg --- _includes/analytics.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_includes/analytics.html b/_includes/analytics.html index 45a4c4d..934d18c 100644 --- a/_includes/analytics.html +++ b/_includes/analytics.html @@ -2,4 +2,12 @@ import { count } from "https://cdn.jsdelivr.net/npm/diet-goat@3/+esm"; count("https://matmanna.goatcounter.com"); + const params = new URLSearchParams(window.location.search); +const invert = params.get("invert"); + +if (invert !== null && (invert === "" || invert.toLowerCase() === "true")) { + document.documentElement.style.filter = "invert(1)"; + document.documentElement.classList.toggle("dark"); +} + -- 2.51.2