https://developer.mozilla.org/ja/docs/Web/API/Document/currentScript
現在実行中のscript要素。
あとscript要素はdocument.querySelector("script")で取得できる。
あと考えてみれば当たり前なんだけど、document要素はheadの要素でも取得できるんだな。なんとなくできないように勘違いしてた。
https://developer.mozilla.org/ja/docs/Web/API/Document/currentScript
現在実行中のscript要素。