Created
April 27, 2021 21:51
-
-
Save daanklijn/8ef330ed847f1f4db67deb3106a858cb to your computer and use it in GitHub Desktop.
One-liner to compute the total value of aliexpress orders on a single page.
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
// Run in the console at https://trade.aliexpress.com/orderList.htm | |
Array.from(document.querySelectorAll('.amount-num')).map(x => parseFloat(x.innerText.replace('€ ','').replace('$ ',''))).reduce((a,b) => a+b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment