Same issue. Now I use an website/application blocker. I set up a schedule 8:30~19:00 so that I can't access distractions during my workday, even If I wanted to! My tool of choice is focus https://heyfocus.com/?utm_source=focus_about I'm not affiliated to the developer, I just really like the app. I locked down the settings so that there's no way to undo the block while it's running: the lack of options is oddly freeing and it forces me to face the issues at hand. I also set up a night schedule 22:00~6:00 so that I don't waste a good night's sleep online (but I do cheat on that sometimes...).
Secondly, I use Adblock Plus and other plug-ins to edit out parts of websites. I removed the homepage, up next and recommendations from my youtube experience. That sidebar at the side of every article/video? Gone. I can't recommend this enough, modern webpages are exhausting to look at.
Lastly, I recommend you to edit your host file to block annoying content while browsing: https://github.com/4skinSkywalker/anti-porn-hosts-file. You can find all sorts of lists online to suit your needs. Note that the host file blocks whole websites (e.g. reddit.com), not specific pages (reddit.com/r/news/). Good luck with your effort!