Ublock Origin has a handy feature that allows you to build custom fields in addition to their standard ad blocking abilities. Here’s a few rules I set up the other day to clean up annoying parts of Facebook and Twitter.
For Twitter I wanted to get rid of all their trends stuff but keep my feed.
Hide Twitter Trends
twitter.com##div[aria-label="Timeline: Trending now"]
Hide Twitter Who To Follow
twitter.com##aside[aria-label="Who to follow"]
Hide Twitter Explore Tab
twitter.com##a[aria-label="Search and explore"]
For Facebook I wanted to completely do away with the news feed as the news feed is complete garbage for me. I can still use marketplace and get into groups and messenger if needed.
Hide Facebook Stories
Hide Facebook Feed
Hide Weird Facebook Video Chat Thing