Show HN: Browser Extension to Refine the HN Experience
github.com
github.com
If you are already using the extension, you can see the "[op]" beside my username too! ;)
There are many extensions out there that add quite a few features to Hacker News, but they also always do one thing, which I have realised, is a slippery slope: changing the minimalistic design and style of Hacker News.
I created this extension with one thing in mind: I am NOT going to mess around with the overall design or style of Hacker News. It's sacrosanct.
There are quite a few feature additions and interface tweaks that are implemented, a few of the important ones being:
* Reply to a comment or edit/delete your comment without leaving the page (do it inline)
* Navigate through items and comments using your keyboard (vim keybindings)
* Sort/hide stories and auto-refresh periodically
...and many, many more. The GitHub README details all of them.
The extension is available on both Chrome and Firefox. Hope you all enjoy it!
I'll give this new add-on a spin to see how things go.
[0]: Then again, CloudFlare gives me an access denied upon opening hn.algolia.com as well.
[1]: Interestingly, the extension suggests "show-user-info-on-hover" to be disabled!
comments-ui-tweaks
show-item-info-on-hover
show-top-leaders-karma
show-user-info-on-hover[1] - https://addons.mozilla.org/en-US/firefox/addon/darkreader/?s...
I wish you would do something about the voting buttons and the expand/collapse buttons. They're way too tiny and way too close to other elements in the default scheme used by HN. This is a big deficiency I see with the default HN interface, which makes it less usable as well as less accessible.
Edit: I also see a 3/28 counter and a spinning icon on the top left of the page that doesn't change regardless of which post I'm browsing. Sometimes it disappears if I navigate to another post or page, but it looks like it starts with 0/28 for every post. [This is on Brave right now; no issues with connectivity or connection speed; dropdown menu from the username works.]
If you're using Firefox, you can install it here: https://addons.mozilla.org/en-GB/firefox/addon/sihn/
The counter "counts" the feature that have been loaded. It looks like you are stuck on the "highlight-unread-comments" feature. Could you open the console and check for error messages there?
This is no exception.
Anyway, I'd love to be able to just use someone else's extension :) Mine makes up/downvote and collapsing buttons easier to hit on mobile, links to parent/root comments, and rewrites Google AMP links to regular links. It's open source, so feel free to incorporate those features in yours: https://gitlab.com/vincenttunru/sihn
Hide Posts Above
It hides all posts in the feed above the selected post.
This is a feature in the reddit iOS Apollo app. This not only makes the site less stale, but also might help alleviate “frontpage upvote bias” where great items that are not on the first couple pages don’t get many views and upvotes.
Nevertheless, in the "custom styles" input in the popup, you enter the following to blur out all points, comments etc:
span.score,
td.subtext a:last-child {
filter: blur(3px)
}Just copy the style he provides above, paste it in the custom style field, and it will blur the "integer counts" just like you asked!
What did you mean when you said it would be too “aggressive, if I get what you’re saying” - which I do not.
(Also, that CSS exposes a coding bug in the HN site re: counts, at least as of a month ago when I last tested something like it.)
Slightly off-topic, but why not Safari? Is it harder to program plug-ins than the others? Not enough market share? Just don't have the hardware?
Safari uses its own Safari Extensions JS, so while it may be possible to share some resources (e.g. images, HTML content), the js work needs to be undertaken as a separate development project, unless you use/build a polyfill.
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...
Really wish I could make that open source if no one is using it lol I use it personally to follow people on HN which post interesting comments (still works after 4 years with no edits)
(If by folding you mean collapsing comments, that was implemented separately, as part of HN proper.)
Perhaps adding the <div> on load with a static height and then filling it with the filters? Another option could be to allow the user to show / hide the bar and remember the setting. That way, one could open it when needed only and it wouldn't flicker on every load.
Same thing for the "toggle all comments" button in a thread.
I get nauseous with such flickers. I really like this extension but won't be able to use it unless this changes.
Side note if author/host is reading: can you redirect HTTP to HTTPS? :)
What are possible alternative mappings to make it more intuitive to non-developers?
Arrows.
But for the other camp - the Emacs people - n and p would be best :).
Since this is a browser extension, it's almost completely written in JavaScript only. You can check the entire code on the GitHub repo itself! Feel free to email me anytime :)
I noticed that the extension is inspired by Sindresorhus. I think he's totally nailed the way to architect and structure extensions now. Especially if you look up a lot of guides on how to build extensions, they really don't tell you anything about how to include npm packages, or distribute the extension in an automated way. Refined github does all of this in a really clear way that, I think, works very well. I recently used it's structure to rewrite an extension of mine and it helped so much.
sold!
Really good job.
Editing comments is a bit funny though: after clicking Update it takes me to the standard update page on HN instead of staying inline (on FF).
To open links in new tabs, but in the background, and to communicate between the popup and active instances of Hacker News, the extension requires the "tabs" permission.
All code is completely open-sourced on the GitHub repository, too!
Edit: Actually it looks like there is already a HNES [0]
[0] https://chrome.google.com/webstore/detail/hacker-news-enhanc...
Removes all links from wsj, nytimes, bloomberg, etc.