I am developing a chrome extensions that expands upon a site (adding additional menu items and whatnot). I want the content script to run before the DOM is drawn, otherwise the user sees the content pop in in a rather notable way.
I've set up the run_at
in the manifest, and it will load before its drawn using document_start
, problem is I need access to the DOM, and that fires before it's there.
Maybe a simpler way to put it is I am looking for a way to modify the dom after it is loaded (or a specific part of it is loaded) but before it is rendered.