Skip to content

Instantly share code, notes, and snippets.

@moisespsena
Created May 28, 2014 12:28
Show Gist options
  • Save moisespsena/bfa35c549cea0ae9cff4 to your computer and use it in GitHub Desktop.
Save moisespsena/bfa35c549cea0ae9cff4 to your computer and use it in GitHub Desktop.
Generate one list with version identification, version abbreviation and version name of versions and print it to console, in http://bible.com/bible
var data = [];
jQuery("#menu_version .scroll TR").each(function() {
var l = $(this);
if (!l.attr('data-abbrev')) {
return;
}
data[data.length] = [
l.attr('data-version'),
l.attr('data-abbrev'),
l.attr('data-meta')
]
});
for(var i=0; i < data.length; i++) {
data[i] = data[i].join(";")
}
console.log(data.join("\n"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment