Skip to content

Instantly share code, notes, and snippets.

@Said210
Created August 26, 2020 17:35
Show Gist options
  • Save Said210/f9e9c3d8729d54b9c8bce1cb8de0b0d5 to your computer and use it in GitHub Desktop.
Save Said210/f9e9c3d8729d54b9c8bce1cb8de0b0d5 to your computer and use it in GitHub Desktop.
Filter amazon best prices [SELLER CENTRAL]
/*
Use in https://sellercentral.amazon.com.mx/inventory/ref=xx_invmgr_dnav_xx?tbla_myitable=sort:%7B%22sortOrder%22%3A%22DESCENDING%22%2C%22sortedColumnId%22%3A%22date%22%7D;search:;pagination:1;
*/
trs = document.getElementsByClassName("mt-row")
for (var i = 0; i < trs.length; i++) {
if (trs[i].innerHTML.indexOf("aui-check") == -1) {
trs[i].remove()
}
}
@Said210
Copy link
Author

Said210 commented Aug 26, 2020

  1. Scroll all the page and wait for assets to load.
  2. Open dev tools and run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment