Skip to content

Instantly share code, notes, and snippets.

@fichtennadel
fichtennadel / waitForKeyElements.js
Created March 25, 2021 21:34 — forked from BrockA/waitForKeyElements.js
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);