opportunistically

adverb

By taking advantage of chances as they come, often without regard for principles.