Skip to content

Instantly share code, notes, and snippets.

@JamieMason
Created November 29, 2021 16:55
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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