User:Jens Ingels/common.js

$( document ).ready(function {

var name = new Array; name = ["Health","Health regeneration","Mana","Mana regeneration","Range","Attack damage","Attack speed","Armor","Magic resistance","Movement speed"]; i;

getVariable = function(i) { $( "#champion_info-lower td span a[title='"+ name[" + i + "]" + "']").parent.parent.next.html;  return };

if ( wgPageName == 'Miss_Fortune' ) { $( "#Strut" ).append( " Test " );

health = getVariable(0); healthreg = getVariable(1); mana = getVariable(2); manareg = getVariable(3); range = getVariable(4); ad = getVariable(5); asp= getVariable(6); armor = getVariable(7); magicres= getVariable(8); movement= getVariable(9); //health = $( "#champion_info-lower td span a[title='"+ name[i] +"']").parent.parent.next.html; alert(health); //location = document.getElementById("champion_info-lower"); //health = $( "#champion_info-lower td:contains('Health')" ).next; //alert(health.innerHTML); //console(health.innerHTML);

alert(health); }

});