Created
July 14, 2015 05:43
-
-
Save asev/4bf5d618a5c6b7631551 to your computer and use it in GitHub Desktop.
Bitbucket load all diffs in pull request
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
/* Add this line to bookmarks and use when you see | |
* "Oops! You've got a lot of code in this diff and it couldn't load with the page." | |
* on a pull request at Bitbucket. | |
*/ | |
javascript:(function(){[].forEach.call(document.querySelectorAll(".load-diff"),function(a){a.click()})})(); |
Additionally if you want to hide all paths which have an equal number of changed lines (+ / - the same):
javascript:(function(){[].forEach.call(document.querySelectorAll("ul#commit-files-summary .commit-file-diff-stats"), function(e) {const v = (i) => parseInt(e.getElementsByTagName("span")[i].textContent.trim(), 10); (0 == v(0) + v(1)) && (e.parentElement.style.display = 'none');});})();
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the following works: