News for hackers. Stuff that matters.
Re:"Diff for HN": Update and highlight changes by pak on Monday April 11, 2011 @09:22AM (#2432456)
Want to package this up into a Chrome extension (maybe as a userscript)? Then people could run it without clicking on a bookmarklet.
Re:"Diff for HN": Update and highlight changes by aditya42 on Monday April 11, 2011 @10:54AM (#2432745)
Replying to this since this is getting up-votes even after I created the userscript[1] :/

It's here fellas: http://userscripts.org/scripts/show/100977

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

Re:"Diff for HN": Update and highlight changes by obeattie on Monday April 11, 2011 @10:58AM (#2432766)
Also replying to this even though I commented below (definitely relevant).

I made it into a Chrome Extension: https://chrome.google.com/extensions/detail/abjhkncpebiaepcp...

Re:"Diff for HN": Update and highlight changes by kapitalx on Monday April 11, 2011 @01:27PM (#2433367)
Nice, thanks. In combination with this extension (which highlights the actual unread comments) it works out great: https://chrome.google.com/extensions/detail/imeeonmdbakdmiln...
Re:"Diff for HN": Update and highlight changes by brown9-2 on Monday April 11, 2011 @12:46PM (#2433205)
Updates every couple of minutes - but if you move to another tab (and leave HN open) no updates will happen until you get back.

Just curious: is this out of some Chrome extension limitation or to cut down on unnecessary refreshes?

Re:"Diff for HN": Update and highlight changes by obeattie on Monday April 11, 2011 @12:52PM (#2433209)
This is part of the original script, out of my control.

All the extension actually does is load the original script when you visit HN.

Re:"Diff for HN": Update and highlight changes by jawns on Monday April 11, 2011 @11:18AM (#2432835)
A slightly different userscript that doesn't require you to keep the HN tab open:

http://coding.pressbin.com/74/Update-on-Greasemonkey-script-...

Re:"Diff for HN": Update and highlight changes by phreeza on Monday April 11, 2011 @09:20AM (#2432441)
Wow, this is great. Love the animated Y, too.

Two suggestions, maybe to add as options:

- open both comments and articles in new tabs automatically, since the assumption is power users keep the home page open anyway.

- Display the new comment and vote count as a difference? Seems more intuitive to me.

Re:"Diff for HN": Update and highlight changes by Kilimanjaro on Monday April 11, 2011 @10:03AM (#2432584)
I use this little bookmarklet to open all links in new tabs

    javascript:d=document.links; for(i in d) d[i].setAttribute("target","_blank")
Very useful when reading HN on an iPad
Re:"Diff for HN": Update and highlight changes by aditya42 on Monday April 11, 2011 @10:13AM (#2432611)
I took the liberty of turning this into a userscript. Since I was running into trouble accessing global variables from the injected scripts, I forked Mr. Speaker's project and changed the relevant bits in the code.

Edit: Changed all my links to point to mrspeaker's master except the loader. Any changes he makes should get reflected automatically.

Link: http://userscripts.org/scripts/show/100977

Re:"Diff for HN": Update and highlight changes by obeattie on Monday April 11, 2011 @10:38AM (#2432691)
This is awesome.

So awesome in fact, that I really wanted this as a browser extension. I quickly packaged it for Chrome, and have published it on the Extension Gallery for all you hackers. Get it while it's fresh: https://chrome.google.com/webstore/detail/abjhkncpebiaepcpeo...

Enjoy :)

P.S. The (very minimal) source is on GitHub, too: https://github.com/obeattie/HackemUp-extension

Re:"Diff for HN": Update and highlight changes by bossjones on Monday April 11, 2011 @09:03AM (#2432402)
Fantastic tool. I salute you and want to yell at you at the same time for making me stay here longer then I do already(haha). Great work friend.
Re:"Diff for HN": Update and highlight changes by aditya42 on Monday April 11, 2011 @09:22AM (#2432453)
I think turning this into a userscript will play into the whole 'keep HN open all the time' better since you can just open HN, pin the tab and let the userscript work its charm.
Re:"Diff for HN": Update and highlight changes by mgrouchy on Monday April 11, 2011 @09:58AM (#2432565)
This is pretty neat, it has proven its usefulness already.

+1 for a Chrome extension though, I don't know if I am going to remember to keep clicking the bookmarklet.

Re:"Diff for HN": Update and highlight changes by mgkimsal on Monday April 11, 2011 @11:19AM (#2432836)
Could you have this automatically load all links in new tabs?
Re:"Diff for HN": Update and highlight changes by asymmetric on Monday April 11, 2011 @09:02AM (#2432396)
How does the 'drag bookmarklet to tab' thing work in Chrome? Where's the bookmarklet installed? (not among the bookmarks it seems) How can it be uninstalled?
Re:"Diff for HN": Update and highlight changes by aquilax on Monday April 11, 2011 @09:23AM (#2432457)
Press Ctrl-Shift-B to show to bookmarks bar first.
Re:"Diff for HN": Update and highlight changes by hitonagashi on Monday April 11, 2011 @09:03AM (#2432404)
I believe it just executes the javascript on that tab. Navigate away from the page to 'uninstall' it.

Great extension!

Re:"Diff for HN": Update and highlight changes by buro9 on Monday April 11, 2011 @09:04AM (#2432405)
Drag it to your bookmark bar (make sure it's visible first).

Then click it when you're on HN.

Re:"Diff for HN": Update and highlight changes by trotsky on Monday April 11, 2011 @12:08PM (#2433036)
In case anyone else is in this situation, I would get the spinning Y from time to time but never would see anything highlighted. It took me a few minutes of thinking about it to realize that I'd need to turn off my AutoPatchWork extension (similar to AutoPagerize) so that the content was in the expected form. It works now! Too bad I can't live without AutoPatchWork.
Re:"Diff for HN": Update and highlight changes by Ruudjah on Monday April 11, 2011 @12:37PM (#2433169)
"A calm river of nerditry"
Re:"Diff for HN": Update and highlight changes by mambodog on Monday April 11, 2011 @01:31PM (#2433382)
I really resent this. I don't know about you guys but I don't think of myself as a 'geek' or a 'nerd'. Having a high level of domain specific knowledge doesn't mean you need a label, it just means that you are good at what you do. I am a creator, I don't feel the need to define myself in terms of my tools (and how well I know them).

When I first ran across HN I was refreshed by how little of these terms I saw.

Re:"Diff for HN": Update and highlight changes by whimsy on Tuesday April 12, 2011 @01:57AM (#2436087)
This is all well and good. You don't need labels.

In this case, however, labels serve a purpose - they identify someone as a member of an ingroup. There is, unequivocally, a "nerd culture." (What that is, of course, is a matter for much debate.) Identifying or presenting as a nerd communicates that the signaler considers themself a part of that culture or community.

Finding communities amongst each domain can be difficult. Luckily, there is a culture that embraces and celebrates domain specific knowledge regardless of the domain. Members of that culture signal to each other by identifying as "geek" or "nerd."

Doesn't this make the voluntary label okay?

Re:"Diff for HN": Update and highlight changes by mambodog on Monday April 11, 2011 @09:15PM (#2435331)
Wow, anyone care to reply rather than just downvoting?
Re:"Diff for HN": Update and highlight changes by aeontech on Tuesday April 12, 2011 @01:57AM (#2436090)
I didn't downvote, but I understand why people did. Both the parent comment and your reply add more or less nothing to the discussion. The problem isn't your comment, the problem is the parent comment, but if you feed the trolls, well, you know what happens :)
Re:"Diff for HN": Update and highlight changes by yuvadam on Monday April 11, 2011 @09:38AM (#2432502)
This is the best thing ever :)

Amazing functionality packed into a single bookmarklet. I love it.

Re:"Diff for HN": Update and highlight changes by ssn on Monday April 11, 2011 @01:53PM (#2433479)
If you need a tool like this, I would recommend turning on the anti-procrastination HN filter.
Re:"Diff for HN": Update and highlight changes by mryall on Monday April 11, 2011 @06:07PM (#2434632)
Great explanation on how it works. I was wondering the other day whether there was a way to tell when a tab gets the focus to autoupdate content. Now I know I can use window.focus and window.blur.
Re:"Diff for HN": Update and highlight changes by davidjhall on Monday April 11, 2011 @10:46AM (#2432716)
Rats! I use HackerNews UX and HackemUp won't work with it. Decisions...decisions...
Re:"Diff for HN": Update and highlight changes by swah on Monday April 11, 2011 @09:27AM (#2432473)
I only I could Shift+A HN, Twitter and Quora, I would beat procrastination!