Last active
February 20, 2020 11:30
-
-
Save filipgorczynski/047b8fd3087d54cc07aca05af3370ac3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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