Skip to content

Instantly share code, notes, and snippets.

@JulianNorton
Last active July 6, 2018 14:31
Show Gist options
  • Save JulianNorton/282032286cd77ecf06f18480044ee776 to your computer and use it in GitHub Desktop.
Save JulianNorton/282032286cd77ecf06f18480044ee776 to your computer and use it in GitHub Desktop.
deletes amazon shopping cart by finding an element by input value of "delete" and clicking it with a delay
function click_input_items() {
matching_inputs = document.querySelectorAll('input[value="Delete"]');
matching_inputs.forEach((ele)=>{
setInterval(function(){ele.click()}, 100);
})
}
click_input_items()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment