StylishThemes / GitHub-Custom-Emojis

:_gimme: This userscript allows you to use and add custom emojis on GitHub
https://greasyfork.org/en/scripts/17618
MIT License
72 stars 11 forks source link

Any chance to change this tool more generic? For any textarea on any page? #2

Open luboq opened 7 years ago

luboq commented 7 years ago

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!

Mottie commented 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?

luboq commented 7 years ago

@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...)

Mottie commented 7 years ago

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.

luboq commented 7 years ago

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