Created by: SnoopJ
This checks if the mutated node (or its parent) has the contenteditable
attribute (fixes cursor issues with DraftJS/Gmail a la #21 (closed)), or is a textarea
or input
field (following #22 in an extensible way, and should address some of #13 (closed))
This seems to fix all issues with Facebook/DraftJS, but doesn't catch every corner for Gmail. In particular, typing "millenial" in the To
field will still trigger a replacement (I'm not clear if this actually affects the recipient or is strictly cosmetic). However, the body of the message and the subject should be unaffected by the extension.