cd /news/developer-tools/hacker-news-workflow-stop-switching-… · home topics developer-tools article
[ARTICLE · art-77977] src=promptcube3.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Hacker News Workflow: Stop Switching Tabs for Comments

A developer created a userscript that merges Hacker News articles and their comment threads into a single view, eliminating the need to switch between tabs. The script adds a resizable side panel for side-by-side reading and a reverse lookup feature that detects if a URL has been discussed on HN, showing a button to open the discussion. The tool aims to streamline information gathering by reducing cognitive load from tab management.

read2 min views1 publishedJul 29, 2026
Hacker News Workflow: Stop Switching Tabs for Comments
Image: Promptcube3 (auto-discovered)

I solved this by building a userscript that merges the article and the discussion into a single view. Instead of juggling two separate windows, the script creates a synchronized environment where the source material and the HN community's reaction live side-by-side.

How the Workflow Works #

The script modifies the browser behavior in two specific ways to streamline the AI workflow of gathering information from HN:

  1. Integrated Side Panel: When you click a link directly from the Hacker News homepage or a comment thread, the article opens as usual, but a resizable side panel automatically loads the corresponding HN discussion. This allows for a real-world side-by-side reading experience. Since it's a userscript, it doesn't require your account credentials to function, and the panel dimensions can be adjusted based on your screen size.

  2. Reverse Lookup Detection: This is the more technical part of the deployment. If you navigate to a URL that has been posted on HN in the past (even if you didn't arrive there via the HN site), the script scans for an existing discussion. If a match is found, a small button appears in the top-right corner of your browser, allowing you to trigger the discussion panel instantly.

Technical Implementation Details #

For those looking for a practical tutorial on how to set this up, you'll need a userscript manager like Tampermonkey or Violentmonkey. The logic relies on intercepting the click event on the HN domain and then using a simple iframe or div injection to render the discussion thread on the target page.

If you want to customize the look, the CSS for the side panel is exposed and easy to tweak. You can adjust the width, background color, or font size to match your system theme.

This setup transforms Hacker News from a directory of links into a comprehensive research tool. Instead of fragmented reading, you get a consolidated view that feels more like a professional LLM agent interface where the primary source and the analysis are presented together. It removes the cognitive load of tab management and lets you focus entirely on the technical discourse.

[LearnVector: Scaling Personalized Education with AI 12m ago](/en/news/4180/)

[Manim WebGPU: Running Math Animations in the Browser 56m ago](/en/news/4176/)

[Web Scraping Rights: Why Google and Reddit Don't Own the Web 56m ago](/en/news/4173/)

[TSMC Arizona Expansion: The AI Hardware Bottleneck 1h ago](/en/news/4169/)

[Claude Code and Open Source: Why Open Weights Matter 1h ago](/en/news/4167/)

[American Airlines IT Outage: A Lesson in Single Points of Failure 2h ago](/en/news/4163/)

[Next LearnVector: Scaling Personalized Education with AI →](/en/news/4180/)
── more in #developer-tools 4 stories · sorted by recency
── more on @hacker news 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/hacker-news-workflow…] indexed:0 read:2min 2026-07-29 ·