3 ms·
This is pretty cool, it definitely fits into my flow. One thing I noticed while browsing the code in page.js, I would probably change: var getCommentUrl = fun
by TobiasFunkeMD 14y ago
This is pretty cool, it definitely fits into my flow. One thing I noticed while browsing the code in page.js, I would probably change:
var getCommentUrl = function(anchor) {
return $(anchor).closest('tr').next().find('a:nth-child(3)').prop('href');
};
to
var getCommentUrl = function(anchor) {
return $(anchor).closest('tr').next().find('a[href^="item"]').prop('href');
};
Not that HN will ever change their html...
- skidding 14y agoThat's a very good idea. It used to be a:last but then it would send me to the delete page for my posts :) You can create a pull request if you want, since it's on github, otherwise I'll definitely change that myself