AdguardTeam / AdguardTeam/FiltersCompiler

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

未關閉
#166 0 則留言 0 個 reaction 已指派 1 人 已被 @maximtop 認領 在 GitHub 檢視
bug feature request Priority: P4
主要語言
JavaScript
星號
64
分支
11
PR 合併指標
30 天內沒有已合併 PR

描述

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)`

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。