Untitled
unknown
plain_text
5 months ago
745 B
1
Indexable
let wins = 0; let energy = 0; jQuery("#fightHistory .botrow:not(#fightHistory-sums").each(function(){ const row = jQuery(this).find("td"); const time = row.eq(9).text(); if((time.includes("hours ago") && +time.split("[")[1].split(" ")[0] < 25) || time.includes("minutes ago")){ const winsThisOpponent = +row.eq(6).text().trim().split("-")[0]; const target = row.eq(3).text(); const energyThisOpponent = +row.eq(5).text().trim().replace("+","").replace(",","").split("-")[0]; energy = energy + energyThisOpponent; wins = wins + winsThisOpponent; } }); const winsSession = "Wins this session: " + wins; const energySession = "Energy this session: " + energy; alert(winsSession + "\n" + energySession);
Editor is loading...
Leave a Comment