Open luboq opened 7 years ago
Hi @waldens!
Thanks! I'm glad you're finding the script useful.
What do you mean by more generic? And which textareas, other than the comments, are you referring to extending this functionality into?
@Mottie If I knew the reply is so fast, I might ask this feature half a year ago when I begin to use it.
At first, I mean ANY textarea at any (at least ordinary) pages when saying 'generic', but it may not be as easy as I thought. So it would also be great if it's available in most forums, especially the phpbb type forums like this one, and discuz type is also good like this one. (If it doesn't offensive mentioning a forum only used by Chinese...)
Oh, well the userscript could be set to process and render emojis for the specific emoji code on all websites; but targeting all inputs and/or textareas would be a bit more troublesome. The dropdown script that is being used requires jQuery and using the dropdown may interfere with any other autocomplete dropdowns or other scripts, like masked inputs etc.
I'm not sure what the best solution would be here... maybe we could try to generalize it more and only target specific forums formats like phpbb, discuq and discourse sites. This would need a bit more investigation and free time.
Most of the time we use emoji to communicate and comment, so I think only matching <textarea>
is enough, rather than dealing with <input>
, whose role is more in search or <form>
area, and by which less interference from other scripts may be encountered relatively? As far as I know, in phpbb and discuz, the script that
In addition, because phpbb uses bbcode, and discourse uses markdown, perhaps it can be designed to insert html tags when holding down shift, insert bbcode tags when holding down alt, insert markdown tags when holding down ctrl?
Just thought. Only can be used on the github is very grateful already.
Thank you for making this script. Don't know why there's not much users on the greasyfork for such a good script. Maybe coders don't like emoji? It would be better if we can use custom emojis on more pages!