3 ms·
Easier browsing of Hacker News...for me
http://nirmalpatel.com/#hnsplitview
HN SplitView is a bookmarklet that adds a link labelled "SPLIT VIEW" to each post on the Hacker News website. This link allows the user to open the post and the discussion page side by side in frames. Simply drag the link for HN SplitView to your toolbar or add it as a favorite.
I've been using this and it makes it easier for me to browse. I hope that other members of the HN community find it useful. I've tested it under Safari and FF. Let me know if you guys have any problems.
EDIT: It doesn't add the link for posts like this one or those of the "Ask HN:" variety.
- mwmanning 18y agoThis is brilliant.
- richesh 18y agovery nice, and very useful...can you make it a one click thing? right now I have to click on the bookmarklet and then click on split view. If it was just one link that would be awesome. I wonder if this can be tweaked to work from within Google Reader, hmmm..I'll tinker with that a bit. thanks again!
- nirmal 18y agoI think that would require the script running at the loading of the page. This could probably be done with a Greasemonkey script (Creammonkey for Safari).
- Oompa 18y agoI turned this into a Greasemonkey script for any Firefox users. http://userscripts.org/scripts/show/28371 http://userscripts.org/scripts/show/28371 If the author doesn't like it, PM me, and I'll delete this post and the Userscripts.org post.
- nirmal 18y agoQuite the contrary, thanks for doing it! I used to be worried by the constant security issues when Greasemonkey came out (back in the day). I never got into it and now I use Safari. Do you know if this works under Creammonkey for Safari? I may go install it if it does.
- Oompa 18y agoI have no idea. All I did really was copy all the Firefox relevant lines out of the functions and if statements, so they'd get executed right as the page loads. I'm now going to try to get it to work without your web link, so if your website goes down, the script will still work. If you want any credit, just tell me, and I'll add what I can :)
- nirmal 18y agohttp://userscripts.org/scripts/show/28372 http://userscripts.org/scripts/show/28372 I just modified it so that it would prompt for install when you clicked Install Script. GreaseKit for Safari doesn't have an Install User Script option...work in progress.
- Oompa 18y agoI don't understand what you changed? Can you please elaborate?
- nirmal 18y agoI just wrapped your code in a closure so it would run immediately. This makes GreaseKit or Greasemonkey prompt you to install. This way you don't have to go and install it manually. Thanks for turning me back on to userscripts!
- deleted 18y ago[deleted]
- ScottWhigham 18y agoDoesn't work for me on Firefox 2
- nirmal 18y agoI was able to install it just fine. I'm on OS X with FF2.
- tokipin 18y agoi was thinking about proposing this as a feature. because when dealing with submissions, the constant is that i look at both the article and the comments
- deleted 18y ago[deleted]
- deleted 18y ago[deleted]
- kajecounterhack 18y agowow this is so useful. kudos =] My first bookmarklet too, really.
- vipulsolanki 18y agoWah NirmalBhai, wah. Btw, There s one minor bug. If I click the bookmarklet more than once, it adds "|SPLIT VIEW |" more than once. | SPLIT VIEW | SPLIT VIEW | SPLIT VIEW | SPLIT VIEW | SPLIT VIEW
- nirmal 18y agoFixed.
- agentbleu 18y ago10 /10
- btw0 18y agoSimple, but effective. Awesome.
- ScottWhigham 18y agoI love you, nirmal.
- listic 18y agoOn Opera, it says "Unsupported browser". Why not?
- nirmal 18y agoI had modified the bookmarklet to allow opera but it doesn't like the code on my splitting page. I'm not sure why though. It's pretty tame JS. Opera also doesn't show me any errors in the Error Console.
- Xichekolas 18y agoSo I went to add this splitview thing to my Greasemonkey script for Hacker News, only I did the same thing without hitting your site for the frameset (completely clientside js). It works quite nicely, but for some reason I had to resort to something I consider quite ugly. Can someone please look at the code below (and read my comments in it) and tell me why the three addEventListeners that I have commented out won't work? I'd really really like to know why I am being retarded and how to fix it, as the solution I ended up with seems unnecessarily ugly. View code here: http://userscripts.org/scripts/review/25039 http://userscripts.org/scripts/review/25039 Or if you don't care about it being ugly and just want to use it: http://userscripts.org/scripts/show/25039 http://userscripts.org/scripts/show/25039 But I'd really appreciate help with figuring out the issue with the addEventListeners.
- jkkramer 18y agoFor one thing, the function returned by createFramesetReal() seems to be using the undefined variable 'b'.
- Xichekolas 18y agoOp, I had that in a previous version, musta accidently cut that out when cleaning it up. It didn't have an effect though. Went ahead and set it to what it should be... body.
- nirmal 18y agoI've installed the script under Safari and FF2 and I don't notice anything happening. Is it overwriting the existing links? I didn't do that because sometimes I may only want to quickly see the comments or main article. Firebug doesn't seem to be showing me any errors either. BTW: I like the title of your blog, "Artfully Underemployed" :)
- Xichekolas 18y agoIf you installed it for the first time, make sure you turn the feature on. Look for the link called "blacklist" in the top bar of HN, which will pull up the options for the script. Check the box next to split view. Since this is becoming more than just the simple blacklist script it originally was, I suppose I should rename it or something to make that more clear. ;) Oh and I almost forgot, thanks for the brilliant idea!
- nirmal 18y agoUPDATES: For greasemonkey/kit users. Clicking Split View links in the right frame will now not cause internal splitting. UPDATES: I can't edit the main post anymore so I thought I would try and summarize the updates here. Oompa posted a Greasemonkey script here: http://userscripts.org/scripts/show/28371 http://userscripts.org/scripts/show/28371 I modified to work on multiple pages under hacker news, you can find it here: http://userscripts.org/scripts/show/28372 http://userscripts.org/scripts/show/28372 The bookmarklet still works and is located at the URL in the post. The bookmarklet will not continue adding SPLIT VIEW links after it has been used once.
- deleted 18y ago[deleted]
- xccx 18y agoi'm too retarded to install this but not too proud to admit it.. it sounds like it scrolls 2+ windows with one control: xcroll
- christefano 18y agoThis script assumes that I visit news.ycombinator.com to read news. I'd prefer a Firefox extension that compares the addresses of web pages I visit with links in the news.ycombinator.com RSS feed. That way I'd be notified that there's a discussion thread about the page I'm currently viewing.