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

Posted by overflowy 8 hours ago

Counter1Comment1OpenOriginal

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.

Comments

Comment by overflowy 8 hours ago