Last active
September 11, 2018 07:30
-
-
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"
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
$$('.btn-link.text-gray').forEach(function(item){ | |
if(item.innerHTML.match(/Show outdated/)){ | |
item.dispatchEvent(new MouseEvent('click', { | |
view: window, | |
bubbles: true, | |
cancelable: true | |
})); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, brilliant!