Skip to content

Instantly share code, notes, and snippets.

@dennishall1
Last active September 11, 2018 07:30
Show Gist options
  • Save dennishall1/4a0728ae93c901db7d059d2e994839e6 to your computer and use it in GitHub Desktop.
Save dennishall1/4a0728ae93c901db7d059d2e994839e6 to your computer and use it in GitHub Desktop.
Show all outdated diff comments on a pull request in Github -- Simulate clicking on all links that say "Show outdated"
$$('.btn-link.text-gray').forEach(function(item){
if(item.innerHTML.match(/Show outdated/)){
item.dispatchEvent(new MouseEvent('click', {
view: window,
bubbles: true,
cancelable: true
}));
}
});
@ltfschoen
Copy link

Thank you, brilliant!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment