How to unview/toggle all the Viewed files on GitHub Pull Request?

Viewed 767

I know I can manually go to PR and uncheck Viewed. Is there a shortcut to uncheck on all files in the PR? enter image description here

Found some relevant issues on GitHub https://github.com/refined-github/refined-github/issues/2444

Why I want to do it? To be able to see the comments and expand the cards which are collapsed because I manually marked viewed.

I tried Option+Click on Mac , didn't work for me.

1 Answers

Don't think the UI currently supports that. It looks like you need to tick, all checkboxes manually. Or come up with a JavaScript to find and click them for you.

Try that in your browser console.

document.getElementsByName("viewed").forEach(ch => {if(ch.checked) {ch.click()}})
Related