News for hackers. Stuff that matters.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Sunday January 06, 2013 @07:30PM (#5018491)
I created this based on how difficult I found it to be to follow conversations here, especially long ones. It's always been fairly easy to keep track of replies to your own comments, but if you haven't commented in a thread or subthread, you're basically stuck counting timestamps. Since I've gotten it working it's made the browsing experience better. Please report any issues here or on github.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by laurent123456 on Sunday January 06, 2013 @11:05PM (#5019250)
Great extension, I'll definitely be using it. If I can suggest something, I think it would be better to bold the unread comments (in the home page) only if you've actually open the link or read the previous comments. Otherwise it adds a lot of distraction on the page, and the bold links don't tell me whether I cared or didn't care about the associated news.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by ivan_ah on Sunday January 06, 2013 @11:37PM (#5019369)
On that note I suggest that the UI should have the following three "states":

1/ New article, never read:

    22 comments
I know that they are all unread, don't need to tell me.

2/ Visited article

    25 comments (3 unread) 
This is nicer IMHO than having another | separator. The 3 unread could be bold as it is now.

3/ Visited and all read:

    25 comments (0 unread) 
But this time 0 unread does not need to be bold.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Sunday January 06, 2013 @11:28PM (#5019342)
Great idea. I changed it to only be bold comments if the number of unread comments is greater than 0 and less than the total number of comments. It's been pushed to the Chrome Store. Thanks for the feedback!
Re:Show HN: Hacked Hacker News - new comment highlighting an... by noibl on Monday January 07, 2013 @03:25AM (#5020046)
Very nice. If it had a key handler to collapse the current comment with all replies[1], then I think it would be heaven. (Helps with long tangent threads at the top of the comment page.)

I know, this should be a pull request...

Edit: BTW, I just saw '(-1 unread)' which I'm guessing has something to do with showdead being on.

[1] http://alexander.kirk.at/2010/02/16/collapsible-threads-for-...

Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Monday January 07, 2013 @02:40PM (#5022747)
-1 unread happens if you (or someone else) deletes a comment. It should fix itself after a page load.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by lmm on Monday January 07, 2013 @06:27AM (#5020508)
Could you make it keep the original titles for stories? The thing that makes it hardest for me to follow conversations is when a mod changes the name of the story.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by etcet on Sunday January 06, 2013 @10:53PM (#5019203)
I like the way that comments become "read" as you move through them with the shortcut keys.

But I prefer the simple orange line highlight that the hckrnews.com extension and (shameless plug) the Hacker News Enhancement Suite [0] use. Your variable width grey highlight becomes looks very chaotic.

[0] https://chrome.google.com/webstore/detail/hacker-news-enhanc...

Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Sunday January 06, 2013 @11:00PM (#5019231)
I agree that the style in your link is cleaner looking. I don't have a very good sense for how to make things look nice. I might clean it up a bit because my goal is to keep HN simplistic but just add the few features that I've been itching for. I hadn't seen your before, though. It looks nice.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by zheng on Sunday January 06, 2013 @09:02PM (#5018817)
Very cool, I've tried lots of other HN reader-type things, and this one is my favorite. Very unobtrusive, but solves some major pain points.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by ivan_ah on Sunday January 06, 2013 @11:28PM (#5019343)
Very cool! I wish I had that last week when I was scrambling to reply to comments... (I used text search the page for "minute" and "minutes" but that not very efficient...)

Bonus if you adapt the script to reddit -- the same problem of not knowing which comments are new exists (except for top level comments which can be seen if you sort by new).

Re:Show HN: Hacked Hacker News - new comment highlighting an... by hayksaakian on Sunday January 06, 2013 @11:33PM (#5019362)
I would expect RES (Reddit enhancement suite) to support these features already. (I don't personally use it, but others can probably vouch).
Re:Show HN: Hacked Hacker News - new comment highlighting an... by werid on Monday January 07, 2013 @04:11AM (#5020151)
reddit gold has that feature.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by tomkinstinch on Sunday January 06, 2013 @10:59PM (#5019222)
I like this a lot. Just one small issue:

The default background color for new comments seems too dark for me--the contrast is low enough that new comments are more difficult to read than previously read ones. What about making the background for new comments lighter than the HN default?

Re:Show HN: Hacked Hacker News - new comment highlighting an... by greengreens on Sunday January 06, 2013 @09:32PM (#5018930)
Nice. The infinite scroll doesn't start until the second page though. Is this deliberate?
Re:Show HN: Hacked Hacker News - new comment highlighting an... by greengreens on Sunday January 06, 2013 @09:37PM (#5018947)
OK when I hit 'back' from this page then go 'more' it works.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Sunday January 06, 2013 @09:40PM (#5018958)
It's currently working for me. Maybe you were just too fast and hit it before domready had fired? Let me know if you have any more issues with it.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by greengreens on Sunday January 06, 2013 @09:52PM (#5019004)
Seems to be working now thanks. Not sure how domready works, how do you tell?
Re:Show HN: Hacked Hacker News - new comment highlighting an... by discountgenius on Sunday January 06, 2013 @10:14PM (#5019077)
Is there any sort of directory for Hacker News skins/mods/hacks? I feel like there is probably a more efficient way for me to view Hacker News, but I've found no convenient way to compare the different options.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by joshschreuder on Sunday January 06, 2013 @09:12PM (#5018851)
Nice! Without having tried this, does the infinite scroll get around the 'unknown link' error when you wait too long to hit the Next Page link?
Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Sunday January 06, 2013 @09:17PM (#5018874)
It doesn't. The best solution for that that I could think of was to re-GET the current page and pull the new link out of it, but I'm nervous about doing that since HN is so sensitive about HTTP requests being made in rapid succession[1].

[1] http://news.ycombinator.com/item?id=4981907

Re:Show HN: Hacked Hacker News - new comment highlighting an... by joshschreuder on Sunday January 06, 2013 @09:19PM (#5018887)
Fair enough, still like the extension. That said, I can't seem to get infinite scroll working on the home page / or /news, maybe because of HTTPS?

EDIT: Never mind, you click the More and it puts them on the current page. I thought it was done automatically when you scroll down. Good stuff!

Re:Show HN: Hacked Hacker News - new comment highlighting an... by crazydiamond on Monday January 07, 2013 @12:26AM (#5019536)
Works great on OSX ML. Anything similar for Firefox ?, I just prefer that to Chrome (FF esp with Pentadactyl).
Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Monday January 07, 2013 @12:31AM (#5019548)
If there ends up being enough interest, I'll support FF and Safari.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by crazydiamond on Tuesday January 08, 2013 @01:12AM (#5025118)
I believe FF is heavily used in the HN community.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by tnorthcutt on Sunday January 06, 2013 @09:51PM (#5018998)
I get an error message when trying to install: "Manifest file is invalid."

Chrome stable, Mac Mountain Lion.

Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Sunday January 06, 2013 @10:03PM (#5019040)
I've uninstalled and reinstalled a couple times on Mac and a Windows VM without getting that message. I know Google checks the manifest file on upload for validity, but I've seen reports[1] of seemingly random installation failures. Have it happened more than once?

[1] http://code.google.com/p/chromium/issues/detail?id=103281

Re:Show HN: Hacked Hacker News - new comment highlighting an... by tnorthcutt on Monday January 07, 2013 @07:49AM (#5020709)
Yes, more than once, but I tried again just now and it worked fine. Thanks!
Re:Show HN: Hacked Hacker News - new comment highlighting an... by treskot on Monday January 07, 2013 @01:15AM (#5019691)
Will be very handy! Good job. I wonder why it isn't part of HN already. Would love to use it on my Firefox.
Re:Show HN: Hacked Hacker News - new comment highlighting an... by carbocation on Sunday January 06, 2013 @09:48PM (#5018985)
The unread counts don't work for me on OS X Chrome 23.0.1271.101 .
Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Sunday January 06, 2013 @09:53PM (#5019007)
I've got the same setup as you. Are they wrong or just not showing? Console errors?
Re:Show HN: Hacked Hacker News - new comment highlighting an... by carbocation on Sunday January 06, 2013 @10:40PM (#5019145)
No console errors, just not showing. Let me know if there is anything I can send to help debug.

Also, not sure if this is by design, but after I post an in-place reply, I have to reload the page to see my post. However, upon editing a post, the page reloads immediately. I didn't see any error in the console.

Re:Show HN: Hacked Hacker News - new comment highlighting an... by prophetjohn on Sunday January 06, 2013 @10:52PM (#5019198)
I was conflicted about whether or not to update new comments inline or force a page refresh. So the behavior with the comments is intentional. I may end up changing it if it's confusing.

As for the other problem, I'm confused about why that's the only thing not working. Are you running any other extensions that could be conflicting?

Re:Show HN: Hacked Hacker News - new comment highlighting an... by carbocation on Monday January 07, 2013 @12:05AM (#5019473)
Makes enough sense re: problem #1. Re: the unread counts not showing up, this still occurs for me even when Hacked Hacker News is the only enabled extension.

EDIT: I have no idea why, but as I was hammer-clicking on the Hacker News main button, all of a sudden the unread counts started to appear. I wonder if there was some cache issue or something such as that.