Whenever I get those thoughts now, I make sure I think that idea all the way to the end. The blackout, embarrassment, hangover, shame, the horror of waking up and realizing I'm still not sober... Everything I hated about drinking.
Now I can remember the reality of it instead of the fantasy.
I also had to do something more than just not drink. Doing it that way was sheer white-knuckle misery for me. Some kind of plan to get me out of that "missing it" and feeling deprived and lonely. I now have relief from that and have made some new and supportive friends.
I still get like that every once in a while but I only have to stay there as long as I want to now. I have ways to get myself out of those feelings.