Last active
July 6, 2018 14:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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