I want to know how to add code in <head> section via js (or ts)
Well,I wrote a extension and I want to add content, such as <script>, to the <head> part of the html of it. How should I do it? I've tried using JavaScript's native append, but that doesn't work