Skip to content

Instantly share code, notes, and snippets.

@myaosato
Last active November 10, 2024 00:41
Show Gist options
  • Select an option

  • Save myaosato/1e5a8cf9ca97fff1ab616bd950c71222 to your computer and use it in GitHub Desktop.

Select an option

Save myaosato/1e5a8cf9ca97fff1ab616bd950c71222 to your computer and use it in GitHub Desktop.
Snippets
// 2024-11-10
Array.from(document.getElementById('g-items').querySelectorAll('.a-price-whole'))
.map(x => Number(x.innerHTML.replace(',', '')))
.reduce((s, x) => s + x, 0)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment