Skip to content

Instantly share code, notes, and snippets.

@aidik
Last active October 9, 2019 11:39
Show Gist options
  • Save aidik/7c185dd4ffa019d08349a10ead8e3726 to your computer and use it in GitHub Desktop.
Save aidik/7c185dd4ffa019d08349a10ead8e3726 to your computer and use it in GitHub Desktop.
Extract PoGo information
var names;
jQuery(".field.field--name-field-page-content.field--type-entity-reference-revisions.field--label-hidden.field__items").find("h2").not('.main-title').each( function () {
names += jQuery( this ).text();
});
console.log( names );
var names = "";
jQuery(".pokemon-family-container").find("h2").not('.main-title').each( function () {
names += jQuery( this ).text();
});
console.log( names );
var links = "";
$( ".TCLink" ).each( function () {
links += ( ( $( this ).text() ).replace( /-/g, "" ) ) + "\n";
});
console.log( links );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment