Very neat, but recently I've tried my best to reduce my extension usage across all apps (browsers/ide).
I do something similar locally by manually specifying all the things I want scrubbed/replaced and having keyboard maestro run a script on my system keyboard whenever doing a paste operation that's mapped to `hyperkey + v`. The plus side of this is that the paste is instant. The latency introduced by even the littlest of inference is enough friction to make you want to ditch the process entirely.
Another plus of the non-extension solution is that it's application agnostic.
out of curiosity, what's the motivation behind trying to reduce your extension usage everywhere?
Smart idea! Thanks for sharing.
If we move the detection and modification process from paste to copy operation, that will reduce in-use latency