Hacker News Filter & Sort

By jason · 6 months ago · 50+ installs

Add a filter panel to filter posts by title/URL text, min points and min comments. Also add option to sort by default, points, or comment count

Key Highlights

  • Filter Hacker News posts by title or URL text
  • Set minimum points and minimum comments thresholds
  • Sort visible posts by points, comment count, or default order
  • See a live status count of visible posts versus total posts

Details

This tweek adds a sticky filter panel at the top of news.ycombinator.com with controls for text search, minimum points, minimum comments, and sorting. You can match text in post titles or URLs, then choose to view results in the default Hacker News order or reorder the visible posts by points or comment count.

The panel also shows how many posts are currently visible out of the total on the page, with Apply and Reset buttons for quick changes. Sorting only changes the order of post entries, while keeping the More link and footer untouched.

Runs on

1 site

news.ycombinator.com

Developer

Tweek Code

286 lines ·

Hacker News Filter & Sort for news.ycombinator.com | Tweeks