Last active
February 13, 2019 16:10
-
-
Save peterflynn/5980273 to your computer and use it in GitHub Desktop.
Bookmarklet to expand all collapsed comments in a GitHub pull request (places where it says "discussed an outdated diff")
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
// DEPRECATED: See "Expand All Comments" at https://gist.github.com/peterflynn/ace5dd3d7a8ec645cd42 for | |
// a more up to date, maintained version of this. | |
// Original bookmarklet from this gist (does not work anymore): | |
// javascript:(function() { $(".outdated-diff-comment-container").addClass("open"); }()); | |
// Newer, working version (from link above as of Jan 2017): | |
// javascript:(function() { document.querySelectorAll(".outdated-diff-comment-container").forEach(function(n) {n.classList.add("open")}) }()); |
In case you are interested: This was recently implemented in the browser extension sindresorhus/refined-github
Updated JS bookmark for recent Github redesign:
javascript:Array.from(document.getElementsByClassName('outdated-comment')).forEach(l => l.setAttribute('open',true));
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated version:
Detail:
https://coderwall.com/p/akdgoq/expand-all-outdated-diff-comments-in-a-github-pull-request