Forked from dennishall1/github show all outdated diff comments.js
Created
January 3, 2018 12:10
-
-
Save AtnNn/6371fa0bebded6bea1f1f5dfc65e1ed8 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