Skip to content

Instantly share code, notes, and snippets.

@JamieMason
Created November 29, 2021 16:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamieMason/333848c4749a2d59b6d410732f5798dc to your computer and use it in GitHub Desktop.
Save JamieMason/333848c4749a2d59b6d410732f5798dc to your computer and use it in GitHub Desktop.
Tick "Viewed" on every file you've scrolled past on a GitHub Pull Request

GitHub PR bulk mark file as viewed

Tick "Viewed" on every file you've scrolled past on a GitHub Pull Request

// Tick "Viewed" on every file you've scrolled past on a
// GitHub Pull Request
$$('.js-reviewed-checkbox').forEach((el) => {
  if (!el.checked && window.scrollY > el.getBoundingClientRect().top) {
    el.click();
  }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment