hide-if-contains-similar-text
The hide-if-contains-similar-text
snippet hides any HTML element based on similar text content.
This snippet uses a pre-sorted Levenstein distance for cases where the content has chuffled characters or text.
Parameters
Name | Description | Mandatory |
---|---|---|
search | The string to match to the similar text. The text is considered similar text assuming it's not hidden by CSS properties or other means. If the string begins and ends with a slash | Yes |
selector | The CSS selector that an HTML element must match for it to be hidden. | Yes |
| The CSS selector that an HTML element containing the given string must match; defaults to the value of the selector argument. | No |
Filter examples
The following table lists examples that use the hide-if-contains-similar-text
snippet:
Filter | Result |
---|---|
| Hides any |
| Hides any |
| Hides any |
Last updated