Skip to content

Instantly share code, notes, and snippets.

@ro6
Created March 7, 2021 18:13
Show Gist options
  • Save ro6/fcf7a1eb49f7036a9c49207f8914306e to your computer and use it in GitHub Desktop.
Save ro6/fcf7a1eb49f7036a9c49207f8914306e to your computer and use it in GitHub Desktop.
Selects "Refund to original payment method" for all Amazon returns on the page
Array.from(document.querySelectorAll('b'))
.filter(elem => elem.innerText.includes('original'))
.forEach(elem => elem.click())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment