Sign in to follow this  
Followers 0
skonukcu

"doc_start" extensions not work since 5.1

2 posts in this topic

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);

Share this post


Link to post
Share on other sites

Posted (edited)

thanks for reply!

i solve it.

document.getElementsByTagName("html")[0].appendChild(stil);

change 'head' to 'html'

OK

Edited by skonukcu

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0