Created
December 30, 2019 18:45
-
-
Save tanmancan/5f19b0d01509e1cadc039653d1b829e0 to your computer and use it in GitHub Desktop.
Filter Github code review files by path
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 path = 'my/file/path'; | |
const files = document.querySelectorAll(`div.file-header[data-path*="${path}"]`); | |
[...files].forEach(el => { | |
el.parentNode.style.display = 'none'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment