一个轻量级的用户脚本,可在任何文章页面的侧边栏中嵌入 Hacker News 讨论。

Stars

173

7 天增长

暂无数据

Fork 数

6

开放 Issue

9

开源协议

MIT

最近更新

2026-07-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它无需离开当前页面即可无缝集成 HN 社区评论,同时利用 HN 接口和 Algolia 搜索 API。

适合谁使用

  • 经常阅读科技文章并关注 HN 讨论的用户
  • Hacker News 重度用户
  • 希望用社区上下文增强浏览体验的读者
  • 对用户脚本示例感兴趣的 Web 开发者

典型使用场景

  • 在阅读文章时直接查看 HN 评论,无需切换标签页
  • 检测当前文章是否已在 HN 上被讨论过
  • 将可折叠的评论线程与原文并排浏览
  • 通过直接回复链接快速参与 HN 讨论

项目优势

  • 依赖极简,仅需用户脚本管理器
  • 侧边栏可调整大小并折叠,便于灵活阅读
  • 通过 Algolia 搜索自动匹配 HN 故事
  • 采用 MIT 开源许可证,便于采用和修改

使用前须知

  • 需要 Tampermonkey、Violentmonkey 或 Userscripts 等用户脚本管理器
  • 依赖 HN 和 Algolia 外部 API,可能变动或存在速率限制
  • 仅当当前文章存在匹配的 HN 故事时才有效

README 快速开始

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.

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

  1. Install a userscript manager:

    • Userscripts (Safari)
    • Tampermonkey
    • Violentmonkey
  2. Install or paste HNewhere.js

  3. Visit an article with a Hacker News discussion.

Requirements

  • Browser with userscript support
  • Access to:
    • Hacker News API
    • HN Algolia search API

License

MIT

项目描述

A lightweight userscript that adds Hacker News discussions to any previously submitted article.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

react
精选
react GitHub avatar

react

React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.

Web 开发前端框架
246,741
tandpfun
精选
tandpfun GitHub avatar

wardrobe

A GPT‑image powered app that extracts individual garment cutouts from photos, organizes them into a digital wardrobe, and generates modeled outfit previews.

JavaScript
1,570
mshumer
精选
mshumer GitHub avatar

Claude-of-Duty

A browser-based first-person shooter built entirely with procedural generation and orchestrated AI agents, featuring 55k lines of Three.js/WebGL2 code and no art assets.

AI 与机器学习AI 智能体
1,234