Drop findAndReplaceDOMText and rewrite the detection part of the plugin.