Autofill Data Sweeper
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This script lets you clear all filled form fields on any webpage with a single click. When you're testing a website, filling out forms, or just want to reset a page to its default state, the "Sweep" button clears text inputs, textareas, checkboxes, radio buttons, and select dropdowns. You can choose which field types to clear—for example, only clear text inputs while leaving checkboxes untouched. You can also exclude specific fields by name or ID using a configurable list. A confirmation dialog appears before clearing to prevent accidental data loss. The script works on any form on the page and updates dynamically as new forms load.
WHERE IT RUNS
The script runs on all websites (*://*/*), making it truly universal. It works on any page with forms—registration forms, login forms, search forms, checkout forms, and more. It supports both desktop and mobile views.
HOW TO USE
After installation, the settings panel appears on the left side of the screen with the gear emoji (⚙️). Open the panel to configure the script:
- The "Enable sweeper" toggle enables or disables the script.
- In the "Clear Settings" section, check which field types you want to clear: Text inputs, Textareas, Checkboxes, Radio buttons, and Select dropdowns.
- Enter field names or IDs in the "Exclude fields" input to prevent specific fields from being cleared (comma separated).
- Click "Sweep All Fields" to clear all filled fields on the page.
- Click "Count filled fields" to see how many fields will be cleared before sweeping.
The script works automatically—just click the Sweep button and all selected fields will be reset.
TECHNICAL SECTION — REAL MECHANISM
The script finds form fields by querying for input elements (excluding hidden, submit, button, reset, file, and password inputs), textareas, and select elements. For each field, it determines its type and checks if it should be cleared based on the clearTypes setting and the excludeFields list. For text inputs and textareas, it clears the value by setting el.value = '' and dispatching "input" and "change" events. For checkboxes and radio buttons, it restores the default checked state using el.defaultChecked and dispatches a "change" event. For select dropdowns, it finds the option that was originally selected (using defaultSelected) and restores it, then dispatches "change" and "input" events. The excludeFields check compares the field's name or ID against the comma-separated list, and skips any that match. A confirmation dialog is shown before clearing to prevent accidental data loss.
THE PANEL
The settings panel is built with BotGentz's BGPanel component. It is draggable via its header, allowing you to reposition it anywhere on the screen. The panel snaps to the left edge by default but can be moved freely. Click the gear emoji to collapse the panel into a small bubble, and click the bubble to expand it again. The panel remembers its position per page session. Press the Escape key to quickly close or minimize the panel. The panel includes a status flash bar that provides visual feedback when settings are changed or actions are performed. All settings save automatically via GM_setValue.
PLEASE NOTE
This script requires the free BotGentz browser extension to run. It does not function as a standalone Chrome extension and does not use chrome.* APIs. The script clears form fields by resetting them to their default values—it does not delete or modify the fields themselves. Some websites may use JavaScript to manage form state, which may not be fully reset by this script. The excludeFields feature helps prevent clearing fields that are important or should be preserved. The script never reads or writes password fields, hidden inputs, or file inputs. All DOM operations use safe methods (style properties, textContent, appendChild) and never use innerHTML.