Last active
March 10, 2019 16:39
-
-
Save nathansmith/942659 to your computer and use it in GitHub Desktop.
Used to check all checkboxes in a page.
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
// Paste into Firebug or Chrome Dev Tools console | |
// when viewing a page with multiple checkboxes. | |
(function(d) { | |
var input = d.querySelectorAll('input[type="checkbox"]'); | |
var i = input.length; | |
while (i--) { | |
input[i].checked = true; | |
} | |
})(this.document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ROCK! Thanks Nathan!