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

51–60 of 148 posts

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

#52

Have you considered modifying it to trigger on every HNews click as well as with as manually triggered? As it is now it leaks browser URLs + query string + fragments to hn.algolia.com since it queries it on every single page you visit. At the very least it might be good to sanitize the queries by restricting to origin + path?

Yep, looking into it.

https://github.com/twalichiewicz/HNewhere/issues/2

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

#54

The mobile default seems important here: opening the panel collapsed, then preserving its size per site, could keep the first article read predictable while retaining quick access to the discussion.

I modified the script to start collapsed. Code is in this issue if you would like to try it: https://github.com/twalichiewicz/HNewhere/issues/5

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

#56
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.

Yeah Firefox split view is useful for this.

If any of those vim extensions support link+split, and allow interaction with splits that would be even better.

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

#57
post #55

I don't understand the problem space. Meaning I don't understand what this solves. My use case, even on phone: View HN Right click link to open in new tab OR: tap/hold a link then open I a new window. What problem is this solving?

Or, open the comments and then click the title link. Then click back when you’re done reading the article, so you can read the comments. That’s my preferred mobile workflow anyways.

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

#58
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.

Left click?

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

#60
This is cool. Don't want to minimize that.

That said, in case it helps anyone else, my usual flow is to middle-click (by clicking my mouse wheel) both the link and the comments link which opens each in a new background tab (at least in Chrome). Hopefully that's lower-friction than what you were doing with the two tabs.

Post reply on HN