AdguardTeam / AdguardTeam/AdguardForiOS

Filter with `:remove-attr()` breaks other filters in list

未关闭
#2,546 2 条评论 2 个 reaction 已指派 1 人 已被 @ESurina 认领 在 GitHub 查看
Bug Priority: P4
主要语言
Swift
星标
1.7k
派生
240
PR 合并指标
30 天内没有已合并 PR

描述

### Please answer the following questions for yourself before submitting an issue

- [x] Filters were updated before reproducing an issue
- [x] I checked the [knowledge base](https://adguard.com/kb/) and found no answer
- [x] I checked to make sure that this issue has not already been filed

### AdGuard version

4.5.22

### Environment

- OS: 26.6
- Device: iPhone 15

### Ad Blocking

_No response_

### Privacy

_No response_

### Social

_No response_

### Annoyances

_No response_

### Security

_No response_

### Other

_No response_

### Language-specific

_No response_

### Advanced protection for Safari

- [x] yes, I do

### Which DNS server do you use?

DNS protection disabled

### DNS protocol

DNS protection disabled

### Custom DNS

_No response_

### DNS filtering

- [ ] yes, I do

### Custom DNS filter

_No response_

### DNS implementation

DNS protection disabled

### Tunnel mode

DNS protection disabled

### Low-level settings

Bootstrap server:
Fallback server:
Blocking mode, etc:

### Issue Details

Steps to reproduce:
1. Open AdGuard app
2. Open *Filters > Custom* and add filter `https://gist.githubusercontent.com/Stevoisiak/101137e2de7d71849145f2817064e09c/raw/3d8f431a3b6bdd3ef2e54964e8a02f8a8a311787/adguard-ios-remove-bug.txt`
```
! Title: Adguard iOS remove bug
www.reddit.com##reddit-search-small[expanded-composer-enabled]:remove-attr(expanded-composer-enabled)
www.reddit.com###answers-nav-button
```
3. Wait for filters to convert
4. Open `https://www.reddit.com/r/AskReddit/comments/1vzcoet/what_antagonist_from_a_video_game_is_impossible/` in Safari

### Expected Behavior

The sparkling AI button in the header is hidden by rule `www.reddit.com###answers-nav-button`

### Actual Behavior

The sparkling AI button is not hidden. The presence of the uBO-styled `:remove-attr()` rule breaks the `#answers-nav-button` filter.

### Screenshots

AI Button on Reddit
Image

AdGuard filters
Image

### Additional Information

[AdGuard_logs.zip](https://github.com/user-attachments/files/31493513/AdGuard_logs.zip)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。