hide-if-contains-similar-text
The hide-if-contains-similar-text snippet hides any HTML element based on similar text content using Levenshtein distance calculations to handle scrambled or altered characters.
Parameters
|
Name |
Description |
Mandatory |
|---|---|---|
|
search |
A string to match against similar text. Enclose in |
Yes |
|
selector |
CSS selector identifying which elements to hide. |
Yes |
|
searchSelector |
CSS selector for locating the text. Defaults to |
No |