Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Hacker Panel: Bookmarklet to pull up or start the HN discussion for any web page (chetan51.github.com)
34 points by chetan51 on Aug 23, 2011 | hide | past | favorite | 14 comments


Be sure to check out the Reddit Panel too!

http://chetan51.github.com/panels/reddit/


This is totally rad. I'm commenting from the page via the box, and I feel awesome for it.

I've always had the issue of "Hmm, I bet there's a good discussion on this post somewhere on HN" and then forgetting to go search for it...

saved!


This is great, it has the potential to keep worthy posts alive longer.


hey @chetan51, i was having a look at your bookmarklet code (out of interests sake), and notice this snippet:

  > panel_html...eturn panel_frame.attr("src"
what confuses the shit out of me is those 3 dots dont look like valid javascript, but firebug shows no errors in it. could you enlighten me, or am i missing something obvious.

see: https://gist.github.com/1164846

all i did was add line breaks etc, no other editing


Hmm, I'm not sure. Maybe it's an issue with the tool you used to transform the code.

If you want to see the source, just check out the GitHub repository. It has the source code for the bookmarklet in CoffeeScript.


I don't see the "..." when I right click & copy the link. See: https://gist.github.com/1164926


Make it an extension for Chrome and I'll love you forever.


What's the easiest way to take such code (one line) and format it to something readable?


I normally use http://jsbeautifier.org but it appears to be down at the moment. http://www.javascriptbeautifier.com also works.


id did it by hand and found some weird shit, see my comment.


Would love for this button to exist within the Instapaper app.


Is there any way to make this function like reddit's top bar?


cool...


luv




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

Search: