Hacker News NoScroll

By Pratham Kumar Last update Apr 1, 2009 — Installed 80 times.


Script Summary: Fixes Hacker News code comment overflow.

Comments which have a code section on Hacker News do not wrap and stretch the entire page horizontally. To fix this annoyance, this script adds this CSS styling to each pre tag.

pre {
  overflow:auto
  width:800px
}

See this comment for an example.