Created
March 21, 2017 15:35
-
-
Save hogashi/da13b63b7d18dc76f70753e053ddaf04 to your computer and use it in GitHub Desktop.
removes diff stat of binary files (shown as "BIN") at "file changes" in GitHub.
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
Array.from( | |
document.getElementsByClassName('js-diff-progressive-container') | |
) | |
.forEach(container => { | |
Array.from( | |
container.getElementsByClassName('Details') | |
) | |
.forEach(detail => { | |
if (detail.getElementsByClassName('diffstat')[0].innerHTML.match(/BIN/)) { | |
detail.parentNode.removeChild(detail) | |
} | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment