Skip to content

Instantly share code, notes, and snippets.

@nathansmith
Last active March 10, 2019 16:39
Show Gist options
  • Save nathansmith/942659 to your computer and use it in GitHub Desktop.
Save nathansmith/942659 to your computer and use it in GitHub Desktop.
Used to check all checkboxes in a page.
// 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);
@wellington1993
Copy link

Thanks! @nathansmith

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment