Skip to content

Instantly share code, notes, and snippets.

@iquabius
Created March 9, 2019 01:44
Show Gist options
  • Save iquabius/41b30c3181326ecb1db3a073aaa0b128 to your computer and use it in GitHub Desktop.
Save iquabius/41b30c3181326ecb1db3a073aaa0b128 to your computer and use it in GitHub Desktop.
// Soma valores do extrato no Guiabolso Web
Array.prototype.slice.call(document.querySelectorAll('.sc-jtRfpW.hTaFtu .jss88 span')).map(sp => sp.innerText).map(val => val.replace(' R$ ', '').replace(',', '.')).map(v => Number.parseFloat(v)).reduce((acc, n) => (acc + n), 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment