Thanks!
Is there any way to make this a little more automatic for the future?
You can make it into a bookmarklet and add it to your bookmarks bar. I don’t know what browser you’re looking for, but you can google for specific instructions if you don’t know how.
Yup. I did that first thing.
But how do I sort the comments by new (and as a list?) Seeing only new comments is useful, but what about chronological ordering for all comments?
(function($) {if($('.new-comment').length > 0) { var time = function(c) { return parseInt(jQuery(c).find('.comment-date').attr('time')); }; var new_comments = $('.new-comment').sort(function(a, b) { return time(b) - time(a); }); $('.realcomment').after(new_comments); }})(jQuery);
This should work. I put the newest ones first, but you can switch that by changing
time(b) - time(a)
to
time(a) - time(b)
Thanks!
Is there any way to make this a little more automatic for the future?
You can make it into a bookmarklet and add it to your bookmarks bar. I don’t know what browser you’re looking for, but you can google for specific instructions if you don’t know how.
Yup. I did that first thing.
But how do I sort the comments by new (and as a list?) Seeing only new comments is useful, but what about chronological ordering for all comments?
This should work. I put the newest ones first, but you can switch that by changing
to