Last active
September 26, 2017 12:34
-
-
Save albertogarrido/cc981d5573dbc47143fb0ff21559c1eb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// in chrome console | |
// if many diffs will be slow :P | |
var clickAction = function(element) { element.click(); } | |
var elementsExpand = document.getElementsByClassName('load-diff-button'); | |
Array.prototype.forEach.call(elementsExpand, clickAction); | |
var elementsCollapse = document.getElementsByClassName('btn-octicon'); | |
Array.prototype.forEach.call(elementsCollapse, clickAction); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment