Last active
November 20, 2018 14:01
-
-
Save mkody/0c8d64f5872026a45aa357c04d9b4e0e to your computer and use it in GitHub Desktop.
Only show highlighted runs from GDQ's schedule
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
// 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