Is there a term or medical name for an individual that for some reason can't help but to say whatever is not allowed to be said, due to it being status quo?

For example this person would never say a bad word for someone being gay, but when gay rights are accepted and it has become incorrect to even say such bad words there is an urge to do so. Or fight for women's rights, but when they have those rights get the urge to demean them. You can apply this to any topic.

Is there a term?