[SOLVED] Custom Filter Help - Is it possible to condense url filters like I can for keyword filters?

Currently, I have some filters set up through uBlock to make my Lemmy browsing more tolerable. For keywords, I copied some scripts that look like this, with one line and each word separated by a vertical bar: lemmy.ca##article.row:has-text(/keyword|keyword|keyword|etc/i)

But the url filters I use only seem to work if they are separated into individual lines, e.g.: lemmy.ca##div.post-listing:has([href*="url/"])

lemmy.ca##div.post-listing:has([href*="url/"])

I was wondering if it's possible to condense the url lines to make it a bit more manageable in the same way the keyword filter is.

3 points · 4 comments · view on lemmy.world

4 Comments

quickenparalysespunk@lemmy.dbzer0.com · 2 pts · 300d (3 replies)
lemmy.ca##div.post-listing:has(:is([href*="url"],[href*="url"],[href*="url"],[href*="url"]))
ech@lemmy.ca · 1 pts · 300d (2 replies)

Oh! It just takes a comma? That's super simple. Awesome.

Thank you!

quickenparalysespunk@lemmy.dbzer0.com · 2 pts · 300d (1 reply)

comma works usually but i experienced inconsistent results with that in the past, so i add the

:is()

wrapper just in case

ech@lemmy.ca · 1 pts · 300d

Good to know.