Extraction des éléments de script

script.childNodes.length > 0 ? script.childNodes[0].wholeText : ""
Anxious Alpaca