Well...you want to stop hating yourself? Okay, well, how are you hating yourself? What are you doing when you're hating yourself? What's the process? Looking for a general formula for this won't work because this is about the individual self and what the individual self needs. What you need.
Also consider that maybe the energy is focused onto what you don't want. You don't want to hate yourself. Well, okay, and you can become aware of the ways in which you go about hating yourself. But also, what do you want to feel? What do you want to feel, think, sense, know etc about yourself? Do you want to think you're amazing one hundred percent of the time? Do you want to think you're perfect? Do you want a general sense of trust, love and respect for yourself? What do you want to feel instead of hating yourself?
Blocking out the negative thoughts might help. But then again, in order to block it out you'd pretty much have to constantly acknowledge and entertain the negative thoughts in order to know when it's time to block them out and that's an awful lot of energy expense there. And, if those negative thoughts, voices or whatever keep shouting at you, keep talking to you, well...maybe they have something they want to say to you. Maybe they want your attention and maybe it's fine to give them and the part of you they come from the attention it might want or need. And you might discover how easy it is to do that without giving anything up and remaining safe, secure and in control of how you want to feel and how you do feel.
And you might like to remember those times when you've made a mistake and making that mistake helped you learn something new. And if making a mistake can lead to learning something new then maybe making mistakes isn't a bad thing. And maybe, if you have made mistakes in life and things haven't gone right then you can take the opportunity to forgive yourself for those mistakes.
And beyond that, therapy is a really good idea.