-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add $redirect-rule modifier #1303
Comments
Let's wait and see how the adoption of it goes |
Do I understand correctly that it was implemented? Steps to reproduce:
As far as I understand, this rule should redirects only blocked requests (requests which are blocked by existing rules in filters), but it seems that it also redirects requests which are not blocked by any rule. |
For now, it is implemented just as an alias for |
Okay I understand, but it works differently in uBO, so I'm not sure if it's a good idea. |
@sxgunchenko reopened. It's a popular modifier that needs to be implemented properly. Modifier description (should be adopted in KB as well): This is basically an alias to
Examples:
In this case, only requests to |
$redirect-rule
should redirects only these requests which are blocked.For example, rule like this:
*$script,redirect-rule=noopjs,domain=example.org
should redirects
pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
, because it's blocked by this rule (from Base filter)/pagead2.
, but it shouldn't redirects requests like thisexample.org/script.js
.Description - https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#redirect-rule
The text was updated successfully, but these errors were encountered: