Skip to content

Instantly share code, notes, and snippets.

@filipgorczynski
Last active February 20, 2020 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipgorczynski/047b8fd3087d54cc07aca05af3370ac3 to your computer and use it in GitHub Desktop.
Save filipgorczynski/047b8fd3087d54cc07aca05af3370ac3 to your computer and use it in GitHub Desktop.
(function selectUnimportant() {
let files = document.querySelectorAll('.file');
for (let index = 0; index < files.length; ++index) {
let content = files[index].innerHTML;
if (content.indexOf('This file was deleted') !== -1 || content.indexOf('No changes.') !== -1) {
let checkbox = files[index].querySelector('.js-reviewed-checkbox');
if (!checkbox.checked) {
setTimeout(function() {checkbox.click(); }, 666);
}
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment