rogershen / chrome-regex-search

Other
267 stars 56 forks source link

Support matches that cross element boundaries #13

Closed chrismwendt closed 7 years ago

chrismwendt commented 7 years ago

Previously, the entire regex had to match within a single element, which made this extension pretty much unusable on pages with lots of styling and elements (e.g. code documentation).

This PR uses findAndReplaceDOMText with a modification to support matches that cross element boundaries:

image