AdguardTeam / AdguardTeam/ExtendedCss

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

オープン
#138 コメント 0 件 リアクション 0 件 担当者 1 名 @maximtop が担当を希望しています GitHub で見る
enhancement Priority: P4 Version: ExtendedCss v2.2
主要言語
TypeScript
スター
71
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

@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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。