Last active
June 12, 2020 12:56
-
-
Save Prozi/96b52887b2711d217b7ac367de827248 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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