Skip to content

Instantly share code, notes, and snippets.

@bernatfortet
Created April 4, 2013 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernatfortet/5307438 to your computer and use it in GitHub Desktop.
Save bernatfortet/5307438 to your computer and use it in GitHub Desktop.
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