is there a way to block posts via keyword?

applejacks@lemmy.world to No Stupid Questions@lemmy.world – 59 points –

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

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

14

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

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.

1 more...

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)

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)

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.

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

Which app are you using?

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

Which website?

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

And I wouldn't know. I use voyager.