Live data from Hacker News

Dotjs — hack the web

defunkt.io

61–66 of 66 posts

Re: Dotjs — hack the web

#63
post #8

I've sneakily been using this for months on Hacker News itself- I just .hide() stories past around story #15. More signal, less noise. And it's just jQuery, so it's really easy to whip up. Bonus points for it being so easy to share, too: https://github.com/holman/holman-js/blob/master/news.ycombin...

Same here. Mine: 1) sniffs out urls in submissions and auto-links them 2) adds comment thread folding. https://github.com/sant0sk1/dotfiles/blob/master/js/news.yco...

I use https://chrome.google.com/webstore/detail/hockhafcdegocajmjh... for (2)

Re: Dotjs — hack the web

#65
I think the ruby web server is not necessarily needed, simply change the dotjs.js's content to

$.get(chrome.extension.getURL("script/"+window.location.hostname+".js"), function(script){ eval(script); });

it will look for the js file in the extension directory instead of the local ruby web server, and this should work for any platform. To take the ~/.js convenience, a symlink in *inx system or shortcut in window will do the job.

Post reply on HN