Just be miserable, dumbass. Think about what a loser you are. How you aren't worth the affection of anyone, and everyone just wants you to go away. Think of how you're the butt of jokes, a farce of a man, an example to others of "what not to be". Think of the way normies/females are innately repulsed by you. And remind yourself that you WILL die alone, unloved and unfulfilled.
Embrace self-hatred and you won't want to masturbate ever again. You don't deserve to be happy. Higher odds of prostate cancer means you'll be dead sooner. And if you do get the urge to fap, try cutting yourself instead.
There, I solved nofap forever. Nobody has any excuse to "relapse" ever again.