Widget:Ms

 function r(f){/in/.test(document.readyState)?setTimeout('r('+f+')',9):f} r(function{ var skills = []; $('.mstable').each(function { skills.push({       name: $.trim($(this).children('td:nth-child(1)').text),        effect: $.trim($(this).children('td:nth-child(2)').html),        target: $.trim($(this).children('td:nth-child(3)').html),        atk: $.trim(($(this).children('.mscombine').length > 0 ? $(this).children('.mscombine').html : $(this).children('.msatk').html)),        dmg: $.trim(($(this).children('.mscombine').length > 0 ? $(this).children('.mscombine').html : $(this).children('.msdmg').html)),        element: $.trim($(this).children('.mselement').html)    }); }); $('.ms').each(function { var skill = skills.find(x => x.name === $(this).text); if (skill != null) { var append = ' ' + skill.name + '<\/div>'; if (skill.target != "" || skill.atk != "" || skill.dmg != "" || skill.element != "") { append += '  Target<\/div> ' + skill.target+ '<\/div><\/div>  ATK<\/div> ' + skill.atk + '<\/div><\/div>  DMG<\/div> ' + skill.dmg + '<\/div><\/div>  Element<\/div> ' + skill.element + '<\/div><\/div><\/div>'; }       append += skill.effect + '<\/div>'; $(this).append(append); } }); });