Last active
August 26, 2022 07:09
-
-
Save bouiboui/c2b606b2574e29dd326bf380cecc2f96 to your computer and use it in GitHub Desktop.
Check all Github notifications about merged PRs
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
/* | |
Snippet to auto-check the checkboxes of Github notifications about Pull Request that have been merged | |
Paste this in your console | |
*/ | |
Array.from(document.querySelectorAll('li.notifications-list-item')) | |
.filter(li => li.querySelector('.octicon-git-merge.color-fg-done')) | |
.forEach(li => li.querySelector('label > input[type=checkbox]:not(:checked)').click()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment