Joined April 2016
·

yuichiro-yoshida

·

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.

javascript: Array.from(document.getElementsByClassName('outdated-diff-comment-container')).concat(Array.from(document.getElementsByClassName('outdated-comment'))).forEach(l => l.classList.add('open'));

The class name has changed to outdated-comment.

javascript:Array.from(document.getElementsByClassName('outdated-comment')).forEach(l => l.classList.add('open'));

@peterflynn

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");} ;}());
Achievements
1 Karma
0 Total ProTip Views