Settings

Theme

Show HN: Userscript that shows HN submission count for any page

gist.github.com

1 points by overflowy 21 days ago · 1 comment · 1 min read

Reader

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.

overflowyOP 21 days ago

Video of how it works: https://cleanshot.com/share/bKjjp0WV

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection