To be someone's friend exclusively for the purpose of becoming connected to their girlfriend so that when a break-up occurs, you can get together with her.
"What's the matter man?"
"That douchebag Steve wanted to get close to me just to get to my ex!"