-
Notifications
You must be signed in to change notification settings - Fork 84
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
Migrate additional arguments from scriptlets to the remove-attr
and remove-class
action operators
#3537
Comments
remove-attr
and remove-class
action operators
I'm attaching a commit from the hufilter that brought this issue to my attention: For example, I suspect that the modal used as a cookie modal might also be used by the website for other functions. I don't necessarily want to universally disable scroll blocking, so I chose the |
Is there an use case where the new action operator version doesn't work properly, but the scriptlet version with asap / complete option works? I'm not saying this to oppose, but I think that I've seen a case where the action operator version worked just fine, but the scriptlet version needed either asap or complete option. Though I don't remember anymore what case it was :) |
An example this is needed to deprecate the scriptlets; uBlockOrigin/uAssets#27167 |
@Yuki2718 You mean on Firefox or chromium? |
I used Chrome at the time, but it's the same on Firefox as well. |
If I remember correctly, on Firefox you can use On chromium, |
In this case it's just |
Does |
Yes, |
Yeah, I think in this case we can use |
Prerequisites
I tried to reproduce the issue when...
Description
The
remove-class
scriptlet is deprecated in favor of the:remove-class(...)
pseudo-class (action operator). However, the scriptlet supported an applying parameter (e.g.,asap
,complete
), which the action operator currently doesn't.References:
Similarly, the
remove-attr
action operator doesn't support parameters that the scriptlet previously allowed.References:
A specific URL where the issue occurs.
not relevant
Steps to Reproduce
not relevant
Expected behavior
I suggest that the action operators should also support the extra parameters from the scriptlets, e.g.,
##selector:remove-class(class, complete)
.Actual behavior
Currently, the action operators support only a single argument.
uBO version
latest
Browser name and version
not relevant
Operating System and version
not relevant
The text was updated successfully, but these errors were encountered: