Paste JSON from clipboard to auto-fill form fields using CSS selectors.
- Clone this repository
- Open
chrome://extensions/in Chrome - Enable "Developer mode"
- Click "Load unpacked" and select the
PasteDropsdirectory
- Copy a JSON string to your clipboard:
{
"fields": [
{ "target": "#username", "value": "yukpiz" },
{ "target": "[name='email']", "value": "test@example.com" },
{ "target": ".form-group > input", "value": "hello" },
{ "target": "#notify-email", "checked": true }
]
}-
Trigger PasteDrops:
- Shortcut:
Ctrl+Shift+V(Mac:Cmd+Shift+V) - Toolbar: Click the PasteDrops icon in Chrome toolbar
- Shortcut:
-
Form fields matching the CSS selectors will be filled automatically.
| Key | Description |
|---|---|
fields |
Array of field definitions |
fields[].target |
CSS selector to find the input element |
fields[].value |
Value to set (for text inputs, textareas, selects) |
fields[].checked |
Set to true to check radio buttons or checkboxes |
| Selector | Matches |
|---|---|
#username |
<input id="username"> |
[name='email'] |
<input name="email"> |
.my-class input |
<input> inside .my-class |
form > input:nth-child(2) |
2nd direct child input of a form |
MIT