Last active
January 14, 2020 15:09
-
-
Save NuarkNoir/3e8984176122437535f0c7cc1932781f to your computer and use it in GitHub Desktop.
Calculate cost of wishlist on Amazon
This file contains hidden or 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
Math.round((Array.from(document.querySelectorAll(".a-price-whole")).map(x=>~~(x.innerText)).concat(Array.from(document.querySelectorAll(".a-price-fraction")).map(x=>~~(x.innerText) / 100.))).reduce((a, b) => a + b, 0) * 100) / 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment