Created
July 15, 2020 01:57
-
-
Save MosheBerman/35e00407337b404fb235e0a9649fe50b to your computer and use it in GitHub Desktop.
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
/** | |
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