Unfortunately, in most cases the girlfriend of your friend automatically becomes your friend, since she will suddenly be hanging out in all of your social circles.
You can either:
a) put down the laptop, go hang out with her and her ugly friends and try to make peace. Hell, you might actually find them to be interesting.
or
b) wait it out. Constantly ignore and disregard her presence in your life by retreating from your friend's side and disappearing into the magical world of the internet whenever she is around. Pray to god the relationship ends quickly.