| Rule ID | adblock/element-hiding |
| Category | Adblock Detection |
| Scope | Per-page |
| Severity | warning |
| Weight | 3/10 |
Solution
Elements matching adblock filter rules may be hidden for users with adblockers. This can affect ad revenue or hide legitimate content if element names/classes match ad patterns. Consider renaming CSS classes that unintentionally match ad-blocking patterns (like .ad-*, .banner, .sponsor).Options
This rule supports the following configuration options:| Option | Type | Default | Description |
|---|---|---|---|
maxMatchesToReport | unknown | undefined | Maximum matching elements to report in detail |
lists | unknown | undefined | Filter lists to check against |
Configuration Example
squirrel.toml
Enable / Disable
Disable this rule
squirrel.toml
Disable all Adblock Detection rules
squirrel.toml
Enable only this rule
squirrel.toml