Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript
摘要
这是一个名为 HNewhere 的轻量级用户脚本,它能在浏览任意文章时自动检测对应的 Hacker News 讨论,并在侧边栏加载评论,无需离开当前页面即可参与讨论。脚本支持可调整大小的侧边栏、折叠评论、直接跳转回复,并依赖 Tampermonkey 等用户脚本管理器,通过 HN 官方 API 和 Algolia 搜索 API 工作,以 MIT 协议开源。
荐读理由
这个脚本本身是一个可直接安装使用的工具,能减少在HN上浏览文章时的操作成本,但它的功能局限于HN生态,对AI工程或创业项目的直接迁移价值有限,更多是提升个人信息消费效率。
原文
HNewhere
A lightweight userscript that adds Hacker News discussions to any article.
HNewhere detects Hacker News stories, loads comments into a sidebar, and lets you browse discussions without leaving the page.
Install
Requires a userscript manager such as Tampermonkey, Violentmonkey, or Userscripts.
Features
Opens HN discussions beside articles
Automatically detects matching Hacker News stories
Tracks links opened from Hacker News
Resizable sidebar
Collapsible comments
Preserves sidebar width
Reply links open directly to HN
Install
- Install a userscript manager:
Userscripts (Safari)
Tampermonkey
Violentmonkey
Install or paste
HNewhere.user.jsVisit an article with a Hacker News discussion.
Requirements
Browser with userscript support
Access to:
Hacker News API
HN Algolia search API
License
MIT
这条对你有帮助吗?
