This is a fork of etcet/HNES updated to Manifest V3 so it keeps working in current Chrome (the original was Manifest V2, which Chrome no longer supports). What changed:
manifest_versionbumped to 3.- The persistent background page was removed. Its storage (user tags, upvote
tallies, per-thread state) moved from the background page's
localStoragetochrome.storage.local, which the content script now reads/writes directly. chrome.extension.getURL→chrome.runtime.getURL.web_accessible_resourcesconverted to the MV3 object form.- Added an options page (Extension options on
chrome://extensions) to export/import your data and migrate it from the old MV2 extension — see Migrating your data.
This fork targets Chrome/Chromium (Chrome, Edge, Brave, Opera). The Firefox build is not maintained here.
A Hacker News extension for Chrome which changes lots of things.
- Completely new style
- Easy access to all pages
- Enhanced comment threads
- Collapsible comments
- Inline commenting
- Link to parent
- Display all comments on paginated threads
- Highlight the original poster
- Show and highlight new comments since you last view a thread
- Highlight links once clicked to more easily identify what you've recently visited
- Redirect back to the front page upon hitting an expired link
- Display how many times you've upvoted each user
- Graphs on polls
- Clickable links in self posts and on users profile pages
- New smooth and scalable up & down vote arrows
- Keyboard controls on index pages:
- j - Next item
- k - Previous item
- o - Open story
- l - Open story in a new tab
- p - View comments
- c - View comments in a new tab
- b - Open both the comments and the story in new tabs
- Tag users
- Clone this repo.
- Open
chrome://extensionsand enable Developer mode (top-right). - Click Load unpacked and select this folder.
- Visit https://news.ycombinator.com — HNES should apply immediately.
Run ./zip.sh to produce ../HNES-chrome.zip (uses zip if available,
otherwise falls back to Python). Upload that zip in the
Chrome Web Store Developer Dashboard.
A republished extension gets a new extension ID, so Chrome keeps its data
separate from the old MV2 version — your tags and upvote counts will not carry
over automatically. To bring them across, open the new extension's options
(Extension options on its chrome://extensions card) and follow the
on-page instructions, which walk you through exporting from the old extension
and importing here.
- Options page
- Put search in a better place + ajax auto-complete
- Do something with un-threaded comment lists (e.g. best comments)
- Make profiles prettier
- Allow user to highlight friends (ala RES)
- Show dead/grayed-out comments on mouse hover (or maybe a button)
- Test / make it work when user can see downvotes
I don't have enough karma to test down votes, creating polls, or topbar color
I do not test this extension with any other extensions active on Hacker News so I cannot guarantee that it will play nice. If you come across an apparent bug please make sure that any other extension are disabled or please mention which ones are enabled in the bug report.
MIT License, see LICENSE
Wayne Larson for hckrnews.com and permission to use code from his extension which displays new comments.
@jarques for his HN+ extension (https://github.com/jarquesp/Hacker-News--) which was used as a starting point for this project.
Thanks to Samuel Stern (hatboysam) for the inline commenting.
Thanks to Vishnu Rajeevan (burntcookie90) for adding more keyboard shortcuts.
Thanks to Lewis Pollard (lewispollard) for highlighting a story once you've opened it and redirecting to the front page when you hit an expired link.
Thanks to Dean Harding (codeka) for replacing the up/down vote images with CSS buttons.
Thanks to Jiahua (jwang47) for his fork of Már Örlygsson's (maranomynet) linkify JQuery plugin.
Thanks for Dan Harper (danharper) and to Will Ridgers (wridgers) for some CSS fixes.
Thanks for Nuno Santos (nfvs) for styling the login page and other fixes.
Thanks to alanc10n for fixing issue 66
Thanks to sglantz for adding support for topcolor, issue 52
Thanks to ibejoeb for fixing the collapsible comments, improving comment performance, and many other improvements.
Thanks to SCdF for a bug fix.
Thanks to MaximeKjaer for adding the ability to tag users.
Thanks to c17r for a fix to the new comment highlighting.