>>33225990 (OP)Wish I'd fucking know.
Stuff like
>>33227654>>33227660Can be a good start, but unless you find away to replace those habits with other habits you'll most likely just relapse sooner or later. Take everything I say with a grain of salt, because we have a little blind leading the blind situation here, but what occasionally helped me was something as simple as just asking myself "am I actually having fun right now?", because most likely the answer is "not really". And sometimes that's enough to make me power down my PC and go do something else.
Other than that it's like any addiction, so just go research that. With the added bonus that it's a little hard keeping your substance of choice out of reach, like how you'd stop having beer at home if you decided to stop drinking, since you do use your Computer/Phone for constructive things and then those sites are just a click away.