There ought to be a word for it!
The cold clammy fearful anxiety when hearing of a friend getting back together with their boyfriend and announcing the engagement when the last time you saw them and they had just split up you let rip about how much you had always hated him because he was a stupid weasel that she was much better…