When you’re reviewing a pull request on GitHub it can be really useful to mark files as viewed. But sometimes you want to revisit all the files in a PR and, when it’s a large PR, it can be tedious to have to un-select ‘Viewed’ for every file. Fortunately, there’s an easier way.
document ".js-reviewed-checkbox[checked]" ;
That will find all the ‘Viewed’ checkboxes that have been checked already and click on them for you, flipping the files to being un-viewed. You can add this bookmarklet to your browser bookmarks for future use:
For Firefox and Safari, press ⌘⌥K (Mac) or ⌃⇧K (Windows/Linux). For Chrome and Edge, press F12.