<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github---twalichiewicz-hnewhere-a-lightweight-userscript-that-adds-hacker-news-discussions-to-any-a-sdc8fnivs" -->

---
title: GitHub - twalichiewicz/HNewhere: A lightweight...
description: HNewhere is a lightweight userscript that embeds Hacker News discussions as a resizable sidebar on any article page. It automatically detects matching HN...
canonical: https://daily.dev/posts/github---twalichiewicz-hnewhere-a-lightweight-userscript-that-adds-hacker-news-discussions-to-any-a-sdc8fnivs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub - twalichiewicz/HNewhere: A lightweight userscript that adds Hacker News discussions to any article. | daily.dev
og:description: HNewhere is a lightweight userscript that embeds Hacker News discussions as a resizable sidebar on any article page. It automatically detects matching HN...
og:url: https://daily.dev/posts/github---twalichiewicz-hnewhere-a-lightweight-userscript-that-adds-hacker-news-discussions-to-any-a-sdc8fnivs
og:image: https://api.daily.dev/og/posts/SdC8FNIVS.png
og:image:alt: GitHub - twalichiewicz/HNewhere: A lightweight userscript that adds Hacker News discussions to any article.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub - twalichiewicz/HNewhere: A lightweight userscript that adds Hacker News discussions to any article.

**[Hacker News](https://daily.dev/sources/hn)** · 1 min read · 1 upvotes · 0 comments

## Summary

HNewhere is a lightweight userscript that embeds Hacker News discussions as a resizable sidebar on any article page. It automatically detects matching HN stories via the HN API and Algolia search, loads comments inline, and supports collapsible threads and reply links. Requires a userscript manager like Tampermonkey, Violentmonkey, or Safari's Userscripts.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/twalichiewicz/HNewhere>

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 131 comments across hackernews (as of 2026-07-29).

**TL;DR:** The community is broadly enthusiastic about the userscript, recognizing the universal pain of opening two tabs per HN link, while also debating whether browser split-view features or window managers already solve this and raising minor privacy/UX concerns.

**Sentiment:** 65% positive · 25% mixed · 10% skeptical

**The case for**

- Feature 2 (surfacing HN discussions on arbitrary articles) is seen as genuinely novel and useful beyond just the two-tab problem.
- Userscripts are praised for being easier to audit, cross-browser, and lower-maintenance than full browser extensions.
- The script's ability to show HN comments on any page you land on—not just ones you opened from HN—is highlighted as a key differentiator over split-view workarounds.
- Community iteration was fast: collapsed-by-default on mobile and blended multi-submission views were added during the thread itself.

**The pushback**

- The script sends every URL you visit to Algolia's search API, leaking browsing history including query strings and fragments.
- Browser split-view (Chrome, Firefox, Vivaldi, Edge) already covers the core two-tab use case for many users, reducing the script's novelty.
- The floating toggle button overlaps UI elements on some sites (e.g., ChatGPT's menu).
- Comments in the sidebar can't be voted on, limiting full HN participation.
- Barrier to entry (requires Tampermonkey/Violentmonkey) is higher than a proper browser extension for non-technical users.

**By community**

- hackernews (positive): Commenters widely relate to the two-tab pain and appreciate the script, while actively debating privacy trade-offs, window-manager philosophy, and browser-native alternatives.

**Hottest debate:** Whether tabs should be managed at the application level (browser extensions, tree-style tabs) versus at the OS/window-manager level.

**Open questions**

- Will the URL-leaking to Algolia be properly fixed, or should the script adopt a Bloom-filter approach like the hackernews-button extension?
- Would a proper browser extension with a settings UI be worth building, or is the userscript format sufficient long-term?
- Could the split-view be made to open article and comments side-by-side automatically from the HN listing page?

**Highlights**

> 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!
> — [jstrieb on hackernews · 2 comments](https://news.ycombinator.com/item?id=49094342)

> 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?
> — [abudooboo on hackernews · 1 comments](https://news.ycombinator.com/item?id=49092758)

> Windows (IE) tried to give WM visibility into tabs long ago, but this quickly revealed a problem: if tabs are now also separate windows, they enter the Alt+Tab ring, and suddenly you're Alt+Tabbing between 5 applications and dozens of open tabs. N=1, as a tab hoader, I absolutely hated it (it also made Alt+Tab itself very slow to show and cycle). The general problem is that having WM handle in-app tabs means the WM has to support every single hare-brained idea about meaning and role of tabs that app developers invent, which is infeasible. Even with browsers - until recently, you had like just two types of tabs: regular tabs, and porn-mode (er, "private browsing") tabs. Then came "account containers" or whatever it was in Firefox. Then came tab groups, reading groups, and tons of other nonsense. OTOH, I can dream of an ideal world where the OS manages all tabs for all apps via combination of Sidebery (better "tree style tabs") and a tiling WM.
> — [TeMPOraL on hackernews · 1 comments](https://news.ycombinator.com/item?id=49094947)

> 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.
> — [adrianwaj on hackernews](https://news.ycombinator.com/item?id=49091537)

> Crunched a bit and got a first pass of this working. https://github.com/twalichiewicz/HNewhere/releases/tag/v1.4.... You can test with https://www.apple.com/iphone/
> — [twalichiewicz on hackernews](https://news.ycombinator.com/item?id=49092735)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=49090607) · 88 points · 131 comments

## Similar posts on daily.dev

- [Hacker News for macOS: A native macOS client for Hacker News, built with SwiftUI](https://daily.dev/posts/hacker-news-for-macos-a-native-macos-client-for-hacker-news-built-with-swiftui-bex7xqvxy) · Product Hunt · 0 upvotes · 0 comments
- [Make Hacker News Sweeter](https://daily.dev/posts/make-hacker-news-sweeter-jpiuels77) · Hacker News · 1 upvotes · 0 comments
- [IronsideXXVI/Hacker-News](https://daily.dev/posts/ironsidexxvi-hacker-news-vhjak5jml) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#devtools](https://daily.dev/tags/devtools)

[View this post on daily.dev](https://daily.dev/posts/github---twalichiewicz-hnewhere-a-lightweight-userscript-that-adds-hacker-news-discussions-to-any-a-sdc8fnivs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GitHub - twalichiewicz/HNewhere: A lightweight userscript that adds Hacker News discussions to any article.","url":"https://daily.dev/posts/github---twalichiewicz-hnewhere-a-lightweight-userscript-that-adds-hacker-news-discussions-to-any-a-sdc8fnivs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github---twalichiewicz-hnewhere-a-lightweight-userscript-that-adds-hacker-news-discussions-to-any-a-sdc8fnivs"},"datePublished":"2026-07-28T23:29:04.253Z","dateModified":"2026-07-29T12:04:36.911Z","description":"HNewhere is a lightweight userscript that embeds Hacker News discussions as a resizable sidebar on any article page. It automatically detects matching HN...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1949233461746dc6fd04a029d6831aff?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1949233461746dc6fd04a029d6831aff?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/github---twalichiewicz-hnewhere-a-lightweight-userscript-that-adds-hacker-news-discussions-to-any-a-sdc8fnivs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,devtools","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"GitHub - twalichiewicz/HNewhere: A lightweight userscript that adds Hacker News discussions to any article."}]}
```

