This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* waitForKeyElements(): The improved utility function for userscripts - now with MutationObservers and no jQuery! | |
Usage example: | |
waitForKeyElements( | |
'div.comments', | |
element => console.log('Look! A new element appeared!', element) | |
); | |
// ----------------------------------------------------------------- |