Last active
September 26, 2020 05:44
-
-
Save vishalkakadiya/b091162b3c640d5f987b323aeea3bfa8 to your computer and use it in GitHub Desktop.
Collapse all files in github's PR while viewing changes tab/section in PR.
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
| // JUST run below code in your browser's console, in the browser's tab where PR is open. | |
| var x = document.getElementsByClassName("js-details-container"); | |
| var i; | |
| for (i = 0; i < x.length; i++) { | |
| x[i].className = x[i].className.replace(/\bDetails--on\b/g, ""); | |
| x[i].className = x[i].className.replace(/\bopen\b/g, ""); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment