sarahavilov / autofillforms-e10s

A multi browser extension that enables you to fill out web forms with one click
https://webextension.org/listing/autofill-forms.html
57 stars 39 forks source link

Feature request: Copy fields as querystring, fill fields from querystring in clipboard #34

Open mk-pmb opened 7 years ago

mk-pmb commented 7 years ago

I often encounter websites with broken form submission so I have to fill in the same form over and over. I'd prefer to do that once, then before submit, copy all fields to clipboard, preferably as a querystring. When submit turns out to have failed and I'm back to the form in original state (usually a mixture of empty and wrong values), I'd like to have it populated from clipboard, with the non-standard addition that /\s*\n\s*/ shall be treated as &. Fields not mentioned in the clipped querystring shall be left as they are.

To make this work with form elements that don't have a name but just an id, (better approach below.) we'll need some user-chosen marker. I suggest we confine "marker" to "prefix string" and use U+0007 bell as the default prefix that marks the remainder of the field name as "actually it's an id not a name".

Edit: More deviations from standard:

Update: Just found a form where the inputs have neither a name nor an id, just the placeholder attribute to distiguish them. The app seems to use one of the CSS classes on an ancestor element of the input fields to address them, but I can't see how to make that work accross sites.

Thus, new idea: Let's make all the field names in the query string start with the best available identifying property (id, name, placeholder), a dot, and then the value of the identifying property.