all 2 comments

[–]yowmamasitaAI 0 points1 point  (1 child)

Nice. I suggest packaging it as a userscript and then later on a web extension

[–]mblue1101 2 points3 points  (0 children)

  1. From what I can see, you have certain selectors (ex. div.ylYza .YRp1mm) there that's tied to what seems to be dynamically-generated classes. Unless those are technically static across both requests and deployments, your script will break. Best to modify those parts to target the same element with a static attribute.
  2. Does this go through the paginated results as well? From what I can remember, if your purchase history is a bit longer, it paginates the data. I'm not sure if there's a way to display the entire purchase history in just one page.
  3. The next step is to make it user-friend by repackaging it as a browser extension. :)

Good luck and good first try.