AdguardTeam / AdguardTeam/FiltersCompiler

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

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

Mô tả

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.

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.