Skip to content

Instantly share code, notes, and snippets.

@nicolae-olariu
Last active October 1, 2021 14:20
Show Gist options
  • Save nicolae-olariu/f5527979bd8dc03c9ae680ce1664ca19 to your computer and use it in GitHub Desktop.
Save nicolae-olariu/f5527979bd8dc03c9ae680ce1664ca19 to your computer and use it in GitHub Desktop.
// Run the following IIFE in the browser's console to close all GitHub conversations from a PR
(() => {
const allButtons = document.querySelectorAll('[data-disable-with="Resolving conversation…"]');
const allButtonsArray = Array.from(allButtons);
if (!allButtonsArray || !allButtonsArray.length) {
return;
}
allButtonsArray.map(theMightyButton => {
theMightyButton && theMightyButton.click();
});
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment