hide-if-contains-image
The hide-if-contains-image snippet hides any HTML element (or its ancestors) that match a CSS selector if the element background image matches a given pattern.
Parameters
|
Name |
Description |
Mandatory |
|---|---|---|
|
search |
The pattern (hex representation) to look for in background images. Enclose in |
Yes |
|
selector |
The CSS selector that an HTML element must match to be hidden. |
Yes |
|
searchSelector |
CSS selector for elements containing the pattern. Defaults to |
No |
Filter examples
|
Filter |
Result |
|---|---|
|
|
Hides any |
|
|
Hides any |
|
|
Hides |