# Hacker News Workflow: Stop Switching Tabs for Comments

> Source: <https://promptcube3.com/en/news/4182/>
> Published: 2026-07-29 02:28:18+00:00

# Hacker News Workflow: Stop Switching Tabs for Comments

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/)
