OnePage: An Easier Way to Browse Hacker News
userscripts.org
userscripts.org
Otherwise, I think that's a pretty clever idea.
Maybe something that made it easy to switch between contexts while preserving information hiding would be preferable. (keyboard shortcuts perhaps)
So that the browser window does not get a scroll bar, and instead you have two scroll bars - one for each pane.
And BTW it's quite possible to have it auto size the iframe using CSS. You should not need to have it fixed.
Set:
HTML, BODY { height: 100%; } Then give the two iframes height's of 100%, and add a padding to the article iframe giving you space for the two orange bars, which you put in place with position fixed (either on top, or on bottom, as needed.)
i.e. if each bar is 10px high, then either do padding-top: 20px; (space for two bars), or padding: 10px 0px; (10 on top and on bottom)
Hope that helps.
Oh, also get rid of the padding/margin around the body.
One big issue (may have been tarkin2's problem), but an easy one to fix, is that news.ycombinator.org also points to hacker news, but your script is only active on .com!
Another thing: is there any way you could set the height of the open comments/article frame to the height of the browser viewport (minus 25px for the header)? this gets rid of the annoying problem of scrolling all the way to the bottom of an article (or comments), and then having to switch focus to the main frame just to scroll to see the bottom of the internal frame.
Thanks for the helpful script!
I think I fixed the .org problem. I will take a look at your viewport suggestion soon too.
(Basically it lets you take an RSS feed and present it in HTML templates, with whatever Javascript/HTML/etc you want. If you have any questions or need any help feel free to email me at niryariv@gmail.com)
Ill get it fixed right away.
Did you edit the screen size preference in the code? Maybe an extra character got tacked in there or forgotten.
HN community, any ideas?
The comments button at the top didn't seem to work on every page.
But works good none the less.
This would help get through Reddit way faster -- just slowly move the mouse downward and zoom through all the [PIC] and misleading title submissions.