Skip to content

Commit

Permalink
Create NewYorkerDarkMode.user.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick2bad4u committed Nov 6, 2024
1 parent 6690350 commit fbd8ed4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions NewYorkerDarkMode.user.css
Original file line number Diff line number Diff line change
@@ -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;
}

}

0 comments on commit fbd8ed4

Please sign in to comment.