is there a way to block posts via keyword?

i am going to go insane if I see another Elon Musk post.

please tell me there is a way to block via keyword.

58 points · 14 comments · view on lemmy.world

14 Comments

Anticorp@lemmy.ml · 11 pts · 2y (2 replies)

Sync and Boost both offer keyword filtering. That's why I finally decided to use Sync, it was the first app to allow blocking entire instances and filter by keyword. Lemmy is a pretty great place, once you can filter out all the noise.

TheRaven@lemmy.ca · 3 pts · 2y (1 reply)

Voyager and Mlem offer it on iOS.

Rhoeri@lemmy.world · 1 pts · 2y
[ removed ]
ptz@dubvee.org · 11 pts · 2y

The API doesn't let you block by keyword but I'm pretty sure a few Lemmy clients offer keyword filtering.

Thorny_Insight@lemm.ee · 5 pts · 2y (1 reply)

I haven't tried this myself but but you should be able to do it by creating custom rules on your adblocker

Example:

lemmy.world##.d-sm-block.d-none > .row:has-text(Blockchain)

lemmy.world##.d-sm-block.d-none > .row:has-text(ChatGPT)

ThisIsNotHim@sopuli.xyz · 3 pts · 2y

Has-text is case sensitive. Adding / before the keyword and /i after will set it to case insensitive.

Example:

lemmy.world##.d-sm-block.d-none > .row:has-text(/Blockchain/i)

You can also use | to add multiple keywords to the filter.

Example:

lemmy.world##.d-sm-block.d-none > .row:has-text(/Blockchain|ChatGPT/i)

Spacebar@lemmy.world · 5 pts · 2y (2 replies)

I use Sync and if you had put Musk or Twitter in the headline, I'd never have seen this.

What sucks is that I can't block "x" because too many other headlines have X in the word and the filter strips leading and trailing spaces from the keyword.

Luke_Fartnocker@lemm.ee · 4 pts · 2y (1 reply)

I can't block "x"

I think that's part of why he did it.

Spacebar@lemmy.world · 1 pts · 2y

I'm sure it played a part

otter@lemmy.ca · 3 pts · 2y (3 replies)

You can do it in a lot of apps/front ends

Which app are you using?

applejacks@lemmy.world · 3 pts · 2y (2 replies)

I'm just talking about on the website, should have clarified.

TheYear2525@lemmy.world · 3 pts · 2y (1 reply)

Which website?

DrQuint@lemm.ee · 4 pts · 2y

Probably lemmy.world since that's where their user is seeded.

And I wouldn't know. I use voyager.

martinbasic@lemmy.world · 3 pts · 2y

Fyi, there is a feature request on lemmy repository talking about this: https://github.com/LemmyNet/lemmy/issues/3710

can@sh.itjust.works · 3 pts · 2y

Maybe you can try getting it added to this userscript?

Oh, I misread keyword and keyboard.

Still, take a look here and see if anything adds it.