The one thing that helped me in this is a great Chrome plugin, Stayfocusd [1]. Uninstall any other browser and block your access to those sites. Combining this with blocking even the "chrome://extensions" page, you have a perfect tool to avoid procrastination.
[1]: https://chrome.google.com/webstore/detail/stayfocusd/laankej...