Skip to content

Instantly share code, notes, and snippets.

@kwbr
Created July 31, 2025 22:56
Show Gist options
  • Save kwbr/5da99b01e5e43847f9f26a38f7a0e77d to your computer and use it in GitHub Desktop.
Save kwbr/5da99b01e5e43847f9f26a38f7a0e77d to your computer and use it in GitHub Desktop.

Revisions

  1. kwbr renamed this gist Jul 31, 2025. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. kwbr renamed this gist Jul 31, 2025. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. kwbr created this gist Jul 31, 2025.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    ! Hacker News dark mode
    news.ycombinator.com##html:matches-media((prefers-color-scheme:dark)):style(filter:invert(100%) hue-rotate(180deg))
    news.ycombinator.com##body:matches-media((prefers-color-scheme:dark)):style(background: white)
    news.ycombinator.com##div.toptext:matches-media((prefers-color-scheme:dark)):style(color: black)
    news.ycombinator.com###hnmain:matches-media((prefers-color-scheme:dark)) td[bgcolor="#000000"]