Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GameDevMap Filterer
var js = document.createElement('script');
js.src = 'http://code.jquery.com/jquery-1.9.1.min.js';
var first = document.getElementsByTagName('script')[0];
first.parentNode.insertBefore(js, first);
$("tr").each(function(){
var remove = true;
$(this).children("td").each(function(){
if( $(this).text() == "San Francisco" ){
remove = false;
return;
}
});
if ( $(this).children("td").first().children("img").attr("src") != "images/ic_dev.gif" )
remove = true;
if( remove )
$(this).remove();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.