Skip to content

Instantly share code, notes, and snippets.

@bouiboui
Last active August 26, 2022 07:09
Show Gist options
  • Save bouiboui/c2b606b2574e29dd326bf380cecc2f96 to your computer and use it in GitHub Desktop.
Save bouiboui/c2b606b2574e29dd326bf380cecc2f96 to your computer and use it in GitHub Desktop.
Check all Github notifications about merged PRs
/*
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