skonukcu Posted March 21, 2019 Report Share Posted March 21, 2019 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 comment Share on other sites More sharing options...
skonukcu Posted April 10, 2019 Author Report Share Posted April 10, 2019 (edited) thanks for reply! i solve it. document.getElementsByTagName("html")[0].appendChild(stil); change 'head' to 'html' OK Edited April 10, 2019 by skonukcu Link to comment Share on other sites More sharing options...
Recommended Posts