Enhancements for Hacker News and HackerWeb.
Click to Install (requires Tampermonkey or Violentmonkey)
- Collapsible comments - Click the toggle or left gutter to collapse threads
- Shift+click - Collapse an entire thread from any comment
- Hover highlighting - See the ancestor chain when hovering over comments
- State persistence - Collapsed comments stay collapsed across sessions
- Wider content - More readable column width
- Quick links - Jump to HackerWeb or hckrnews from any story
If you're new to the Hacker News ecosystem, these are two excellent alternative frontends:
- HackerWeb - A fast, clean mobile-friendly interface for reading HN. Great for focused reading without distractions.
- hckrnews - Shows HN stories organized by day with scores, making it easy to catch up on what you missed.
Both are read-only interfaces to the same Hacker News content.
bun install
bun run build # Build userscript
bun run build:watch # Rebuild on changes- Enable "Allow access to file URLs" in extension settings
- Create a new script with just a
@requiredirective:// ==UserScript== // @name Local Dev - HackerWeb Tools // @match https://hackerweb.app/* // @match https://news.ycombinator.com/* // @require file:///path/to/dist/hackerweb-tools.user.js // ==/UserScript==
- Run
bun run build:watch - Refresh the page to pick up changes
bun run publish # Increment build, commit, tag, push, update gist
bun run publish:dry # Preview without changes