Last active
May 27, 2023 08:47
-
-
Save kaseopea/a3fd5afddd3071511eaf953c0c3c22d4 to your computer and use it in GitHub Desktop.
Count money spent on Aliexpress
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
/* Open /order-list page and scroll down to see all items, then paste this line in Chrome Developer Tools. */ | |
console.log(`$${Math.ceil(Array.from(document.querySelectorAll('[class*="totalPrice"]')).reduce((acc, item) => acc + Number.parseFloat(item.textContent.replace(/[^\d\.]*/g, '')), 0))}`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment