Skip to content

Instantly share code, notes, and snippets.

@dokterbob
Last active January 31, 2017 13:41
Show Gist options
  • Save dokterbob/d51d09f14260916e0a23 to your computer and use it in GitHub Desktop.
Save dokterbob/d51d09f14260916e0a23 to your computer and use it in GitHub Desktop.
Exclude all devices from play store (whitelisting)
// 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