You already can create JS plugins for HN with Greasemonkey.
I have one which currently:
- hides links based on domain (like techcrunch.com)
- hides links based on words appearing in the title (like gogaruco)
- highlights names of known posters and adds a string describing them ("somenick" becomes "somenick: Firstname Lastname (Companyname)")
- makes comment boxes bigger
- adds a margin at the bottom
It's pretty easy to do, really.Yeah, but I use Safari. There's GreaseKit, which I have installed, but I've had little success getting it to work with regular GreaseMonkey scripts.
Is it available somewhere?
I cleaned it up a bit (removed names, etc) and uploaded it here: http://lexandera.com/public/hackernews.user.js
There's a configuration section at the top which you need to customize.
Cool! Thanks!
Re:Sortable Hacker News
by Xichekolas on Monday July 27, 2009 @10:42AM
(#725912)
There are several GM scripts for this site:
But as you suggest, karma limitations would mitigate security issues. Updates could also be reviewed and controlled by moderators.
I only suggest this because quite often you see websites (like the above) popping up on externally hosted servers, when they could potentially integrate into HN.
People could tackle things like layout, sort, hide/show karma, display an iFrame of the content, etc.
But the security implications would probably be completely unacceptable. Ah well.