The code of the extension is able to run as soon as the browser loads. You probably just have to add an eventlistener to let the extension know that the browser is ready:
window.addEventListener("load",function() {yourBrowserLoadFunction();}, false);
The code inside the function yourBrowserLoadFunction()
will run as soon as the browser starts.