1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["17324"],{88914(e,t,n){n.r(t),n.d(t,{metadata:()=>r,default:()=>l,frontMatter:()=>s,contentTitle:()=>o,toc:()=>p,assets:()=>c});var r=JSON.parse('{"id":"api/puppeteer.page.removescripttoevaluateonnewdocument","title":"Page.removeScriptToEvaluateOnNewDocument() method","description":"Removes script that injected into page by Page.evaluateOnNewDocument.","source":"@site/versioned_docs/version-25.12.0/api/puppeteer.page.removescripttoevaluateonnewdocument.md","sourceDirName":"api","slug":"/api/puppeteer.page.removescripttoevaluateonnewdocument","permalink":"/api/puppeteer.page.removescripttoevaluateonnewdocument","draft":false,"unlisted":false,"tags":[],"version":"25.12.0","frontMatter":{"sidebar_label":"Page.removeScriptToEvaluateOnNewDocument"},"sidebar":"api","previous":{"title":"Page.removeExposedFunction","permalink":"/api/puppeteer.page.removeexposedfunction"},"next":{"title":"Page.resize","permalink":"/api/puppeteer.page.resize"}}'),i=n(74848),a=n(28453);let s={sidebar_label:"Page.removeScriptToEvaluateOnNewDocument"},o="Page.removeScriptToEvaluateOnNewDocument() method",c={},p=[{value:"Signature",id:"signature",level:3},{value:"Parameters",id:"parameters",level:2}];function d(e){let t={code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"pageremovescripttoevaluateonnewdocument-method",children:"Page.removeScriptToEvaluateOnNewDocument() method"})}),"\n",(0,i.jsx)(t.p,{children:"Removes script that injected into page by Page.evaluateOnNewDocument."}),"\n",(0,i.jsx)(t.h3,{id:"signature",children:"Signature"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-typescript",children:"class Page {\n abstract removeScriptToEvaluateOnNewDocument(\n identifier: string,\n ): Promise<void>;\n}\n"})}),"\n",(0,i.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,i.jsxs)("table",{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:(0,i.jsx)(t.p,{children:"Parameter"})}),(0,i.jsx)("th",{children:(0,i.jsx)(t.p,{children:"Type"})}),(0,i.jsx)("th",{children:(0,i.jsx)(t.p,{children:"Description"})})]})}),(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)(t.p,{children:"identifier"})}),(0,i.jsx)("td",{children:(0,i.jsx)(t.p,{children:"string"})}),(0,i.jsx)("td",{children:(0,i.jsx)(t.p,{children:"script identifier"})})]})})]}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,i.jsx)(t.p,{children:"Promise<void>"})]})}function l(e={}){let{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},28453(e,t,n){n.d(t,{R:()=>s,x:()=>o});var r=n(96540);let i={},a=r.createContext(i);function s(e){let t=r.useContext(a);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.