Skip to content

Instantly share code, notes, and snippets.

@lesteve
Last active March 2, 2018 08:52
Show Gist options
  • Save lesteve/b4ef29bccd42b354a834 to your computer and use it in GitHub Desktop.
Save lesteve/b4ef29bccd42b354a834 to your computer and use it in GitHub Desktop.
Greasemonkey script to fold/unfold outdated diffs on github PRs
@lesteve
Copy link
Author

lesteve commented Nov 17, 2016

Changes for revision 2:

  • remove jQuery dependency. jQuery is not available in Firefox/Chrome console for some reason (very likely security)
  • outdated diffs have a separate class after the new review UI (multiple comments can be aggregated in a single review) in github

@lesteve
Copy link
Author

lesteve commented Dec 15, 2016

Changes from revision 3:

  • support legacy PRs (before "Start Review" feature) as well as recent PRs
  • leave some logging with the number of comments found

@lesteve
Copy link
Author

lesteve commented Jan 5, 2018

Changes from revision 4:

  • alt-P is taken by firefox 57 to pin tab. use ctrl-alt-p instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment