Created
April 15, 2020 16:02
-
-
Save jlucktay/6d73a077c4929735fe45b7fc1c94dd86 to your computer and use it in GitHub Desktop.
On a GitHub PR "files changed" page, run this in your browser console to mark all 'vendor/*' files as viewed
This file contains 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
document.querySelectorAll("*[data-path*='vendor/']").forEach(el => { | |
const item = el.querySelectorAll("input[type=checkbox][name=viewed]:not(:checked)")[0] | |
if (typeof item !== "undefined") { | |
setTimeout(function () { | |
item.click() | |
}, 1000) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment