opportunism
noun [ U ]
disapproving uk/ˌɒpəˈtjuːnɪzəm/ us/ˌɒpərˈtuːnɪzəm/behaviour in which someone uses every situation to try to get power or an advantage:
He accused his opponent of political opportunism.
The acquisition of the struggling publisher is a classic piece of opportunism by the newspaper's chief executive.