Is there a method to execute a chromium extension content_script after window.load and following all other window.load listeners have been activated?
I am currently analyzing a website's javascript in an attempt to enhance its functionality. However, I want these enhancements to take place only after all existing js code has completed.
What I am seeking is a mechanism to set a trigger once the site is prepared for modifications.
If there isn't a straightforward approach to achieve this, do you know of a universal function that could work with major JS frameworks like jQuery, prototype, etc?
By the way, this solution won't suffice as it will be executed before the page script's listeners which are added later:
window.addEventListener("load", callback, false);