Sentence:  The previous scandals , gaily diverting as they <WSD>were</WSD> , had only served to increase his popularity . 
Meaning of the word marked with <WSD> tags:  have the quality of being; (copula, used with an adjective or a predicate noun)