"doc_start" extensions not work since 5.1


Recommended Posts

hello.

i have an extension that injects css to a page. entryPoints parameter is "doc_start" and it works fast.  it works at version 5.0.4.3000. 

but at version 5.1.0.3000 and above it does'nt works. it needs to change entryPoints parameter to "doc_end" or "doc_onload". and it works little bit slow.

 

is there any way for work the extension at doc_start.

 

ps: i tried "DOMContentLoaded", it works but still slow.

 

manifest.json :
"entryPoints": ["doc_start"]
 
js file :
 
var csss = "*{font-family: Verdana bla bla bla";
var stil = document.createElement("style");
stil.type="text/css";
stil.innerHTML = csss;
document.getElementsByTagName("head")[0].appendChild(stil);
Link to post
Share on other sites
  • 3 weeks later...