AdguardTeam / AdguardTeam/FiltersCompiler

Accept `##* { remove: true; }` from third-party filters as Extended CSS rules

未关闭
#267 0 条评论 0 个 reaction 已指派 1 人 已被 @maximtop 认领 在 GitHub 查看
Priority: P4
主要语言
JavaScript
星标
64
派生
11
PR 合并指标
30 天内没有已合并 PR

描述

Dozens of rules (66 at the moment) like these can be loaded Extended CSS from **third-party** filters
```
Error: "Invalid cosmetic rule, wrong brackets" in the rule: "mcdonalds.pl##body > .cookies { remove: true }"
Error: "Invalid cosmetic rule, wrong brackets" in the rule: "piekarniaklos.pl###privacy-policy-info { remove: true }"
Error: "Invalid cosmetic rule, wrong brackets" in the rule: "polska6.pl###modal { remove: true }"
Error: "Invalid cosmetic rule, wrong brackets" in the rule: "purepc.pl##.cookiesinfo { remove: true }"
Error: "Invalid cosmetic rule, wrong brackets" in the rule: "rynek-turystyczny.pl###modal-rodo { remove: true }"
```

Convert `##` to `#$?#` in `{ remove: true }`/`{ remove: true; }` rules.

Fix it separately, **NOT** in a large compiler update for a less complex check.

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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