Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here's my filters in ublock origin for Hacker News:

    news.ycombinator.com##.comment:style(max-width: 70ch !important; overflow: hidden !important;)
    news.ycombinator.com##.c00:style(color: #3f3f3f !important;)
    news.ycombinator.com##.comhead:style(background: #e6e6df; font-weight: italic; color: #686868 !important;)
    news.ycombinator.com##.hnuser:style(background: #e6e6df; font-style: italic; color: #575757 !important;)
    news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg); background: white)
Restricts width of comments so that they're about 10 or so words wide, for optimal reading. Also changes some of the colours.

Experiment with the above, and if you have any improvements please let me know!



I don't know you can add styles with uBlock filters.

I probably still prefer to just use Stylus for better readability/debuggability, but it's good to know.

Edit: BTW I think `font-weight: italic;` is a typo.


whoops! Thank you for spotting that. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: