WaitForKeyElements

A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012

Author
Panayot Ivanov
Ratings
0 0 0
Version
0.0.1.20141001154824
Created
Updated
License
N/A
Applies to
All sites

Author's Description

Not made by me, see original author: BrockA

/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.

Usage example:
waitForKeyElements ("div.comments", commentCallbackFunction);

//--- Page-specific function to do what we want when the node is found.
function commentCallbackFunction (jNode) {
jNode.text ("This comment changed by waitForKeyElements().");
}

IMPORTANT: This function requires your script to have loaded jQuery.
*/