Skip to content

Handle HTML filters #4

Open
Open
@AndriusA

Description

@AndriusA
Contributor

HTML filters are rare, but a category of their own, separate from network and from cosmetic filters.

E.g. example.org$$script[data-src="banner"] should delete script element with matching data-src attribute

Activity

added a commit that references this issue on Mar 16, 2025

Merge pull request #439 from brave/code_structure_5

b904779
maxmilton

maxmilton commented on Apr 27, 2025

@maxmilton

Are you talking about uBO's HTML filter syntax? Because your example seems different from uBO's documentation: https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#html-filters. Maybe the syntax changed since this issue was created?

Example from uBO:

example.com##^.badstuff
example.com##^script:has-text(7c9e3a5d51cdacfc)

I'd like to see this implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestuBO-paritypending features that are already available in uBO

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @AndriusA@maxmilton@antonok-edm

        Issue actions

          Handle HTML filters · Issue #4 · brave/adblock-rust