uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

Can't create element hiding filters with wildcards?

Open maxiedaniels opened this issue 10 years ago • 3 comments

I'm trying to create a filter that includes a wildcard for a div id. According to multiple sources online regarding adblock filter writing, it seems this is how to do so:

##div[id*=“testword"]

But in the rule add window, once I type that in, the create button is greyed out. And preview shows nothing changing.

maxiedaniels avatar Sep 15 '16 22:09 maxiedaniels

Um...shouldn't that filter be written as ##div[id*="testword"]?

Blutgang avatar Sep 15 '16 23:09 Blutgang

Sorry, I wrote the * on the wrong side of the =. Still doesn't work for me.

anewuser: I did read the template text, most of it didn't apply to my issue, which seems to be that a valid filter isn't being accepted. If a valid filter isn't being accepted, that would qualify as a bug. If I've written the filter wrong, then fair enough, but if you know what the issue is, I'd be grateful if you could tell me what I'm doing wrong.

maxiedaniels avatar Sep 15 '16 23:09 maxiedaniels

Your filter is not valid. See @Blutgang's answer.

gorhill avatar Sep 16 '16 00:09 gorhill