Skip to content

Migrate additional arguments from scriptlets to the remove-attr and remove-class action operators #3537

Open
@scripthunter7

Description

@scripthunter7

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions