Upgrade find-and-replace to work with the shadow dom.