Skip to content

Instantly share code, notes, and snippets.

@maranemil
Created August 2, 2024 08:24
Show Gist options
  • Save maranemil/287e35e8c82e4fbebac369926f5ec776 to your computer and use it in GitHub Desktop.
Save maranemil/287e35e8c82e4fbebac369926f5ec776 to your computer and use it in GitHub Desktop.
Mark all Github PR files as viewed or not-viewed
Mark all files as viewed/not-viewed
https://github.com/refined-github/refined-github/issues/2444
https://github.com/refined-github/refined-github/issues/2865
https://stackoverflow.com/questions/69945775/how-to-unview-toggle-all-the-viewed-files-on-github-pull-request
GitHub: Mark all as not viewed
javascript: document.querySelectorAll('.js-reviewed-checkbox').forEach(input => !input.checked || input.click());
GitHub: Mark all as viewed
javascript: document.querySelectorAll('.js-reviewed-checkbox').forEach(input => input.checked || input.click());
GitHub: Display all source diffs
javascript: document.querySelectorAll('.js-source').forEach(button => button.click());
GitHub: Display all rich diffs
javascript: document.querySelectorAll('.js-rendered').forEach(button => button.click());
Alt-click
Shift-click
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment