Skip to content

Instantly share code, notes, and snippets.

@MosheBerman
Created July 15, 2020 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MosheBerman/35e00407337b404fb235e0a9649fe50b to your computer and use it in GitHub Desktop.
Save MosheBerman/35e00407337b404fb235e0a9649fe50b to your computer and use it in GitHub Desktop.
/**
Find all of the units without zero scans.
*/
const rows = Array.from(document.getElementsByTagName("tr"));
const entries = rows.filter( (r) => { return rows.childElementCount == 4});
// This next line hides the rows with no scans.
entries.filter(e => e.children[3].innerText === "0").forEach(e => e.style.display = 'none')
// This row logs the rows with scans.
// entries.filter(e => e.children[3].innerText !== "0").forEach(console.log(e.innerText))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment