AdguardTeam / AdguardTeam/ExtendedCss

Add flags support for ':matches-css()' regex patterns

Đang mở
#138 0 bình luận 0 reaction 1 người được giao Được @maximtop nhận Xem trên GitHub
enhancement Priority: P4 Version: ExtendedCss v2.2
Ngôn ngữ chính
TypeScript
Star
71
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

@realodix commented on [Thu Nov 25 2021](https://github.com/AdguardTeam/FiltersRegistry/issues/545)

Looks like AdGuard doesn't support regex flags for `:matches-css()`. I didn't notice until I saw https://github.com/AdguardTeam/AdguardFilters/issues/101083 and read the [documentation](https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#pseudo-class-matches-css), because in the diff.txt file there is no message.

```html

#to-be-blocked::before {
content: "Advertisement"
}



```

`##div.banner:matches-css-before(content: /adv/i)`

uBO requires using the `i` flag to be case insensitive.

https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters#subjectmatches-cssarg

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.