Joined October 2012
·
Posted to
Expand all "outdated diff" comments in a GitHub pull request
over 1 year
ago
Another useful one... to expand all "outdated" comment threads that actually have a recent comment in them:
javascript:(function(){var start=new Date("19 Oct 2013"); $(".comment-header-date").filter(function () { return new Date(this.firstElementChild.getAttribute("datetime")) >= start; }).closest(".outdated-diff-comment-container").addClass("open");}());
(Replacing the start date as appropriate)
Note: do not use ISO-style dates ("2013-10-19") unless you also specify a time zone -- unlike other date formats that assume your local timezone unless otherwise specified, ISO is apparently assumed to be UTC time by default.
Posted to
Expand all "outdated diff" comments in a GitHub pull request
over 1 year
ago
Follow-on: if you want to expand just your own comments, use this:
javascript:(function(){$(".outdated-diff-comment-container").filter(function () { return this.firstElementChild.textContent.indexOf("peterflynn") !== -1; }).addClass("open");}());
(Replacing "peterflynn" with your GitHub user id)
Achievements
299 Karma
36,043 Total ProTip Views

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2013

Cub
Have at least one original jQuery or Prototype open source repo

Charity
Fork and commit to someone's open source project in need

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2012

Forked
Have a project valued enough to be forked by someone else
@meellly It still works fine for me. Can you give an example pull request URL on GitHub where it doesn't work?