Skip to content

Instantly share code, notes, and snippets.

@dividead
Forked from aclarknexient/ublock.txt
Created November 1, 2023 15:54
Show Gist options
  • Save dividead/3db6f27edd39664afb2186b37d775679 to your computer and use it in GitHub Desktop.
Save dividead/3db6f27edd39664afb2186b37d775679 to your computer and use it in GitHub Desktop.
ublock origin hackernews dark mode and narrower comment display
! The following 2 lines are what I use to display news.ycombinator.com
! Limit comments to 70 characters wide, making them easier to read
news.ycombinator.com##.comment:style(max-width: 70ch !important; overflow: hidden !important;)
! Invert the colours of the site, making a dark mode that I like
! `invert(95%)` does most of the work,
! but you can tweak the hue-rotate value to fine tune the colours
news.ycombinator.com##html:style(filter:invert(95%) hue-rotate(200deg); background: white)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment