Skip to content

Instantly share code, notes, and snippets.

@VlatkoStojkoski
Last active March 18, 2022 16:25
Show Gist options
  • Save VlatkoStojkoski/b444ce745dd03f2c1425a14595319b23 to your computer and use it in GitHub Desktop.
Save VlatkoStojkoski/b444ce745dd03f2c1425a14595319b23 to your computer and use it in GitHub Desktop.
console.log([...document.querySelectorAll('tr > td.solved:nth-child(1)')].map((el) => +el.innerText).join(';'));
(
(IMPORTED) => {
IMPORTED
.split(';')
.map(x => +x)
.filter(
t =>
![...document.querySelectorAll('tr > td.solved:nth-child(1)')]
.map((el) => +el.innerText)
.includes(t)
)
.map(
t =>
[
...document
.querySelector(`.training-content > table:nth-child(1) > tbody:nth-child(2) > tr:nth-child(${t+1})`)
.querySelectorAll("td")
]
.map(t => {
t.style["background-color"]="#FFDD55"
})
);
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment