waitForKeyElements utility function

A utility function for userscripts that detects and handles AJAXed content.

As of 2022-06-09. See the latest version.