Block something using the browser instead of using Ublock Origin?

I hope this makes sense and hopefully someone can help me out.

There are some annoying things on a website I visit frequently that I would like to block. They are Twitter or Facebook share buttons that get blocked when I have Ublock Origin on, but appear when I turn it off.

So I looked at which filterlist was blocking them (Fanboy’s Annoyance) and tried to copy and paste the rule into Brave:

##.share__button
##.shareBar

and things like that. But they don’t end up getting blocked.

Any idea what I can do?