diff --git a/docs/general/ad-filtering/create-own-filters.md b/docs/general/ad-filtering/create-own-filters.md index 06d6407bfe3..09df7f4e6ea 100644 --- a/docs/general/ad-filtering/create-own-filters.md +++ b/docs/general/ad-filtering/create-own-filters.md @@ -3435,6 +3435,28 @@ CSS rules may operate differently [depending on the platform](#cosmetic-rules-pr ::: +:::info Adblock Plus compatibility + +In AdGuard products that use **CoreLibs version 1.18 or later**, you can also use element hiding rules to inject +a `remove: true` declaration: + +```adblock +example.org##body { remove: true; } +``` + +This usage is discouraged in favor of using [CSS rules](#cosmetic-css-rules) and is only supported for compatibility with filter lists written for Adblock Plus. + +Element hiding exceptions (`#@#`) are matched by the selector part only, ignoring the declarations block part. +For example, the above rule can be disabled by any of the following exception rules: + +```adblock +example.org#@#body +example.org#@#body { remove: true; } +example.org#@#body{remove:true;} +``` + +::: + ### Extended CSS selectors {#extended-css-selectors} - [Limitations](#extended-css-limitations)