Skip to content

Instantly share code, notes, and snippets.

@aclarknexient
Created October 13, 2023 13:43
Show Gist options
  • Save aclarknexient/c39c83f2f97c3c6b1c307c19e516ed6e to your computer and use it in GitHub Desktop.
Save aclarknexient/c39c83f2f97c3c6b1c307c19e516ed6e 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)
@aclarknexient
Copy link
Author

Screenshots:

Screenshot 2023-10-13 at 09 45 05

Screenshot 2023-10-13 at 09 44 47

@alabhyajindal
Copy link

This is great! Thanks!

@aclarknexient
Copy link
Author

@alabhyajindal You are most welcome, I really like being able to help people out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment