Hacker News new | past | comments | ask | show | jobs | submit login

If you have uBlock Origin installed, you can tweak styles with its "My Filters". I have these in there:

  news.ycombinator.com##.comment code:style(white-space:pre-wrap)
  news.ycombinator.com##.comment pre:style(max-width:none!important)
The first line makes code blocks in HN comments word-wrap (while still preserving whitespace otherwise); the second lets them expand to the width of their containing comment.



That works great, thank you! I never realized uBlock could do CSS modification like that, though in hindsight it is probably a simple enough extension of how the thing works in the first place.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: