Last active
August 22, 2022 12:52
-
-
Save mh61503891/217fb8a667df3d9bb83cdc5a7ce37f16 to your computer and use it in GitHub Desktop.
Bookmarklet: Highlight Updated Reports in Manaba
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
const table = document.getElementsByTagName("table")[2]; | |
for (const row of table.rows) { | |
try { | |
const last_submitted_at = new Date(row.cells[3].innerText.split("\n")[0]); | |
const last_scored_at = new Date(row.cells[6].innerText.split("\n")[0]); | |
if(last_submitted_at > last_scored_at) { | |
row.style.backgroundColor = "red"; | |
} else { | |
/* do nothing */ | |
} | |
} catch (error) { | |
console.error(error); | |
} | |
} | |
/* @see https://mrcoles.com/bookmarklet/ */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment