6 ms·
ShowHN: AlreadyHN, a bookmarklet that checks if the current page is on HN
- Pewpewarrows 15y agoIf you're using Chrome, this extension works great to let you know about pages being on HN: https://chrome.google.com/webstore/detail/njdndkhkelkeepcnmookckfhleebcokl https://chrome.google.com/webstore/detail/njdndkhkelkeepcnmo...
- pefavre 15y agoI've just tried this one and it's great! It's simple, unobtrusive and smart: a logo in the address bar indicates that the post is already on HN. If you click it you're taken to the comments page. Neat!
- dionidium 15y agoI'm pleased to see that this extension sends only the hashed URL to its server, so you're not giving away your full browsing history in real time: var url_hash = hex_md5(tab.url); xhr.open("GET", "http://hnd.mfairley.com/" + url_hash, true); https://github.com/michaelfairley/hnd-client/blob/master/background.html https://github.com/michaelfairley/hnd-client/blob/master/bac...
- JangoSteve 15y agoAwesome for security. In order for this to work, the server-side has to keep a record of every single URL posted to HN, to be able to do a lookup of the hash. It's crawling the "/newest" page [1] once a minute [2]. Not sure how he handles situations where the worker goes down (do those posts just not get indexed?). [1] https://github.com/michaelfairley/hnd-server/blob/master/update.rb https://github.com/michaelfairley/hnd-server/blob/master/upd... [2] https://github.com/michaelfairley/hnd-server/blob/master/app.rb#L14 https://github.com/michaelfairley/hnd-server/blob/master/app...
- Todd 15y agoNice. I'm often conflicted over whether to bookmark the actual page or the HN comments. Sometimes the comments are so valuable, I'll bookmark them instead, since I can always get to the page in question from the comments. This provides a nice alternative. Thanks.
- jay_l 15y agoI always just bookmark the comments, or a link to a particularly valuable comment, instead of the actual page for the same reasons. I have a separate folder for the actual pages that I link with their corresponding HN bookmarks using Firefox's tagging feature. It makes it easy to find and load up both pages.
- vaksel 15y agodoesn't HN do that already? or is that only for exact match links?
- eliaskg 15y agoIt is only for exact matching links.
- p4bl0 15y agoSo HN already does this and it does it exactly the right way: if you submit something which already exists, it upvotes it instead of resubmitting it, which is exactly what you want. If you want to submit a link (or upvote it) anyway, what is the added value of this bookmarklet?
- eliaskg 15y agoThe value is IMHO that you can access the comments of an existing entry within 2 clicks. Actually that's why I wrote this thing and how I use it personally. Found an interesting GitHub project? See what Hacker News says about it.
- joshmanders 15y agoWho wants to copy and paste a link into the submit page on hacker news, then get the message that it already exists when they can click this little bookmarklet. I like it, good job!
- duck 15y agoOr just use the bookmarklet from the submit page...
- joshmanders 15y agoYeah, that works too, but this bookmarklet adds onto that by not only submitting it, but also takes you to the comments in case it already exists. It's like saying "why use powered windows, when hand cranks work just fine"
- Ryan_Shmotkin 15y agoI use a chrome extension. Shows you a orange bar on the left that slides out with comments. https://chrome.google.com/webstore/detail/hhedbplnihmkekhgmaoikgfbkjjaocnl https://chrome.google.com/webstore/detail/hhedbplnihmkekhgma...
- Flenser 15y agoand sends your full browsing history in real time to thriftdb.com! The extension in the first comment does not.
- chetan51 15y agoA while ago, I posted a bookmarklet called Hacker Panel that actually shows HN comments for the current page. Do check that out too! http://news.ycombinator.com/item?id=2915367 http://news.ycombinator.com/item?id=2915367
- iambot 15y agoThat sounds really good. Will definitely check it out Shameless plug: is is my last bookmarklet for HN: http://christopherdebeer.github.com/hnCommentWatcher/ http://christopherdebeer.github.com/hnCommentWatcher/ Update: I was a bit let down that you just show the HN page in an iframe, nd dont actually restyle the comments in a user friendly way like in a side bar for the site (which i think would be brilliant)
- chetan51 15y agoThe thing is, I wanted to give the user complete HN commenting functionality, and have the comments look like regular HN comments too. So I figured that sourcing the actual comments page would be the best, since you get to use it just like you would if you visited HN directly.
- username3 15y agoRemoved confirmations, added page title. http://pastebin.com/ySr5PnKu http://pastebin.com/ySr5PnKu
- fady 15y agowhoa! great bookmarklet. very useful indeed. how long did this take you to make?
- eliaskg 15y agoThanks! Since this is only a fun project the script took about 2 evenings of (casual) coding.
- nsxwolf 15y agoI wonder how I earn a living doing what I do, and have never heard the word "bookmarklet". Reading the definition I know what they are, I've just never heard the term until now. One nice thing about HN is that I can admit to such things because of the anonymity. It sure is an embarrassing feeling.
- akkartik 15y agoI saw the XML icons on websites for years before paying attention to what they meant (RSS feed) and what you could do with it (feedreaders, etc.) We as a profession suck. It's not a criticism, just a statement of fact. We're in the stone ages. The interfaces my fellow programmers create are hard to discover, hard to understand, hard to use. And then I try to create interfaces and end up perpetrating the same crimes in my turn.
- deutronium 15y agoWow, thats really nifty, thanks for making it!
- jaequery 15y agoany idea why gethoneybadger.com doesn't get detected with this when it was posted on HN just a week back?
- ImJasonH 15y agoWhy does this load JQuery for nothing but a simple JSONP request?
- jamesbritt 15y ago"Simply drag the following link to your browser’s bookmarks bar:" I can't. I'm on FF 8.0, and the link doesn't seem to be a normal link, so dragging it ends up as a selection. Indeed, it's not a normal link: <a id="theLink" title="AlreadyHN">AlreadyHN</a>
- Garbage 15y agoRight click on the link and select "Bookmark This Link"
- jamesbritt 15y agoThanks, but that option doesn't appear. I can do that in Chrome, which gives me a URL for the a element, so I'm guessing the link is dynamically created (for whatever reason) and that's not playing nice on my install of Firefox.
- LocalPCGuy 15y agoAdded a fork, use it if you like, that checks to see if you are already on the Hacker News site, and if so, redirects you to the first page. Not sure why you would be checking it on Hacker News, but seemed like it should know that and response accordingly. Feel free to ignore or close the request if deemed useless.
- drats 15y agoIs there a public database of HN links (rather than multiple people crawling PG's server)?