She didn't like it when her husband got drunk.

Literal

She [topic-は] husband [subject-が] get-drunk [object-を] didn't-like.

酔っ払う ('to get drunk') is a vivid compound verb. のを好まなかった uses the nominalizer の with 好む ('to like/prefer') in the negative.