Hacker News new | past | comments | ask | show | jobs | submit login
Hacker News Chrome Extension (chrome.google.com)
59 points by adam_albrecht on March 6, 2010 | hide | past | favorite | 31 comments



I just finished up a simple Hacker News extension for Google Chrome. It allows you to view the front-page stories as well as submit your current tab. Let me know what you think and I'd like to hear your ideas for future updates.

The source code can be found here: http://github.com/adamalbrecht/hacker-news-for-chrome


Nice job. I find it particularly useful when I want to open up a bunch of links I'm interested in without the need to right click.


Ctrl+Click (open in new tab) and Shift+Click (open in new window) work well too, if I'm understanding you correctly. If not, my apologies :)


You understood me correctly. However, ctrl+click still involves two input devices. :)


If you have a scroll wheel on your mouse, middle-click opens a link in a new tab using only a single input device.


Simultaneous left+right click counts as middle click for me on Ubuntu, I'm not sure if it's like that everywhere. So maybe you don't even need a scroll wheel.


The things you learn about peripherals here. I've been right click new tabbing for years.


You can set up laptop touchpads to have a middle-click zone for one tap opening of new tabs too.


You can also middle-click on a tab to close it. Works in both Chrome and Firefox.


I'm just trying it out in Windows for the first time (on my work PC) and I realize that it works a little better on my Mac. On the mac version of Chrome, when you click on a link within the extension popup, it opens up a new tab in the background and leaves the popup open. But in the Windows version, the popup closes every time you click a link. That's annoying.... I'll look into it later.


One thing I could see useful is to get to comments for your current tab. Let's say you're reading something and you would like to see if there's any discussion around that on HN and if so, get to it. If not, get the option of submitting it.

I also remember that there was a bookmarklet that was adding links for each story to open a split window with the article on the left and the comments on the right. I liked it, though I lost it and never really looked for it.


This isn't quite splitview, but you might find my Hacker News OnePage extension for chrome useful.

https://chrome.google.com/extensions/detail/plldnnbdlbgbiknj...


Regarding the split view, did you mean http://nirmalpatel.com/hacks/splitview.html ?


Unfortunately, the page that frames the article and comments side-by-side is throwing a 403 and I don't know why. Still debugging...

The page works when I launch it locally but not when it is on my host. I put in a support request.

[EDIT : 9:05AM] Fixed. You will need to reinstall the user script at http://nirmalpatel.com/splitview/splitview.user.js It works in Safari, Chrome and FF on my Mac. Time for my mid-morning nap.


I think what he's asking for (if I understand correctly) is a way for the plugin to check the page I'm currently on, say it's a mixergy blog post or something, and determine if that blog post has already been submitted to HN and if there are any comments about it. That would be sweet, that way I'd know right away without having to google search (site:news.ycombinator.com) for the url, and if there' already a thread I can join in the discussion quickly.


To be more specific. Something like this; http://www.reddit.com/tb/b9yyc


In the second part I was talking about the split view. In the first part I was talking about what you're describing.


I would love to do something like that, but I don't think Hacker News provides any sort of API for accomplishing this. I'll look into it, though. Thanks!


Possibly better way to do it is to make a content script (or a greasemonkey script - same thing?) that rewrites links in HN's page such that when you open them in a new tab, you can keep track of the corresponding comments link, and then provide a Page Action that shows up in the location bar, clicking on which, will open up the comments page for the link.

This won't work where you directly happen to go to a site that was also on HN, but will work for the 80% use-case where you are going to a site from the HN front page itself.


This is not the best place to talk about that but:

As far as I know, HN doesn't have this capability indeed. However the script could scrape a certain number of the pages (it goes up to seven). You can easily match the linked URL with the current URL. I believe a Chrome plugin can have a list of remote sites it can do XmlHttpRequest on, no?


Awesome! ...but passing on this for the sake of my productivity, for now.


second that :)


I'm really excited about this.

Also, the 'Submit Current Page' feature seriously just increased the chances of me actually submitting things.


I use http://ycombinator.com/bookmarklet.html, but this looks good too!


i'm not sure you really understand what the extension does


It does the exact same thing as the bookmarklet, as far as I can tell.


The bookmarklet only allows you to submit pages.

This extension displays the top 15 HN stories, gives links to them, and also gives a link to each of their comment pages.


Yeah, I'm using it. I was replying specifically to the comments in this thread about the "Submit Current Link" feature making it easier to post links. Sorry for being unclear.


I would honestly get rid of the numbering and give each list item:

border-style-bottom: solid


I agree that the numbers are pretty useless, but I decided to keep them to match the Hacker News theme. Maybe in the future, I'll add a second theme and let you choose between them in the options. Thanks for your input.


I love it!. Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: