self-righteousness — A state or display of believing oneself to be the only person who is right and acting on this belief.