Chrome extension run at doc start
问题 I have a script that I want to be injected into the document BEFORE load. I.E; it should function as if <script..>MYSCRIPT HERE</script> <html> . . I have made a script in chrome that executes correctly (I can alert(0) etc) but, it runs in different environment which is not what I want. I want it to run in the SAME environment as page. Earlier, I had used a trick where in the startup script I had used window.location="javascript:<MY SCRIPT HERE>" which effectively changes the execution