How can one run a chromium extension content_script after window.load and after all other window.load listeners have been triggered?
I'm currently hacking thru a site's javascript attempting to improve it's functionality. But I want such improvements to happen after all it's ready js is finished.
What I actually need is a way to set a trigger after the site is ready to be patched.
If there is no simple way to do it, has someone done a general function which would work with the top JS frameworks (jQuery, prototype, etc)?
BTW, doing this won't work, since it will be triggered before the page script's listeners which are added later:
window.addEventListener("load", callback, false);