Skip to content

Instantly share code, notes, and snippets.

@Prozi
Last active June 12, 2020 12:56
Show Gist options
  • Save Prozi/96b52887b2711d217b7ac367de827248 to your computer and use it in GitHub Desktop.
Save Prozi/96b52887b2711d217b7ac367de827248 to your computer and use it in GitHub Desktop.
Array.prototype.slice.call(
document.querySelectorAll('.MNGridView td.Amount > .MNText.StandardListAmount.Amount')
).map(o =>
o.innerText
.replace(/,/g, '.')
.replace(/\s/g, '')
).reduce((acc, next) => {
acc += parseFloat(next);
return acc;
}, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment