Skip to content

Instantly share code, notes, and snippets.

@mkody
Last active November 20, 2018 14:01
Show Gist options
  • Save mkody/0c8d64f5872026a45aa357c04d9b4e0e to your computer and use it in GitHub Desktop.
Save mkody/0c8d64f5872026a45aa357c04d9b4e0e to your computer and use it in GitHub Desktop.
Only show highlighted runs from GDQ's schedule
// FOR USE WITH https://greasyfork.org/fr/scripts/31092-gdq-schedule-highlighter
// Hide all runs first
document.querySelectorAll('#runTable tbody tr:not(.day-split)').forEach(el => {
el.style.display = 'none'
})
// Show highlighted runs and remove background color
document.querySelectorAll('#runTable tbody tr.scheduled').forEach(el => {
el.style.display = null
el.style.backgroundColor = 'transparent'
})
// Hide highlight buttons
document.querySelectorAll('button.schedule').forEach(el => {
el.parentElement.style.display = 'none'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment