FiltersCompiler
FiltersCompiler copied to clipboard
A tool that compiles & validates filters
e.g. `||example.com^$subdocument,~third-party$badfilter` https://github.com/AdguardTeam/AdguardFilters/blob/1bcb39564e9c56f4c9e264b693bd371e3ba32e37/BaseFilter/sections/allowlist.txt#L673
e.g. `example.##.banner` https://github.com/AdguardTeam/AdguardFilters/blob/1d0c0ad159db7cb7fa8f865fb766e725a314eb3e/MobileFilter/sections/css_extended.txt#L368
e.g. `example.com^$script,other,xmlhttprequest,script` https://github.com/AdguardTeam/AdguardFilters/blob/676e48676fb69361f2f9fdb5dd206f5a7ada016a/RussianFilter/sections/antiadblock.txt#L1701
Due to new cosmetic filter parser, uBO requires quotes in arguments to be escapsed: https://github.com/gorhill/uBlock/commit/a71b71e4c8a2037fc68970bc8912a76732edaade An example that needs the fix is `thetimestribune.com#?##tncms-region-option-rail-top-one > .tncms-block:has(> .block-title:contains(This Week's Circulars))` in Base...
`[20:14:55][ERROR]:Invalid rule in AdGuard URL Tracking filter: ||hktvmall.com/yuicombo?$script,removeparam=/_ui/shared/common/js/util/jquery.analytics-utils.js`
This is a bit of a fringe scenario, although it's been tested out with success in Dandelion Sprout's Annoyances List, but it could become useful for you guys at some...
Check this issue: https://github.com/AdguardTeam/AdguardBrowserExtension/issues/2240 The point is that a poor regular expression may cause the extension to completely break the browser. I suggest adding more checks for regular expressions in...
`Error: "$redirect modifier is invalid" in the rule: "||googletagmanager.com/gtag/js$script,redirect-rule=googletagmanager_gtm.js:5"` `googletagmanager_gtm.js` is uBO's analogue of `googletagmanager-gtm`
To reproduce it: 1. Add [my filter](https://raw.githubusercontent.com/zloyden/fox/master/123.txt) via `@include` to any template of the filter. For instance, Dandelion Sprout Annoyances ``` @include "https://raw.githubusercontent.com/zloyden/fox/master/123.txt" /exclude="../../exclusions.txt" ``` 2. Run the filter build...
after downloading all translations should be valid. if they are not, validation script fails and reports to console about errors those errors still should be fix before merging to FiltersRegistry....