Toggle viewed status: Press any key while hovering over a file diff to mark it as viewed (or unmark if already viewed)
Automatic navigation: In large pull request mode (where GitHub shows only one file at a time), automatically navigates to the next file ('j') when marking as viewed, or previous file ('k') when unmarking
Smart fallback: If no file is under the cursor, automatically targets the first visible file in the viewport
Usage
Hover over any file diff and press any key to toggle its viewed status
In large pull request mode (single file visible), the script will automatically navigate: