Interacting selectively and non-covalently with a transcription cofactor for RNA polymerase II, any protein involved in regulation of transcription via protein-protein interactions with RNA polymerase II transcription factors and other transcription regulatory proteins. Cofactors do not bind DNA directly, but rather mediate protein-protein interactions between regulatory transcription factors and the basal transcription machinery of RNA polymerase II.