Answer the question
In order to leave comments, you need to log in
Is there an extension for viewing TOP comments on Habrahabr posts?
Hello!
Many people know that in the comments to posts on Habré there are always very interesting and TOP comments, so I would like to find an extension for the Chrome browser (maybe already written by someone), which allows you to sort for reading only the top comments to the post.
Answer the question
In order to leave comments, you need to log in
$('.comments_list').append($('.comment_item').sort(function(a,b){
return parseInt($('.score:first', b).text().replace('–','-')) - parseInt($('.score:first', a).text().replace('–','-'));
}));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question