Using Chrome Content Scripting I want to delete several frames on a web page before their contents are loaded.
I found that using the run_at: document_start property in the extension shows that my javascript is executed right after the main page is requested and before the DOM is processed and images, iframes, etc. are loaded. Logically, at this moment, the DOM structure is not available, and I cannot change the page using commands, for example:
myelement=document.getElementById('iframeX'); myelement.parentNode.removeChild(myelement);
How can I access and change the data of a reprogrammed page?
Cornelius
source share