Untitled
unknown
plain_text
5 months ago
729 B
4
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("hour") && time.split("[")[1].split(" ")[0] < 25) || time.includes("minute 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 last 24h: " + wins; const energySession = "Energy last 24: " + energy; alert(winsSession + "\n" + energySession);
Editor is loading...
Leave a Comment