Last active
January 31, 2017 13:41
-
-
Save dokterbob/d51d09f14260916e0a23 to your computer and use it in GitHub Desktop.
Exclude all devices from play store (whitelisting)
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
// To be executed from Chrome console when selecting excluded devices, excludes all options by default | |
var checkboxes = document.getElementsByTagName('checkbox'); | |
for (var i=0; i< checkboxes.length; i++) { | |
var checked = checkboxes[i].getAttribute('aria-checked'); | |
if (checked != "true") { | |
checkboxes[i].click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment