A few moths ago after reading Cal Newport's book "Deep Work", I decided to try to improve my social media usage by writing an app that could block HN/Twitter/Google News (the big 3 digital distractions for me) by default, and force me to go to an extra step to temporarily unblock them when I wanted to use them. It seems like a small thing, but that extra friction of having to open my app, unblock, and then go on to the service in question has really cut down my casual browsing. I feel much more productive and just... at peace with my internet usage since I've adopted this pattern.
If you have iOS and would like to give the app a try, I'd appreciate it! It's totally free for now. https://timeguard.io