From fbd8ed46253dc7c73f73fadfcef145375f0001ba Mon Sep 17 00:00:00 2001 From: Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:31:35 -0500 Subject: [PATCH] Create NewYorkerDarkMode.user.css --- NewYorkerDarkMode.user.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 NewYorkerDarkMode.user.css diff --git a/NewYorkerDarkMode.user.css b/NewYorkerDarkMode.user.css new file mode 100644 index 0000000..a087473 --- /dev/null +++ b/NewYorkerDarkMode.user.css @@ -0,0 +1,21 @@ +/* ==UserStyle== +@name New Yorker Simple Dark Mode +@version 20241106.04.29 +@namespace typpi.online +@description Dark theme for New Yorker +@author Nick2bad4u +@license UnLicense +==/UserStyle== */ + +@-moz-document domain("newyorker.com") { +/* Invert colors except images and videos */ +:is(html:not([stylus-iframe]), img, svg, video):not(z#z.z[z]) { + filter: invert(1) hue-rotate(180deg) !important; +} + +/* Ensure background images are not inverted */ +:is(html:not([stylus-iframe]), img, svg, video):not(z#z.z[z]) { + background-color: inherit !important; +} + +} \ No newline at end of file