Links

hide-if-graph-matches

The hide-if-graph-matches snippet hides any HTML element if its structure (graph) is classified as an ad by a built-in machine learning model.
The hide-if-graph-matches snippet only works on Facebook.

Parameters

Name
Description
Mandatory
selector
A selector that produces a list of targets to hide.
Yes
tagName
An optional selector for a child element of selector to run inference on.
Yes

Filter examples

The following example uses the hide-if-graph-matches snippet:
www.facebook.com,web.facebook.com#$#hide-if-graph-matches [role=feed]>[data-pagelet^=FeedUnit_] DIV