3
submitted 5 months ago* (last edited 5 months ago) by ech@lemmy.ca to c/ublockorigin@lemmy.ml

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.

you are viewing a single comment's thread
view the rest of the comments
[-] ech@lemmy.ca 1 points 5 months ago

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

Thank you!

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 points 5 months ago
this post was submitted on 08 Oct 2025
3 points (80.0% liked)

uBlockOrigin

1267 readers
1 users here now

uBlock Origin - Free, open-source ad content blocker. Easy on CPU and memory.

Related communities: c/linux, c/opensource, c/privacy, c/firefox, c/security, c/librewolf, c/iceraven

founded 4 years ago
MODERATORS