AdguardTeam / FiltersCompiler

A tool that compiles & validates filters
GNU Lesser General Public License v3.0
52 stars 12 forks source link

Some `redirect-rules` return error messages. #127

Closed ameshkov closed 2 years ago

ameshkov commented 3 years ago

I don't know if this is a bug or it's not supported, some redirect-rules return error messages.

Error: "$redirect modifier is invalid" in the rule: "*$image,redirect-rule=1x1.gif,domain=seznamzpravy.cz" FiltersRegistry/filters/ThirdParty/filter_105_EasyListCzechAndSlovak/diff.txt#L115

Error: "$redirect modifier is invalid" in the rule: "*$image,redirect-rule=32x32.png,domain=ukr.net" FiltersRegistry/filters/ThirdParty/filter_115_RUAdList/diff.txt#L2181

Error: "$redirect modifier is invalid" in the rule: "*$script,redirect-rule=noop.js,domain=otzovik.com|ukr.net" FiltersRegistry/filters/ThirdParty/filter_115_RUAdList/diff.txt#L2183

Error: "$redirect modifier is invalid" in the rule: "||googlesyndication.com^$script,redirect=googlesyndication.com/adsbygoogle.js,domain=darmowa-tv.ws" FiltersRegistry/filters/ThirdParty/filter_238_PolskiFiltrAdg/diff.txt#L328

Originally posted by @realodix in https://github.com/AdguardTeam/FiltersCompiler/issues/100#issuecomment-975020727

slavaleleka commented 3 years ago

last one is about redirect=googlesyndication.com/adsbygoogle.js, will be fixed in Scriptlets #162

other errors also will be fixed in Scriptlets after adding $redirect-rule modifier support