Last active
December 18, 2015 10:49
-
-
Save blacklizard/5771714 to your computer and use it in GitHub Desktop.
Select all friends when you want to invite for Facebook
This file contains hidden or 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 inputs = document.getElementsByTagName('input'); | |
for (var i = 0; i < inputs.length; i++) { | |
if (inputs[i].type == 'checkbox') { | |
inputs[i].click(); | |
var parent = inputs[i].parentNode; | |
parent.className = parent.className + ' selectedCheckable'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment