/hackernews-collapse

Hacker News Safari extension for collapsing comment trees.

Primary LanguageJavaScript

Hacker News Collapse

Deprecated: This project is deprecated. Finally, Hacker News has added this feature natively to its site.


Screenshot

Browser extension for collapsing Hacker News comment trees. Adds a collapse button to comments.

Install

To install the Safari extension, open the hackernews-collapse.safariextz extension file. To install the userscript, open hackernews-collapse.user.js in Tampermonkey (not tested with Greasemonkey).

Existing tabs need to be reloaded before using the extension.

Code

Based on a bookmarklet by Alexander Kirk. Changes to the original script:

  • Show collapse symbol on the left
  • Align collapse buttons vertically
  • Option to hide number of child comments when collapsing
  • Fix for various layout problems where comments change their position on collapsing
  • Other bug fixes

License

MIT, see hackernews-collapse.safariextension/LICENSE.