AdguardTeam / AdguardTeam/FiltersCompiler

`^script:has-text` is not converted to AdGuard syntax

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

Related to [##^script:has-text](https://github.com/AdguardTeam/FiltersCompiler/issues/60)
Updated AdGuard `$$` syntax:
https://adguard.com/kb/general/ad-filtering/create-own-filters/#html-filtering-rules

For example, AdGuard for Windows converts uBO's HTML filtering rule
`forbes.com##^script:has-text(scriptTag)`
to AdGuard's
`forbes.com$$script[tag-content="scriptTag"][max-length="262144"]`
But conversion is not applied to unblocking rules
`forbes.com#@#^script:has-text(scriptTag)`

This causes the error during compiling filters:
`Error: Invalid selector: '^script:has-text(responseText)' -- Error: unable to select by '^script' — '^script' is not a valid selector in rule: mail.walla.co.il#@#^script:has-text(responseText)`

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.