this post was submitted on 14 Mar 2025
26 points (100.0% liked)

New to Lemmy

559 readers
129 users here now

Did you just join Lemmy? This community is for you!

Do you want to help new users around? Then this community is for also you!

Thank you all for being here, it makes a big difference



FAQ


I don't know what to post

founded 1 year ago
MODERATORS
 

Reposting from https://lemmy.world/post/24545370 (and another post today: https://lemmy.ca/post/40657272)

Some other people had suggestions for other apps (such as Voyager) having built-in keyword filters, feel free to have a look at the original post

Why YSK: Certain topics are stressful and tend to spread all over the site, including to unrelated communities. Blocking communities can be overkill and ineffective, and likewise for blocking individual users.

To do so, open up the uBlock Origin dashboard, go to the 'My filters' tab, and add this filter:

lemmy.world##article.row:has-text(/word1|word2|word3|word4/i)

For example:

lemmy.world##article.row:has-text(/Trump|Elon|Musk|nazi/i)

Then apply the changes and reload any open tabs, and all posts which contain any of your filtered words will simply not show up.

You'll have to change "lemmy.world" at the start to whatever your actual instance is. You can filter as many or as few words as you want, just keep the / at the start, the /i at the end, and separate words with | pipes. What's actually being filtered is a case-insensitive regex, if you want to get fancy with it.

Here are equivalent filters for reddit and Ars Technica:

reddit.com##div.thing[data-context="listing"]:has-text(/word1|word2|word3|word4/i)
arstechnica.com##:not(:not(head>title:has-text(/^Ars Technica/))) article:has-text(/word1|word2|word3|word4/i)
arstechnica.com##:not(:not(head>title:has-text(/Serving the Technologist/))) article:has-text(/Trump|Elon|Musk|nazi|doge|maga/i)

As a disclaimer, I made these myself, and I'm not particularly familiar with creating uBlock Origin filters. There may be better ways to do this. Also the reddit one is specific to old.reddit.com, and the lemmy filter is made to work with the default lemmy.world web UI and may not work on other UIs without tinkering.

Yes, I know I'm just hiding my head in the sand

top 4 comments
sorted by: hot top controversial new old
[โ€“] ehholly@lemm.ee 2 points 12 hours ago (1 children)

Can you block users by region? Like sayโ€ฆ the entire US?

[โ€“] Blaze@lemmy.dbzer0.com 2 points 12 hours ago

I have on my communities blocklist

And in general any community that is about politics

[โ€“] CubitOom@infosec.pub 3 points 17 hours ago (1 children)

This is cool that it's possible, and thank you for doing the work.

But also if you are using a Lemmy client like voyager then you can just block by filtering keywords.

PS: you can also crosspost.

[โ€“] Blaze@lemmy.dbzer0.com 2 points 17 hours ago

PS: you can also crosspost.

indeed, but crossposts only show up as crossposts if there is a URL, here it was not the case. And sometimes reading the whole content in the quoted format is a bit distracting