User:Blaster Niceshot/wikia.js

//Script to get table info //See http://community.wikia.com/wiki/Thread:1018387 for more details /*$.get('http://clashroyale.wikia.com/index.php?title=' + pageName +).done(function(statData) { });*/

var pageName = Goblins; var selectLevel = 1; var dataArray = []; $.each('#unit-statistics-table tbody tr:eq(' + selectLevel + ') td',function(val,i){   dataArray.push($(this).text);    console.log(dataArray); });