Skip to content

Instantly share code, notes, and snippets.

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 mh61503891/217fb8a667df3d9bb83cdc5a7ce37f16 to your computer and use it in GitHub Desktop.
Save mh61503891/217fb8a667df3d9bb83cdc5a7ce37f16 to your computer and use it in GitHub Desktop.
Bookmarklet: Highlight Updated Reports in Manaba
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