PrivacyRedirect [1] is a nice multi-purpose addon for this in my opinion. Most of the redirects can be easily customized and all of them can individually be enabled/disabled. It also has multiple nitter/teddit proxies defined for the times they get overloaded.
Redirects Twitter, YouTube, Instagram, & Google Maps requests to privacy friendly alternatives - Nitter, Invidious, Bibliogram, & OpenStreetMap.
When the time comes that addons do not get around such things, then I would suggest BlockSite [2]
LibRedirect[1] is a currently maintained fork of PrivacyRedirect, with additional features (PrivacyRedirect is no longer maintained since late 2021) [2]
Yes, true, I was bummed when I saw that Privacy Redirect is unmaintained but then a few users on Github mentioned LibRedirect and now that I'm using it, I'm really happy, it works great
[1] https://libredirect.github.io/
[2] https://libredirect.github.io/faq.html#why_forking_privacy_r...