AdguardTeam / AdguardTeam/SafariConverterLib

Element hiding rule with a large number of domains applied as generic rule

未關閉
#122 0 則留言 0 個 reaction 已指派 1 人 已被 @maximtop 認領 在 GitHub 檢視
Priority: P4
主要語言
Swift
星號
78
分支
20
PR 合併指標
30 天內沒有已合併 PR

描述

Related issue: https://github.com/AdguardTeam/AdguardFilters/issues/231700

#### Steps to reproduce

1. Disable all filters
2. Enable AdGuard Social filter
3. Go to [https://wattmann.jp/search/](https://adguardteam.github.io/AnonymousRedirect/redirect.html?url=https%3A%2F%2Fwattmann.jp%2Fsearch%2F)

### Actual behaviour

Element with `.share` class is hidden. The problem is that there **is no rule in the filter** that would block this element on this site (none of the filters contain rules for this site).

The rule, which applied as generic
https://github.com/AdguardTeam/AdguardFilters/blob/01a51063e7bd53ac4dd8f59b0766e95f0e16b31e/SocialFilter/sections/specific.txt#L13

We also have an unblocking rule for that rule, it seems they are related to the problem
`recorder.google.com#@#.share`
`developer.mozilla.org#@#.share`
I tried to check when they were removed - in this case the problem is not reproducible.

Also CB file has 1189 elements

```
"action": {
"type": "css-display-none",
"selector": ".share"
}
```

[blocking-content-rules-social.zip](https://github.com/user-attachments/files/28105091/blocking-content-rules-social.zip)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。