Skip to content

Instantly share code, notes, and snippets.

@vncsna
Last active December 9, 2024 16:45
Show Gist options
  • Save vncsna/9767dd85a9a5a9f21dc14ea6d7f41717 to your computer and use it in GitHub Desktop.
Save vncsna/9767dd85a9a5a9f21dc14ea6d7f41717 to your computer and use it in GitHub Desktop.
unselect_pull_request_files.js
// Unselect all
document.getElementsByName("viewed").forEach(ch => {if(ch.checked) {ch.click()}})
// Select some with "key"
document.getElementsByName("viewed").forEach(ch => { if (!ch.checked && ch.id.includes("key")) { ch.click(); } });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment