Here is another technique I read recently, sourced from Thomas Keating, a Trappist monk, to deal with addictions, dependencies and compulsions; I’m getting this second hand so it may not be 100% accurate but in essence, the 4Rs:
do not Reject your temptation; accept is as part of your being. Do not Retain your tempting thoughts when they occupy your mind; move on to other thoughts or activities of a healthier nature. Do not React emotionally to your temptation. Return into the presence of God; this is where a balanced prayer life can come in handy: Liturgy of the Hours, lectio divina, Rosary in moderation.
I would add: if this is the vice I think it is, we are all subjected to varying degrees to this temptation, it’s a normal human drive and it’s especially tough when we’re younger. We all struggle with this. You can’t pray it away. You have to trust in God’s mercy when you do fall to it. The OP’s approach is setting him (her?) well down the road to scrupulosity and despair.
It also isn’t helpful to ask God to “cure” you of this once and for all. It simply won’t work. But you can ask for His help to prevent you from falling today. Small digestible bites work best for meals as well as stopping a bad habit. You can’t eat a multi-course meal in one bite, and you can’t solve this issue in one bite either.
Accept that you have this temptation, accept that you will fall from time to time, and ask God for forgiveness through the sacrament of confession when you do fall, and most important listen to your priest’s advice. If he says your culpability is lessened and thus not mortal, and that you don’t need to confess this every time, then accept his advice. He is trying to avoid you falling into scrupulosity and despair, which is the devil’s most successful trick to get someone to fall.