Page.addScriptToEvaluateOnNewDocument

Evaluates given script in every frame upon creation (before loading frame's scripts).

{
  "name": "addScriptToEvaluateOnNewDocument",
  "parameters": [
    {
      "name": "source",
      "type": "string"
    }
  ],
  "returns": [
    {
      "name": "identifier",
      "$ref": "ScriptIdentifier",
      "description": "Identifier of the added script."
    }
  ],
  "description": "Evaluates given script in every frame upon creation (before loading frame's scripts)."
}