I did this on Firefox, but I suspect it may work in other browers too.
- Install the Violentmonkey extension. Tampermonkey or Greasemonkey will also do.
- Install the Lemmy tools script.
- Browse to Lemmy
- Click on the screw driver icon on the LemmyTools bar that is now visible on the Lemmy page.
- Scroll down and check the box next to “Content Blocking”
- Add your block words in the “Add filters seperated by commas.” box. I typed “Trump, Vance” Voila!
Or…
lemm.ee##div.post-listing:has(span:has-text("/Trump/i"))
Put that into your adblocker custom filters. Just change the lemm.ee to lemmy.world (or what ever instance you’re on)