Skip to content

Instantly share code, notes, and snippets.

@stecb
Created November 30, 2015 21:32
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 stecb/90782aeb4ec5997ff97e to your computer and use it in GitHub Desktop.
Save stecb/90782aeb4ec5997ff97e to your computer and use it in GitHub Desktop.
get total of orders page on amazon.it
[].slice.call(document.querySelectorAll(".a-span2 .value")).map(function(e){return parseFloat(e.textContent.trim().split("EUR")[1].trim().replace(",","."))}).reduce(function(e,t){return e+t});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment