Git Product home page Git Product logo

hnes's Introduction

Warning: Unmaintained

I don't have much desire to keep maintaining this project, so please don't create pull requests for any new features or anything which is not a bug or regression.

Hacker News Enhancement Suite

A Hacker News extension for Firefox and Chrome which changes lots of things.

Features

  • 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

Firefox AMO link

https://addons.mozilla.org/en-US/firefox/addon/hnes/

Chrome web store link

https://chrome.google.com/webstore/detail/bappiabcodbpphnojdiaddhnilfnjmpm

TODO

  • 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

Things I can't test

I don't have enough karma to test down votes, creating polls, or topbar color

Compatability

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.

License

MIT License, see LICENSE

Thanks

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.

hnes's People

Contributors

alanc10n avatar bsloane1650 avatar c17r avatar cobbal avatar danharper avatar david-cako avatar etcet avatar gurik avatar hatboysam avatar ibejoeb avatar jonafato avatar jswrenn avatar kiddico avatar kotoole1 avatar lewiji avatar lookfirst avatar masongup avatar maximekjaer avatar nfvs avatar ogier avatar plar-work avatar rnhurt avatar scdf avatar sglantz avatar shazeline avatar uzegonemad avatar zastrowm avatar zszugyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hnes's Issues

Comments not posting

I can write out a comment and hit submit but then it never shows up anywhere. This seems to be a new issue within the past days/weeks?

Inline replies are broken

When you click reply, HNES creates an inline reply box. When I try to submit a new post from this, it doesn't appear on the page, and I can't use back or anything to get the text back - it's just gone. Replying from the box at the top of an item page - either a full thread, or an individual comment - works fine.

I'm getting this behavior on Chrome stable on Mac OS and Windows 7.

I might take a look at this myself, if you're open to a pull request.

domains have last char truncated

...ight (arxiv.or)
Lisp: A Cult I Almost Joined (2005) (fluff.inf) by rlander

On Sun Jan 18 18:52:50 PST 2015

I noticed that extracted domain has the last character removed.

HNES seems to break randomly for a few days then fix itself

Every now again HNES seems to break. The first hint of this happening is when the background colour changes from HN's usual "mustard" tint to a much lighter, almost white colour. Then eventually this happens:

http://imgur.com/d6dnfRg

And the extension is more or less unusable.

I'm running the latest vesion (1.2.0.14). If I disable the extension for a few days then re-enable, everything seems to right itself.

I'm not sure if HN tinker with their CSS or table layout periodically causing the extension to trip up. I did try to debug this but front end hacking is not my forte.

I'm running with Windows 7 Ultimate x64 and Chrome 32.

Google Webcache URLs

So many times websites are getting slashdotted and the top comment is simply "web cache version: ". I'm pretty sure the API is simply http://webcache.googleusercontent.com/search?q=cache:http://example.com/.

It would be nice to have this link available somewhere on the UI. I'm not sure where.

Make All URLs Clickable

In some places on the actual HN site (like profiles and text submissions) URLs are not anchor tags. It would be great to have HNES convert all URLs into real links.

Replace the image-based up/down buttons with CSS ones

The image-based vote buttons look horrible when you zoom in (I have HN zoomed in all the time due to the tiny font size). I've written a very small patch to HNES which replaces the image-based buttons with CSS-based ones that scale properly when you zoom in.

Downvotes counted as upvotes

When I downvote a comment, it just increments the counter next to their username. It's a count of how many times I've expressed any opinion about that user.

(I know, untestable for you for now.)

Comments page blank

https://news.ycombinator.com/item?id=5552381

That page turns up completely blank for me - all other comment pages are fine. Not sure what the specific issue is with that one. Might be able to look into it later...

EDIT: looks like for whatever reason the style="visiblity: visible" attribute is not getting added to the <body> tag. When I add that, it's fine.

EDIT2: Aha! the username of the poster of that item happens to be 'tocomment'. So the jquery selector $('.subtext a:contains(comment)') on line 145 brings the username anchor tag back as well as the "x comments" one, and so the .match(/id=(\d+)/) on line 154 fails to finds no digits (\d) to match, so page_id is null, which means the if-statement at 155 throws without even evaluating. Changing the line to "if (page_id && page_id.length)" should fix it.

Show current page item numbers

In some way, I'd like to see the 1-30, 31-60, etc. Could be a single element at the top of the page (e.g., Showing 31-60) or next to each item as on the non-extension using default view.

How to use on Firefox?

Hey there, I use this a lot on Chrome - but I was wondering if it's possible to use on Firefox?

Age of posts not shown

When I install HNES it's front page doesn't show the age of posts (e.g. "6 hours ago") anymore. However, that's some very useful information I would still like to see.

Point numbers on index page not aligned/properly padded

The point numbers on the index page are not aligned properly for me. I'm running Chrome version 23.0.1251.2 dev-m.

Here's a screenshot:
http://i.imgur.com/WveHe.png

And to be honest, I'd rather have the point values to the right side of the link titles anyway since I trust HN ranking and do not look at the point values very often (having the comment numbers is great, however).

Make login prettier

The login page is ugly as sin, but functional. Could be more conforming to the overall style.

Comments are swallowed if you aren't logged in

If you write a comment when you aren't logged in and hit submit, then the comment body disappears and you can't recover it. This may also happen in other failure scenarios I haven't encountered, but this is the common one that has bitten me multiple times now. It's really disheartening if you've written a long and detailed comment and it was lost, and you have to either rewrite it or stop trying.

Many forms will either show an error message ajaxily inline with the comment, show the form again with the original message filled in, or at the very least allow you to use the back button to recover the form fields. For example, the Reddit Enhancement Suite has a nice behavior where even if you hit "Cancel" while replying to a comment, if you then hit "Reply" again it brings up the filled-in form field.

Anyways, is it possible to ensure that the comment submission was successful before hiding the comment field, so that we stop losing work?

Support saved profiles

I'd love to be able to track certain users on the site. I'm not really sure what the UX would be, but potentially it could be like the homepage. It could list the users that I've tracked, show how many new comments they've made, show their karma, etc.

I'm interested in working on this, but would want to discuss the UX first.

infinite scroll

just started visiting hacker news - been using reddit for ages and was looking for infinite scroll

expected this to come with the enhancement suite, but seems its not available. Couldn't find any previous issues talking about it either.

might be interesting to add:
https://github.com/honestbleeps/Reddit-Enhancement-Suite/blob/5751e2cbda3df81e5915546b241a2362ca1a7176/lib/modules/neverEndingReddit.js

https://github.com/gabrielecirulli/hn-special/blob/43ef6f781cdf8bc996bab4c3a5f996a6d24e93de/lib/modules/infinite_scrolling.js

Upvote links missing on front page

The upvote links that normally appear alongside entries on the front page are no longer displayed. This is a vital part of the site, and I don't always venture into the comments section for a post, which is the only place the enhancement suite still provides this feature.

Broken /news2

The /news2 link which occasionally appears as the target of the 'More' link is borked. Make it the same thing as the /x?fnid= links.

Alignment bug when viewing posts without an upvote arrow

Some posts don't have an upvote arrow, and those posts seems to confuse HNES:

untitled

Browsing through the code, this may have to do with this line, seemingly intended to only apply to /submitted, but (from what I can tell) apparently applied to just about everything.

Note that this also applies to the submissions page, which makes me wonder whether the above code was intended for a previous version of HN:

untitled

Keyboard shortcuts not disabled in search box

Went to the search box at the bottom, typed in 'jo' (intending to type in 'jobs report'), did not press enter, and I was taken to the first link on the page. So effectively you can't search for anything with a 'j' followed by an 'o'.

(First link happened to be the Steve Jobs tribute - at first I thought it was some sort of Easter egg!)

Comments not posted

For the last few days, comments are not being posted with the extension enabled. After disabling the extension, everything works.

Slight visual tweaks

I think to improve readability, a little less line spacing on comments. Even on my 15" screen, I can usually only fit a couple comments on screen at once, which makes it harder to follow.

I'd also remove the shadow on the header :).

Make comments links' clickable area wider

Right now the comments links are too small (they're only the size of the number of comments itself), and thus hard to hit.

Since there is a lot of non-clickable space between the left margin, the number of comments and the score, perhaps making the linkable area wider would help (similar to what http://hckrnews.com/ does).

Blank HN, console error

Uncaught TypeError: document.getElementById(...).firstChild.getAttribute is not a function
    HN.setTopColor @ hn.js:1289
    HN.rewriteUserNav @ hn.js:1186
    HN.init @ hn.js:407
    (anonymous function) @ hn.js:1464

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.