Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript
Posted by twalichiewicz 1 hour ago
HN is great for the links people share, but a big part of the value I get comes from reading the discussion around them. I realized I was always opening the article in one tab and the comments in another, constantly switching back and forth.
I figured there was probably a simpler way, so I threw together this userscript to merge the two.
1. Clicking a link from Hacker News opens the article with a side panel containing the discussion. It doesn't require your credentials, is resizable, and is easy to tweak if you want to customize it.
2. If you land on an article that has previously been shared on HN, the script finds the existing discussion and adds a button in the top-right to open the panel.
Feedback welcome.
Comments
Comment by perpil 40 minutes ago
1. If you name your script with the extension .user.js it is easier to click on to automatically install at least with tampermonkey. 2. When I went to this link from the main page, on mobile I had to scroll to the right to see the (-) to minimize because the sidebar was too large: https://elizabethtai.com/2026/06/10/substack-writers-you-nee... It may make some sense to start minimized so I can read the article first, but I can easily modify the script to do that.
Comment by swyx 33 minutes ago
Comment by twalichiewicz 12 minutes ago
A userscript also let me iterate quickly without dealing with extension packaging and permissions, but being able to see and tweak the code was a big part of the appeal.
Comment by perpil 26 minutes ago
Comment by moritzwarhier 8 minutes ago
Comment by grimgrin 18 minutes ago
thought I realize "if it works it works", https://github.com/Tampermonkey/tampermonkey
Comment by Barbing 7 minutes ago
zip is available only if you're logged-in on GitHub site
Haven’t seen that before.Comment by prtmnth 4 minutes ago
Comment by joshdavham 5 minutes ago
Would you be interested in making one?
Comment by f3408fh 1 minute ago
Comment by pluc 43 minutes ago
Comment by Barbing 6 minutes ago
Comment by dagurp 36 minutes ago
Comment by djfdat 45 minutes ago
What I do now is open the HN comments, and then when I'm ready to look at the link + comments, right-click on the title and Open in Split View.
Comment by Topology1 35 minutes ago
Comment by hugopuybareau 43 minutes ago
Comment by twalichiewicz 13 minutes ago
I normalize the URL and use HN's Algolia search API to find an existing story with a matching URL. I don't currently handle multiple HN submissions of the same article; I just use the matching story I find.
That being said, I could see creating a historical snapshot of all the times an article has been submitted and building a blended comments section in the future.
Comment by Barbing 4 minutes ago
Comment by blopp99 37 minutes ago
Comment by ahachete 52 minutes ago
This shouldn't be a script (no offense, great job!). It should be built into the browsers!
Comment by kalamarico 27 minutes ago