Created
March 24, 2019 17:47
-
-
Save joshuatz/93b0ae34d363d331d953725af8c58ecc to your computer and use it in GitHub Desktop.
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
var checkboxes = document.querySelectorAll('form[name="f"][method="POST"] table td > input[type="checkbox"]').forEach(function(c){ | |
c.checked = true; | |
}); | |
var deleteAllForever = document.querySelector('input[type="submit"][value="Delete Forever"]'); | |
var deleteAll = document.querySelector('input[type="submit"][value="Delete"]'); | |
deleteAllForever ? deleteAllForever.click() : deleteAll.click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment