BuddyPress - Remove activity type(s) from the stream


I'm aware of the obsolete plugin "BuddyPress Block Activity Stream Types" - we even tested it since some admin's have claimed it still works. It did not work for us on our staging site.

I have read this post from 2013: https://premium.wpmudev.org/blog/how-to-customize-the-buddypress-activity-loop/

But I'm afraid that I don't quite grasp how to go forward with the information. Is there a way to create a function that will not be overwritten with theme/BuddyPress updates?

We need to block new friendship information from appearing in the stream.