Skip to content

Instantly share code, notes, and snippets.

@jeffgca
Created July 18, 2018 16:49
Show Gist options
  • Save jeffgca/8d5a240056047cee0ccab01ece538afa to your computer and use it in GitHub Desktop.
Save jeffgca/8d5a240056047cee0ccab01ece538afa to your computer and use it in GitHub Desktop.
get Android health stats
function getStats() {
let selectors = [
'.criteria-widget',
'.status-green',
'.status-yellow',
'.status-red'
];
return selectors.map((s) => {
return [s, document.querySelectorAll(s).length];
});
}
console.table(getStats())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment