By realizing that the only person in charge of your life is your-self my friend. Stop hating yourself cold turkey thats the only way, not posts from people or ideas or tricks or beliefs just you. You know how to stop it, otherwise you wouldn't even be able to formulate the question in your mind, just look deeper and you'll find youre answer. Also anapanasati meditation helps! Look it up!
Treat yourself like a friend you love. What would you tell someone else who doesn't like themselves...
Nobody deserves anything, the world owes you nothing. You get rewarded for the things you put out. If you do nothing, you get nothing.
*Swings pocket watch to and fro on chain*
Now, when I click my fingers, you will awaken loving yourself and optimistic about your future.
Why do you feel you hate yourself? Have you done something you shouldnt of ?
When you realize you had enough and you want to help yourself it will come naturally.