Skip to content

Instantly share code, notes, and snippets.

@EvanBacon
Last active July 15, 2023 05:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanBacon/1ea06ed33d768fd46cc1f866770b6672 to your computer and use it in GitHub Desktop.
Save EvanBacon/1ea06ed33d768fd46cc1f866770b6672 to your computer and use it in GitHub Desktop.
Select and dismiss GH notifications for merged and closed issues/PRs. https://twitter.com/Baconbrix/status/1679925775162548224?s=20
[...document.querySelectorAll('.notifications-list-item:has(.octicon-git-merge)'), ...document.querySelectorAll('.notifications-list-item:has(.octicon-skip)'), ...document.querySelectorAll('.notifications-list-item:has(.octicon-issue-closed)'), ...document.querySelectorAll('.notifications-list-item:has(.octicon-discussion-closed)'), ...document.querySelectorAll('.notifications-list-item:has(.octicon-git-pull-request-closed)')].forEach(el => el.querySelector('input').click()); setTimeout(() => document.querySelector('button[type="submit"][role="menuitem"][title="Done"].btn').click(), 200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment