Using uBlock Origin, you can add your own filter. This filter will block any post with the text “Elon Musk” (not case sensitive), modify as needed.

lemmy.world##div.post-listing:has(span:has-text("/elon musk/i"))

div.post-listing is the element to block
:has(args) returns elements where args evaluate to true
span is the element with the title text
:has-text(needle) returns the element if it has the next needle, supports regex with \needle\ and remove case sensitivity with i

Read more here: https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters

  • Mananasi@feddit.nl
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Stuff about X-rays will be filtered, for example. You could probably go a little safer with the regex.

    • madsen@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Yeah, there’s room for improvement. I did say, though, that it probably wasn’t perfect. I’m sure someone more patient than me can come up with a much more effective regex.