Ask HN: Is there a browser extension for opening all links on HN in new tabs?
By this I mean: add an option to the context menu of the browser that says "open all links on this HN page".
And as a result of that, 25 tabs get opened, that being all the links on the page.
That's my use case: I want to open up all the links, at the same time, each in their own tab, and I can just CTRL+TAB through them as I please.
I'm just asking here on the off-chance that it exists but I somehow could not find it. If it doesn't exist yet, I may well have to write it myself, which I frankly hope doesn't take too much effort. Let's hope there's some decent boilerplate for this, that can be easily found.
Thanks in advance for any help.
10 comments
[ 4.7 ms ] story [ 33.4 ms ] threadPerhaps this is a good starting point:
https://gist.github.com/toastal/01c2387456ad2e6385f4
Even with the delay one or two of the thirty requests would usually hit the rate limit, but this was faster than slowing the loop down with a larger delay in terms of how I used the script. It was kludge coded but good enough for my needs.
Note that “all the links” is not all the links. There are flag and vote and user account and site history and two discussion links for the typical front page story. Plus the header and footer links and the login or logged in links.
1. Create a new bookmark to any page, name it whatever.
2. Right click the bookmark -> Properties
3. Replace the "Location" field with:
While on HN if you click the bookmarklet, it will open all of the links in a new tab.Is anyone worried about opening 30 random-ish links? I wouldn't do it...