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
58 stars 37 forks source link

Predefined (localized) generators #6

Open icaine opened 8 years ago

icaine commented 8 years ago

It would be awesome to have a feature where u can set to a field something like :name(cs|sk,en) which generates some czech|slovak name and when there are no names for these languages it would use english as fallback.

Names and some basic fields (city, phones etc) could be predefined in source code (by the time filled by community?) but support for user lists would be even super awesome:)

sarahavilov commented 8 years ago

so this :name(cs|sk,en) can be done through the random string generation if localization is ignored, right? e.g.: /(?:name1)|(?:name2)/

It seems like impossible to have a good set of fields that are useful to many users. But to me have more FAQs describing capabilities of this new random generator is more useful.

icaine commented 8 years ago

Yes you can achieve same goal by using randexp but setting it everytime is kinda tedious. If that works out of box it will make testing forms much more user friendly. I basically describe what i personally miss in other form generators. Atm i am forced to use Chrome and Form Filler (https://chrome.google.com/webstore/detail/form-filler/bnjjngeaknajbdcgpfkgnonkmififhfo). Its so far best form filler for testing with random data and only thing i miss are localized generators. It has predefined generators but for english only.

PS: u dont have to use /(?:name1)|(?:name2)/.. /name1|name2/ should work too;)