diff --git a/index.html b/index.html index 7391a57..a385f05 100644 --- a/index.html +++ b/index.html @@ -6,20 +6,6 @@ Askr - - - diff --git a/scripts/verify-static-output.ts b/scripts/verify-static-output.ts index 3ebe83d..73b7828 100644 --- a/scripts/verify-static-output.ts +++ b/scripts/verify-static-output.ts @@ -118,6 +118,14 @@ for (const expectation of expectations) { !html.includes('/src/'), `${expectation.route} references source files` ); + assert( + !/]*\bsrc=["'](?:https?:)?\/\//i.test(html), + `${expectation.route} loads an executable third-party script` + ); + assert( + !html.includes('googletagmanager.com') && !html.includes('dataLayer'), + `${expectation.route} contains removed analytics code` + ); assert( html.includes('/assets/askr-logo-64.avif'), `${expectation.route} is missing the Askr mark`