One-liner to untick every checkbox on a webpage. Perfect for PACER, government portals, or any long form where you want to start fresh.
| Platform | Method | Best for |
|---|---|---|
| Mac | AppleScript (Safari) | Automating / Shortcuts / Script Editor |
| Any | Bookmarklet | Reusable one-click button in your bookmarks bar |
| Mac | Browser Console | Any Mac browser, one-off use |
| Windows | Browser Console | Any Windows browser, one-off use |
Open Script Editor (⌘ + Space → type "Script Editor" → Enter), then paste this in (or save as an .scpt and trigger it from the Shortcuts app):
tell application "Safari"
activate
tell current tab of window 1
do JavaScript "document.querySelectorAll('input[type=\"checkbox\"]').forEach(cb => cb.checked = false);"
end tell
end tellIf you use Chrome or Brave instead of Safari:
tell application "Google Chrome"
activate
execute front window's active tab javascript "document.querySelectorAll('input[type=\"checkbox\"]').forEach(cb => cb.checked = false);"
end tellAdd a one-click button to your bookmarks bar that works on any site.
- Create a new bookmark (any URL — e.g.,
google.com). - Edit it and replace the URL with this:
javascript:(function(){document.querySelectorAll('input[type="checkbox"]').forEach(cb=>cb.checked=false);})();- Name it Uncheck All.
- Click it whenever you’re on a page with annoying pre-ticked boxes.
- Press
Cmd + Option + J(Chrome/Brave/Edge) orCmd + Option + K(Firefox).
Safari:Cmd + Option + C— enable the Develop menu in Safari Settings → Advanced first. - Paste this and hit Return:
document.querySelectorAll('input[type="checkbox"]').forEach(cb => cb.checked = false);- Press
F12(orCtrl + Shift + Jin Chrome/Edge/Brave,Ctrl + Shift + Kin Firefox). - Click the Console tab.
- Paste this and press Enter:
document.querySelectorAll('input[type="checkbox"]').forEach(cb => cb.checked = false);If the checkboxes look unchecked but the site doesn’t “notice,” the page is probably waiting for a change event. Use this stronger version:
document.querySelectorAll('input[type="checkbox"]').forEach(cb => {
cb.checked = false;
cb.dispatchEvent(new Event('change', { bubbles: true }));
});Only want to untick checkboxes inside a specific table (e.g., skip the header row)?
// Example: only rows in a table with class "attachments"
document.querySelectorAll('table.attachments input[type="checkbox"]').forEach(cb => {
cb.checked = false;
});Right-click a checkbox → Inspect to find the table’s class or ID, then swap table.attachments for the right selector.
- Custom “fake” checkboxes made from
<div>or<span>tags won’t respond. - Government/legacy sites like PACER use real HTML checkboxes, so this works perfectly there.