News for hackers. Stuff that matters.
Re:Show HN: I was tired of opening 2 tabs for every HN link,... by jstrieb on Wednesday July 29, 2026 @03:17AM (#49094342)
If you use Firefox (and will pardon me plugging my own project), you might be interested in a version of this I made a while ago as a browser extension:

https://github.com/jstrieb/hackernews-button

My project is somewhat different from the userscript in that mine uses Bloom filters to check whether a link has been submitted, whereas this userscript sends every page you visit to the Algolia search API. Using Bloom filters means that there are no external requests unless you actually press the button. My project also doesn't show the comments in a sidebar.

Having a link to past discussions, whether using this userscript or my extension, is useful not only to read the comments for a page you're browsing, but also to find good sites that haven't been submitted yet!

Re:Show HN: I was tired of opening 2 tabs for every HN link,... by avadodin on Wednesday July 29, 2026 @05:53AM (#49095311)
I don't understand what the Bloom filter is supposed to achieve here. Can you elaborate?
Re:Show HN: I was tired of opening 2 tabs for every HN link,... by danbruc on Wednesday July 29, 2026 @06:23AM (#49095553)
Not the author, but this prevents leaking all URLs you are visiting to agolia. Instead of asking Was this URL submitted to Hacker News? you ask Which URLs have been submitted to Hecker News?, store that in a Bloom filter, and then use the Bloom filter to answer the question Was this URL [likely] submitted to Hacker News?
Re:Show HN: I was tired of opening 2 tabs for every HN link,... by avadodin on Wednesday July 29, 2026 @06:52PM (#49104127)
Is the story being submitted a common feature like dupe detection or maybe unsubmitted link detection?

How does the filter know anyways?

If it is provided by the package, one could imagine adversarial scenarios where "high interest" submissions are excluded from the filter(maybe even make a custom one each time that somehow lands them in a collision) so Algolia knows exactly what it wants to know about you.

Probably, I should have read more into both of the projects before asking.

Re:Show HN: I was tired of opening 2 tabs for every HN link,... by avadodin on Thursday July 30, 2026 @03:55AM (#49107152)
I realized a collision wouldn't help because the client would just avoid sending a request as in the normal case.

The malicious filter would have to conspicuously avoid tracking the URLs of interest.

Re:Show HN: I was tired of opening 2 tabs for every HN link,... by jeremyjh on Wednesday July 29, 2026 @06:35AM (#49095630)
I like the bloom filter idea - I agree I don't want every URL I visit to be sent to Algolia. I really like this project's UI though - automatically opening it in a pane so I don't have to leave the site to see comments is really nice.