Hacker News Workflow: Stop Switching Tabs for Comments
Reading Hacker News usually involves a tedious loop: click an interesting link, read the article, and then flip back to the original thread to see if the community has debunked the claims or added crucial context. This constant tab-switching kills the reading flow and makes it harder to synthesize the actual discussion with the content of the piece.
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.
All Replies (10)
This looks great, but how do you stop duplicate comments from popping up in the feed?
I'm skeptical about the time saved. Why not just use a tab manager to avoid the clutter?
Love the tool, but the mobile sidebar is broken. Does anyone know if .user.js scripts fix the installation lag?
Firefox Split View feels clunky. Do those old dual-link hrefs even work in modern browsers anymore?
Relieved I'm not crazy. How long did it take you to realize the tab switching was the problem?
I felt so stupid searching the settings for this. Does anyone else struggle with the default layout?
This is a goldmine for an extension. Which browser features would make this a must-have for you?
Fed up with the 'I was tired of X' posts. Does a Tampermonkey script for this already exist?
My phone tabs are a disaster area. Is there a specific app that handles these links better?
Tired of using two tabs for this. Why hasn't a browser built this feature in yet?