Live data from Hacker News

Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript

github.com

21–30 of 148 posts

Re: Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript

#21

Nice idea ! How do you handle duplicates ?

[Assuming you mean duplicate HN submissions] 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.

Blended comments section sounds great! Good work.

Re: Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript

#24
post #18
post #5

Firefox has a new Split View that's useful for this, but you still have to left click and select open in split view (M) then click the link. You also used to be able on some browsers to craft a link that was href="tab1.html|tab2.html", no idea if that's still a thing or if it was limited to "home page" setting.

I accidentally closed Firefox’s last “you’ve just updated” screen which probably mentioned Split View. Couldn’t re-open it. It’s not this https://www.firefox.com/en-US/firefox/153.0.1/releasenotes/ , know if it’s mirrored?

It looks like it was added in 149

https://support.mozilla.org/en-US/kb/split-view-firefox

Re: Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript

#25
post #12

Earlier quoted context omitted.

Tampermonkey isn't better than using a Chrome extension, but it's less friction for a developer to build and distribute a cross browser script. If they build it as an extension, they need to target multiple browsers and get it deployed to the Firefox/Chrome web store.

I love userscripts. Aren't we all using https://github.com/violentmonkey/violentmonkey now though? thought I realize "if it works it works", https://github.com/Tampermonkey/tampermonkey

I did something similar 2 days ago with ViolentMonkey if you only want to check high-level discussion without any new tabs at all.

https://greasyfork.s3.us-east-2.amazonaws.com/sokzpb2ztmatlh... (screenshot)

https://greasyfork.org/en/scripts/588721-hacker-news-comment...

I'd improve it by counting top level comments next to items but that would slow it down. Still need to make some slight changes like closing sidebar by re-clicking orange (beyond just right-clicking sidebar.)

It's very fast and speeds up thinking overall.

Re: Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript

#27

I think the amount of upvotes you’re getting here suggests that it might be worth building a proper browser extension for this! Would you be interested in making one?

Open to it. For now I’m going to keep it as a userscript and build out some of the interesting ideas people have suggested here. If it keeps growing, a proper extension would definitely make sense.

Re: Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript

#28

Nice. I’ve been using the new split tabs in Chrome. Works perfectly. I believe Firefox had this first?

The submission is cool because it opens the comments even if you just happen upon some article that also happens to have a HN discussion. That said, when I read the headline I thought the same thing, “uh, right click, open in split view?” When that feature landed in Chrome my first use case was exactly this.

Re: Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript

#29
post #5

Firefox has a new Split View that's useful for this, but you still have to left click and select open in split view (M) then click the link. You also used to be able on some browsers to craft a link that was href="tab1.html|tab2.html", no idea if that's still a thing or if it was limited to "home page" setting.

alt/option-clicking on the desired tab works too

Re: Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript

#30
post #10
post #6

This is slick. 2 things. 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 ca…

is this better than using a chrome extension? i guess people need to have tampermonkey installed and so thats a slightly higher barrier to entry? i wonder if chrome would be interested in "sherlocking" userscripts so that we can distribute non security nightmare code easier.

In addition to the advantage of explicitly specified capabilities mentioned by others, I'd say a userscript is also much more durable and low-maintenance than a Chrome extension. This is coming from someone who's written an extension for personal use before, and had to jump through a million hoops with Chrome Dev just to give the browser permission to run my own code that I wrote myself, and that's to say nothing of the whole mess with manifest v3 as well. Throughout the entire time I've been able to happily keep using userscripts written by myself or others with 0 maintenance required.
Post reply on HN