This question is different from waiting for the page to load. On
function loading a query or search, or user needs to scroll down).
tags via window.onload, since the tags technically don't exist yet,
the function does nothing.
Placing the functions at the bottom of the body probably won't
work, since those tags do not load after waiting a bit of time, but
For example, if you wanted to change the grey-black colour of the
divs in Google Images after a search (which loads more pictures as you
scroll down, but doesn't do anything if you don't), even you attempt
to write a GreaseMonkey script to perform actions with window.onload,
it would not do anything after scrolling down since it's already
Would a possible (but crude) solution be to re-run the function
each time the user scrolls down (like a mouse listener of sorts)? Or
would you recommend another method? Just delaying the function doesn't
quite work since it would depend on when the user decides to