waitForKeyElements.js by BrockA

This script was a game-changer when I came across it. I was trying to hook into the WordPress media library actions, and this script was perfect for detecting ajax changes in the overlay window.