Save Time On Hacker News: Mark All Read
blog.hashtagify.me
blog.hashtagify.me
When I was using micromobs.com for discussion groups, they had a very simple and elegant system: keep all comments in place to preserve context, but grey out the ones I have already seen. The problem on HN is that it would conflict with bad comments. Maybe use a different color?
Edit: Using the https version of news.ycombinator.com
I'm not the first person to bring up Usenet here, but it pains me that Usenet had way more functionality in the 1980s. (Which I don't mean as a criticism of HN, but a wish for more learning from the past.)
But to highlight new comments there are many different solutions already, take a look at the other comments :)
That was in fact also a quality of Usenet, before it went out of fashion for unclear reasons.
It would be an interesting exercise to mirror (or even move) HN to a nntp-server. Personally I believe the signal/noise ratio would improve drastically.
And file sharers, and spammers...
But I was thinking about publishing the source to github; the js is very simple, if anybody wants to fork it for other browsers is welcome :)
By the way, can you use css files with userscripts?
Something like that:
var css = document.createElement('link'); css.textContent = 'css here'; document.head.appendChild(css);
* Upon installing the plugin, I tried to "hide read" thinking it would hide the posts that I had already viewed, but they were not hidden. It should be possible to hide these with a css selector.
* After installing and clicking a post to read it, then clicking hide read, this post was not hidden (must not be considered read, again, css selector)
Finally I have a feature request: I would like a "mark read" link to appear next to each link, so that I can mark an individual link read without reading it.
Great idea and I hope that my feedback can help you to improve the app.
Thanks.
It could be possible to mark individual items read, but hiding the ones you actually clicked on (without marking them read) is unfortunately impossible: As pointed out somewhere else in the comments, with javascript you can't read the "visited" selector, and with only css I could perhaps hide just the visited link, but not the encasing and trailing TR.
With jQuery override the .click() event of every link on the page. Then, when the link is clicked get the URL of the link from the event parameter that is passed to .click(). From that information, you can construct a CSS selector like this one (with jQuery)
$("a[href=\"http://stackoverflow.com/questions/10668292/is-there-a-setti...)
Which can then be used to hide the clicked link. The problem now is one of persisting the data between sessions. Your options are localStorage, remote storage, and my suggestion: sqlite in webkit a'la: http://stackoverflow.com/questions/6200976/sqlite-in-chrome
After you have saved the "read" urls in SQLite, you should be able to hide the surrounding data as well in the other <tr> tag by traversing the DOM with jquery.
I really would love if you did this. Please consider giving it a try.
$("a[href=\"http://stackoverflow.com/questions/10668292/is-there-a-setting-on-google-analytics-to-suppress-use-of-cookies-for-users-who\"]")Another one is having bigger upvotes buttons and easier clickable links. Too often I have a hard time to click on the microscopic comments link, other times I open the wrong news or upvote the wrong one.
http://coding.pressbin.com/74/Update-on-Greasemonkey-script-...
You were able to build a list of controversial webpages (to compare them with my browser history), put to your css file that a:visited color: red; (just an example) and check with javascript which links have foreground color red - and voilaa. You know what pages I have in my history.
You need to save data to localstorage or something like that instead. And you can only save those clicks which are made from hackernews site... not populate it from browser history.
https://bugzilla.mozilla.org/show_bug.cgi?id=147777
It is fixed in modern browsers now...
As it is, using the rss feed is actually more inefficient than visiting the page every now and then.
Which gives: https://api.twitter.com/1/statuses/user_timeline.rss?screen_...
Hopefully this gives what you were after?
PS: it's really odd though, when I uploaded the new version it gave me an error and I didn't get to save the changes. I didn't expect the broken manifest to be live!
https://addons.mozilla.org/en-US/firefox/addon/link-visitor-...