FakeFiller / fake-filler-extension

A browser extension for Chrome, Edge and Firefox that fills dummy text in all input fields in a page.
https://fakefiller.com
MIT License
571 stars 162 forks source link

Title is too long, body is too short #180

Open i1group opened 2 years ago

i1group commented 2 years ago

I have an issue with the text generation - it looks not as expected. For example title field should be short (normally 2-5 words) and body should be long (normally >20 words), but often title generated is longer than body: image

To workaround the issue I've created custom field configuration for title and body: image

And now it looks like this: image

So how can I generate short text for titles and long text for bodies? And add/exclude the full stop (.) at the end of the generated text?

calvinballing commented 1 year ago

Using the Regex matching in the custom fields allows for this kind of additional customization

i1group commented 1 year ago

Sorry, could you provide more details?

I've set minimum number of words for the body (as you can see on the screenshot), but it does not work for the Body field (as you can see on the screenshot). Also there is no settings for add/exclude full stop at the end of the sentence. Or am I missing something?

calvinballing commented 1 year ago

Instead of using the text type, I think you'll want to change it to the regex match. For the title I think you'd want something like this:

Screen Shot 2023-10-30 at 10 07 08 AM

For the body, I think you'd want something like this: Screen Shot 2023-10-30 at 10 12 19 AM

(you can ignore the "Regex Match" field in both cases. I'm working on a successor to this extension, and this is a screenshot from the successor)


Without seeing the underlying html, I'm not sure what you need to put in the match field, but I think the current values you have may not be matching the body field. If this doesn't work, maybe you could post a code snippet showing the element's html.

i1group commented 1 year ago

I see, this may help. Thanks @calvinballing.