Created
December 31, 2023 04:37
-
-
Save devinschumacher/bdddb21206e096f61e7f05ef7bdc4010 to your computer and use it in GitHub Desktop.
JavaScript to click all input elements with the value "viewed" on Github code reviews (aka click all check boxes in code review with javascript in dev tools console
This file contains hidden or 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
| // JavaScript to click all input elements with the value "viewed" on Github code reviews | |
| // AKA - click all check boxes in code review with javascript in dev tools console | |
| // Paste into dev tools console | |
| document.querySelectorAll('input').forEach(input => { | |
| if (input.value.toLowerCase() === 'viewed') { | |
| input.click(); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment