LinkedIn already has this feature and it's significantly reduced the amount of rage-inducing influencer hot takes that show up on my feed. You can also turn off your watch history to get far fewer recommendations on Youtube.
I still personally find LinkedIn and Youtube to be a net-negative on my mental health, but these settings have helped a lot.