jure965 / OpenLorem

Lorem ipsum API client web extension
GNU General Public License v3.0
15 stars 6 forks source link

This is a cool and very useful add on, thanks! #8

Closed bisonbleu closed 6 years ago

bisonbleu commented 7 years ago

And now, this is a feature request. It would be great if one could simply right-click in a field to populate it with some Lorem ipsum (from a contextual menu). Possible?

In the old days, there was an Add on named 'Dummy Lipsum' (now defunct) which did just that and it was super useful. :-)

jure965 commented 7 years ago

This is a very good idea. We will look into it, if it's possible with webextensions. Thank you for your feedback.

BojanKogoj commented 7 years ago

@bisonbleu and @jure965, I could use some advice.

I managed to get most of it working, however, the content_script that adds text to the clicked field doesn't have access to the loader (which actually loads data). Also, waiting for network reply in this situation might not be the best.

Would it be ok if data (Lorem ipsum) came from a predefined text, stored locally, and ignore other providers?

bisonbleu commented 7 years ago

@BojanKogoj, I think 'predefined text' is smart, more efficient and likely covers more than 95% of use cases. Generic hard coded Lorem ipsum is all I need, 4 or 5 paragraphs. The provider feature is nice the first and second time, but after that it's nothing more than insignificant bells and whistles. ;-)

BojanKogoj commented 6 years ago

@bisonbleu Took me way too long, but it's finally done! You will probably need to enable it through options. I will upload update shortly.

image

bisonbleu commented 6 years ago

I know the feeling @BojanKogoj. That happens to me regularly. I've learned to accept that sometimes, that's just the way it is. In hindsight, it's usually well worth it.

Works great! Very nice addition, definitely worth a large beer! ;-)