FiltersCompiler
FiltersCompiler copied to clipboard
A tool that compiles & validates filters
Now Many Site Owner Buy Domains In BULK For Evading AdBlock Instead Of Updating Anti Adb Code One Of The Prime Example Is Gplinks `http://gplinks.co/rJgS` https://github.com/AdguardTeam/AdguardFilters/issues/170980#issuecomment-2131297762 So For Gplinks There...
I'm not sure, but it looks that `cap_html_filtering` directive does not work - https://adguard.com/kb/general/ad-filtering/create-own-filters/#conditions-directive >`cap_html_filtering` — products that support HTML filtering rules: AdGuard for Windows, AdGuard for Mac, AdGuard for...
Similar to https://github.com/AdguardTeam/FiltersCompiler/issues/245, but to disable rule conversion, for example: `!+ NOT_CONVERT`. Sometimes rules are incorrectly converted (when new scriptlet is added and filters compiler wasn't updated yet, check related...
https://github.com/AdguardTeam/AdguardFilters/issues/216757 Hi Some of your filters looks invalid in UBo 1.67.0 Here is journal for troubleshooting: ``` +30 Reloading all filter lists: done, took 6283 ms info +23 Reloading all...
Dozens of rules (66 at the moment) like these can be loaded Extended CSS from **third-party** filters ``` Error: "Invalid cosmetic rule, wrong brackets" in the rule: "mcdonalds.pl##body > .cookies...
https://github.com/uBlockOrigin/uBlock-issues/issues/1195#event-17872322872 + https://github.com/uBlockOrigin/uBlock-issues/issues/1195#issuecomment-2922182584 It would be useful to implement e.g. trim when AdGuard do not want such a description per rule from the Filter creator in AdGuard and the Filter...
Parity checking and shielding of unpaired odd characters is required - error - unpaired ```adblock example.com#?#main:has(> div:contains(te'st)) example.com#?#main:has(> div:contains(t'e's't)) ``` - ok, paired ```adblock example.com#?#main:has(> div:contains(t'es't)) ``` - ok, paired,...
```adblock /\/\d{3}$/$xmlhttprequest,redirect=nooptext,domain=rucelka.com ``` is converted to ```adblock /\/\d{3}$/$xmlhttprequest,redirect=noop.txt,domain=rucelka.com,image,media,subdocument,stylesheet,script,xmlhttprequest,other ``` URL of the filter: https://filters.adtidy.org/extension/ublock/filters/1.txt Why this part was added? `image,media,subdocument,stylesheet,script,xmlhttprequest,other` also `xmlhttprequest` is duplicated because of it.
Matching "the main page only" `[$path]` should be converted to `:matches-path(/^/$/)` uBO's example: https://github.com/gorhill/ublock/wiki/Procedural-cosmetic-filters#subjectmatches-patharg:~:text=%3Amatches%2Dpath(/%5E/%24/) Original ```adblock [$path]fontanka.ru#?#.gridContainer > div[class*="grid"]:has(> section[class^="baseBlock_"] > a[href]:contains(/^(Новости компаний|Фонтанка PRO)$/)) ``` Converted to uBO: ```adblock fontanka.ru#?#:matches-path(/^/$/)...
Broken regexp in `:matches-path()` - rexexp is split into two parts and added to different parts of the rule Original ```adblock [$path=/\/[0-9A-Z_a-z]+\/status\/\d+/]x.com,twitter.com###layers[style="z-index: 1;"]:has(div[role="dialog"] a[href="/i/premium_sign_up"][style]) ``` Converted to uBO ```adblock +\/status\/\d+/]x.com,twitter.com##:matches-path(/\/[0-9A-Z_a-z)#layers[style="z-index:...