Last active
December 11, 2015 09:18
-
-
Save fuqunaga/4579058 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
$.each($('tr td:last-child').find('a'), function(){ | |
var a_tag = $(this); | |
$.get(a_tag.attr('href'), function(data){ | |
$.each($(data).find('tr td:first-child'), function(){ | |
var value = $(this).text().match(/防戦力:\d+/); | |
if ( value ){ | |
a_tag.parent().append(value[0]); | |
return false; | |
} | |
} | |
); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment