You can use uBlock Origin to block certain keywords in posts!
Why
If you’re like me, you’re really tired of seeing the lemmy homepage and every community fill up with really bad news from the US.
How
First, open the uBlock Origin dashboard, navigate to My Filters tab and add the appropriate line.
# lemmy.world # thanks to /u/zkfcfbzr lemmy.world##article.row:has-text(/Trump|Musk|ICE|Vance|slop|Microsoft|Grok|Republican|Democrat|Republicans|GOP|Democrats/i) # lemmy.zip lemmy.zip##article.row:has-text(/Trump|Musk|ICE|Vance|slop|Microsoft|Grok|Republican|Democrat|Republicans|GOP|Democrats/i)
Because the Lemmy HTML is generally the same on each instance, the above should work if you change the first part to the Lemmy domain. Then replace the | pipe separated keywords with your own list.
Here are some other things you can do:
# filter comments # thanks to /u/Free_Opinions@feddit.uk lemmy.world##article.comment-node:has(div.comment-content:has(p:has-text(/trump/i))) # filter posts with certain words, with exceptions # thanks to /u/zkfcfbzr@lemmy.world lemmy.world##article.row:has-text(/word1|word2|word3/i):not(:has-text(/word4|word5|word6/i))
reddig33@lemmy.world 1 day ago
A lot of the Lemmy clients/apps have this feature built in as well.
For example, in mlem.app on ios, you can build a list from
kinship@lemmy.sdf.org 9 hours ago
Voyager has it and I had no idea. Thanks to you I am already taking advantage of the feature…
AmbitiousProcess@piefed.social 23 hours ago
And on PieFed, you can either block things by keyword entirely, or just make them Semi-Transparent if you still want to see them in your feed occasionally, but just have it be easier to skip over.
For example, here’s my filter for the words “Trump” and “Musk” turned on and off, where you can see the filter being on makes the post transparent enough that it’s kinda annoying to look at unless you really want to.
KV3XBXJSYZEC3WV.png
SCRq9s64vnqeHAe.png
You can also set an expiry date if you only want the filter to work for a certain amount of time.