Waits until the tab is focused, executing a callback function when it happens.
These are versions of this script where the code was updated. Show all versions.