Back to browse
Userscript that shows HN submission count for any page

Userscript that shows HN submission count for any page

by overflowy·Apr 17, 2026·1 point·1 comment

AI Analysis

●●SolidNiche GemCozy

Shows HN submission count inline on any page, not just HN itself.

Strengths
  • URL canonicalization handles edge cases: query params, fragments, www., trailing slashes
  • Works on any webpage, not just HN — extracts submitted URL from HN item pages
  • Graceful error handling with 8-second timeout and fallback menu labels
Weaknesses
  • Narrow audience — only HN power users will find this genuinely useful
  • Requires Tampermonkey or similar userscript manager, adds friction
Target Audience

Hacker News power users and researchers

Similar To

HN Search extensions · Tampermonkey helper scripts

Post Description

On page load, it canonicalizes the current URL (strips query params, fragment, www., trailing slash, and protocol) and queries the HN Algolia API, then updates the menu label with the result count (e.g. "3 results" or "No results"). If you're already on a news.ycombinator.com/item page, it extracts the submitted URL from the post and searches for that instead.

Similar Projects

Productivity●●Solid

3sessions – A menu bar timer that counts down your free/work time

It drops a single SwiftBar plugin into your menu bar and cycles live countdowns for 'before work', 'work', and 'after work' sessions with a one-line curl + install.sh — neat for anyone already running SwiftBar. Smart, low-friction approach: no heavy app to run, just the plugin refresh loop that keeps the timer visible. It's useful and well-scoped, but not groundbreaking — I'd like quick options for custom session lengths and audible alerts.

Niche GemShip It
imvms205
103mo ago
Developer Tools●●●Banger

Dbcli – Database CLI Built for AI Agents

One-shot database profiling beats five MCP tool calls; zero token overhead for agents.

Solve My ProblemShip ItCozy
justvugg
103mo ago