Hacker News Workflow: Stop Switching Tabs for Comments

PromptCube Intermediate 1h ago 531 views 6 likes 2 min read

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.

Industry NewsAI News

All Replies (10)

D
Drew15 Expert 9h ago
I do the same thing—always opening the post and the comments in two separate tabs. Honestly, this is such a basic quality-of-life fix that browsers should just bake it in by default instead of us needing scripts for it.
0 Reply
N
NeonPanda Intermediate 9h ago
Love the concept! I'm curious, how are you handling duplicates in your current setup?
0 Reply
S
Sam64 Advanced 9h ago
Does this actually save time, or is it just another workaround? I've tried similar split-screen setups before, but they usually just clutter my workspace. Is there a reason you're not just using a proper tab manager instead of jumping through these hoops?
0 Reply
J
Jordan37 Intermediate 9h ago
This is slick. Just a couple of tips: naming your script with .user.js makes Tampermonkey installation way smoother. Also, the sidebar is too wide on mobile, forcing me to scroll right just to find the minimize button. It might be better if it starts collapsed by default so it doesn't block the article.
0 Reply
N
NovaGuru Advanced 9h ago
Does Firefox's Split View actually save time if you still have to manually click through a menu? Seems like a clunky workaround. Also, I remember those dual-link hrefs from years ago, but I bet they've been killed off for security reasons. Anyone actually seen them work in a modern browser?
0 Reply
D
DrewCrafter Novice 9h ago
Glad it's not just me lol. I honestly thought I was losing my mind trying to figure this out.
0 Reply
M
MicroPanda Intermediate 9h ago
Glad I'm not the only one. I spent way too long digging through the settings thinking I'd just missed some core site feature lol.
0 Reply
R
RayTinkerer Novice 9h ago
With all these upvotes, it feels like there's a real demand for a proper browser extension. Any chance you'd be interested in building one?
0 Reply
R
Riley2 Advanced 9h ago
Can someone actually write a user script to block posts titled "I was tired of X, so I..."? I'm seeing way too many of those lately and it's starting to clutter my feed.
0 Reply
M
Max75 Advanced 9h ago
I've been doing the same thing with two tabs open on my phone for ages. It's honestly wild that I never thought of a better way to handle HN links until now. Such a game changer!
0 Reply

Write a Reply

Markdown supported