I'd love to do this, but it would be particularly hacky because I need to access HN via XHR--I can't just frame it because HN sends the X-Frame-Options: DENY header (see the bottom of the blog post for details). However, I might be able to fix that by modifying HTTP headers in the extension. For now, I don't mind actually doing all my commenting/replying in a new tab, I initially meant the sidebar to be for quick scanning of what's already there.
Also, doesn't pop up on, e.g. this site:
http://jshakespeare.com/the-dire-state-of-wordpress/
which is on the front page right now. I was wondering how you knew when to pop out the sidebar. Looks like it's got some blind spots.
Great concept, though, and very unobtrusive when it works. It'd be neat if the little side tab could tell me implicitly that someone else submitted a story I stumble upon so I don't have to worry about duping.
Looks like it doesn't detect that page because it got submitted without the trailing slash, and the page forcefully redirects to the slashed URL. However, that's easy to correct for, and I've updated the extension to check for both versions of such a URL. Thanks for trying it out and finding this bug! If you're still using the extension, it should auto-update soon.
Re: the little side tab could tell me implicitly that someone else submitted a story I stumble upon
That's exactly what the extension should do; if any webpage you are looking at has ever been submitted to HN, the orange tab will pop out.
Thanks for the quick fix. The extension is pretty useful.
One thing I'd say is to default to the most recent thread for common sites like google.com. There are often rando 300 day old threads that show up for them.
It's easy enough to sort by create_ts; updated again! The most recent thread for google.com is still pretty old. I'm kind of surprised that these multiple threads don't get automerged when the second and following people try to resubmit.
Thanks for the quick response. I think, though, that my suggestion was a bad one. It seems you should select the highest rated thread for a a link with mutlitple submissions.
This use case seems more common than the google.com one. It's possible you'd want to treat bare domains differently, or treat top web sites differently, etc. Depends on how much work you'd like to put into this project. I for one will keep using it if you keep working on it :)
10 comments
[ 19.1 ms ] story [ 33.3 ms ] threadGreat concept, though, and very unobtrusive when it works. It'd be neat if the little side tab could tell me implicitly that someone else submitted a story I stumble upon so I don't have to worry about duping.
Re: the little side tab could tell me implicitly that someone else submitted a story I stumble upon
That's exactly what the extension should do; if any webpage you are looking at has ever been submitted to HN, the orange tab will pop out.
One thing I'd say is to default to the most recent thread for common sites like google.com. There are often rando 300 day old threads that show up for them.
For instance, this article shows the more recent thread with little/no comments, while there's a great set of comments I'd prefer to see listed with it: http://www.forbes.com/sites/morganhartley/2013/03/19/how-a-y...
Good comments: https://news.ycombinator.com/item?id=5402301
No Comments: https://news.ycombinator.com/item?id=5400599
Both stories submitted 4 days ago.
This use case seems more common than the google.com one. It's possible you'd want to treat bare domains differently, or treat top web sites differently, etc. Depends on how much work you'd like to put into this project. I for one will keep using it if you keep working on it :)