tsurlfilter
tsurlfilter copied to clipboard
AdGuard content blocking library
There are some modifiers that have an equivalent, but it is not just an alias. After parsing, the modifiers are represented in AST, where a separate property is reserved for...
We should detect incompatible rules during the linting process and offer converted rules as fixes, if possible. In order to do this, we need a compatibility table / converter. Theoretically,...
Currently redirect resouces are simply checked with a regexp, but if necessary, we can introduce a separate compatibility table for them in the future. At the moment, we do not...
AdGuard 4.1.53 Chrome 109 ### Steps to reproduce 0. Disable Base filter 1. Enable `Hide Referrer from third parties` in Stealth Mode settings 2. Go to http://www.dimakids.com/ab6aladrajat04-1426852683-15673.html with opened devtools...
Checked rules with `$stealth=referrer` and with `$stealth=referer` - both rules were applied. According to https://github.com/AdguardTeam/CoreLibs/issues/1224#issuecomment-1149830577 only `referrer` is valid. AdGuard 4.1.53 Chrome 109
If I understand correctly, the following rule is invalid in uBO syntax: ```adblock example.org##+js(setTimeout-defuser.js, [native code], 8000):matches-path(/page) ``` One test case uses this rule: https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/tsurlfilter/test/rules/rule-converter.test.ts#L569 Reference: - from https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters#subjectmatches-patharg >...
Related to https://github.com/AdguardTeam/CoreLibs/issues/1708
Reference: https://github.com/AdguardTeam/Scriptlets/issues/237
@AdamWr commented on [Wed Apr 06 2022](https://github.com/AdguardTeam/AdguardBrowserExtension/issues/2037) ### Issue Details - **AdGuard version:** - 4.0.141/4.0.160 - **Browser and version:** - Chrome ### Steps to reproduce 1. Add this rule to...
$app=com.miui.systemAdSolution matches all hostnames. ``` const dnsResult = dnsEngine.match(hostname); if (dnsResult.basicRule && !dnsResult.basicRule.isAllowlist()) { // blocking rule found .. } if (dnsResult.hostRules.length > 0) { // hosts rules found .....