hide-if-shadow-contains
The hide-if-shadow-contains snippet hides any HTML element (or one of its ancestors) that matches a CSS selector if the text content of the element's shadow contains a given string.
Parameters
|
Name |
Description |
Mandatory |
|---|---|---|
|
search |
The string to look for in every HTML element's shadow. Enclose in |
Yes |
|
selector |
The CSS selector that an HTML element must match to be hidden. |
Yes |
Filter examples
|
Filter |
Result |
|---|---|
|
|
Hides any |
|
|
Hides any |