Joined April 2016
·
Posted to
Expand all "outdated diff" comments in a GitHub pull request
over 1 year
ago
The class name has changed to outdated-comment
.
javascript:Array.from(document.getElementsByClassName('outdated-comment')).forEach(l => l.classList.add('open'));
Posted to
Expand all "outdated diff" comments in a GitHub pull request
over 1 year
ago
Hi.
Thank you for this article.
Now GitHub seems to no longer use jQuery, so this bookmarklet doesn't work.
error: Uncaught TypeError: $ is not a function
So Please update this article using pure JavaScript like this:
javascript:(function() {var list = document.getElementsByClassName("outdated-diff-comment-container"); for (var i = 0; i < list.length; i++) {list[i].classList.add("open");} ;}());
It seems that old pull requests have the class name 'outdated-diff-comment-container' and pull requests created after specification change have the class name 'outdated-comment'.
This works for both.