Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeonanCarvalho/c0041e8741b2639fb5b6d2292ddeea87 to your computer and use it in GitHub Desktop.
Save LeonanCarvalho/c0041e8741b2639fb5b6d2292ddeea87 to your computer and use it in GitHub Desktop.
/**
Run at developer consol to get total from paypal report
**/
const tableSelector = '#app-container > div.css-1a33u3k.e177xzf81.ppvx_container > div > div > div.css-d5zi6y.ewjo4hi0 > div:nth-child(3) > div > div > div:nth-child(1) > div > div > div > div > div > div > table > tbody > tr > td:nth-child(7) > p';
const values = document.querySelectorAll(tableSelector);
let total = 0;
for (let value of values) {
total += parseFloat(value.innerText.split(' ')[1])
}
console.info(total);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment