AdguardTeam / AdguardTeam/FiltersCompiler

Valid rules considered as invalid

Đang mở
#257 1 bình luận 0 reaction 1 người được giao Được @maximtop nhận Xem trên GitHub
bug 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ả

* not a HOST rule
```
Error: "Rule has spaces, seems to be an host rule" in the rule: "/^https:\/\/[a-z][a-z][a-z][a-z][a-z][a-z][a-z][a-z]+\.com\/en\/([a-z][a-z]+\/)?([a-z][a-z]+\/)?[a-z][a-z]+\?([a-z]+=[^&=? ]*&)*id=[12][0-9][0-9][0-9][0-9][0-9][0-9]/$script,third-party,match-case"
```

* Invalid rule only in report
```
Error: "Invalid cosmetic rule, wrong brackets" in the rule: "otomi-games.com##.clean-grid-grid-post:has(> [id^="otomi-"] + .clean-grid-grid-post-details-full) {remove:true;}"
```
In [the filters](https://github.com/AdguardTeam/AdguardFilters/blob/b279e7977cc6065d1811c9ed48ed2eb8384dc77c/BaseFilter/sections/specific.txt#L18) we have it with `#$?#`
```
otomi-games.com#$?#.clean-grid-grid-post:has(> [id^="otomi-"] + .clean-grid-grid-post-details-full) { remove: true; }
```

* modifier is known
```
Error: "Unknown modifier: xmlprune=/MPD/Period[contains(@id,'ad-')]" in the rule: "/manifest.mpd$xmlprune=/MPD/Period[contains(@id\,'ad-')],domain=hulu.com"
```

* All these rules are correct, in AdBlock syntax from EasyList
```
Error: "Unknown pseudo-class ':0' in selector: '#readerChromeOverlayBottom.readerChromeOverlayBottom-banner-desktop {bottom:0 !important;}'" in the rule: "read.amazon.*###readerChromeOverlayBottom.readerChromeOverlayBottom-banner-desktop {bottom:0 !important;}"
Error: "Invalid cosmetic rule, wrong brackets" in the rule: "hitomi.la##.content > div[class]:not([class*="-"]) {min-height:45px !important;}"
Error: "Invalid cosmetic rule, wrong brackets" in the rule: "hitomi.la##.top-content > div[class]:not([class*="-"]) {min-height:45px !important;}"
Error: "Unknown pseudo-class ':162px' in selector: '.cUDaEv {margin-top:162px !important;}'" in the rule: "benzinga.com##.cUDaEv {margin-top:162px !important;}"
Error: "Unknown pseudo-class ':0' in selector: '.gZyLpV .mobile-header {margin-top:0 !important;}'" in the rule: "benzinga.com##.gZyLpV .mobile-header {margin-top:0 !important;}"
Error: "Unknown pseudo-class ':0' in selector: '.iOxiqE .mobile-header {margin-top:0 !important;}'" in the rule: "benzinga.com##.iOxiqE .mobile-header {margin-top:0 !important;}"
```

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.