-
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
Update $removeparam syntax, add $queryprune as an alias #1384
Comments
Hm... I agree with you that there are some good ideas in uBO's |
Well, there're three options here.
Which one do you prefer? |
If it's acceptable not to be fully backward compatible with uBO, I'd prefer the first option. |
I am okay with either of these options so no prob. |
I am trying to be more compatible with I would prefer dropping the syntax allowing to enumerate more than one parameter name, i.e. I will support I understand the Forgot to add that I added support for the special form |
Related discussions: - uBlockOrigin/uBlock-issues#1356 (comment) - AdguardTeam/CoreLibs#1384 Changes: Negation character is `~` (instead of `!`). Drop special anchor character `|` -- leading `|` will be supported until no such filter is present in uBO's own filter lists. For example, instance of `queryprune=|ad` will have to be replaced with `queryprune=/^ad/` (or `queryprune=ad` if the name of the parameter to remove is exactly `ad`). Align semantic with that of AdGuard's `removeparam=`, except that specifying multiple `|`-separated names is not supported.
@sxgunchenko please check the updated spec here: |
core/pull-requests/2233 |
Check the changes implemented in uBO's queryprune:
uBlockOrigin/uBlock-issues#760 (comment)
Tbh, I like the changes, especially the idea with inverted logic, and since $removeparam is currently only used in simple scenarios (removing a single parameter), we can afford to safely change its syntax to fully match
$queryprune
, and basically make them both interchangeable.@sxgunchenko what do you think?
The text was updated successfully, but these errors were encountered: