Skip to content

Instantly share code, notes, and snippets.

@jlucktay
Created April 15, 2020 16:02
Show Gist options
  • Save jlucktay/6d73a077c4929735fe45b7fc1c94dd86 to your computer and use it in GitHub Desktop.
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
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