I just searched for "zero-width" and "zero width" in Chrome and Firefox's extensions stores, but didn't come up with anything.
I just searched for "zero-width" and "zero width" in Chrome and Firefox's extensions stores, but didn't come up with anything.
Code here: https://github.com/roymckenzie/detect-zero-width-characters-...
Submit a PR! I know it could be better!
Needed features:
* right-click selected text and "Sanitize and Copy" * toggle off and on ...
I put it in a gist:
https://gist.github.com/FranciscoG/01732b606a35615891103ae8e...
Unfortunately, there are a few apps that use cmd-opt-shift-V instead of cmd-shift-V. You can fix most of them using this:
https://apple.stackexchange.com/questions/182970/paste-to-ma...
After that, almost everything will use cmd-shift-V. However, Microsoft Word is still broken, apparently because it uses a slightly different command that does a similar thing, "Paste and Match Formatting". Haven't found a way to fix that yet.
The best way I can think to implement it would be listening for a copy event and replacing the text in the clipboard.
Something like:
document.addEventListener('copy', sanitizeClipboardContent);There really is no valid use case in Latin script so why is zwsp allowed next to Latin characters?! (Emojis is not a valid use case, and why do they depend on zwsp anyway?)
I don't think ctrl-shift-v will do what you think here because we're not talking about formatting at all. We're talking about regular unicode UTF-8 encoded text.