Skip to content

Instantly share code, notes, and snippets.

@g0ddest
Created October 24, 2012 20:13
Show Gist options
  • Save g0ddest/3948553 to your computer and use it in GitHub Desktop.
Save g0ddest/3948553 to your computer and use it in GitHub Desktop.
Фильтр для приднестровского социального форума /1
var names = 'NICK1,NICK2,NICK3';
names = $.map(names.split(','), function(n){ return n.trim(); });
$('.comment').each(function(){
if($.inArray(
$(this).find('.comment-headline-user-profile').text().trim(),
names
) != 0) ? $(this).empty();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment