opportunism
🇺🇸
/ˌɑːpərˈtuːnɪzəm/
🇬🇧
/ˌɒpəˈtjuːnɪzəm/
the act of taking advantage of situations to help yourself without considering others
Critics accused the politician of opportunism when he changed his stance to gain more votes.