Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. document.querySelectorAll(".player-hours").forEach(e => {
  2. let hour = e.innerHTML.toString();
  3. while (hour.indexOf(',') > -1) {
  4. hour = hour.replace(",", "");
  5. }
  6.  
  7. e.innerHTML += ` // ${Math.round(Number(hour) / 24 / 365)} years`;
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement