aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-08-22 00:46:34 -0400
committerbobzel <zzzman@gmail.com>2023-08-22 00:46:34 -0400
commit27dbbbf401fc64cbca00f5ce60e6dea1cbd3e33d (patch)
treeef4a9c03e816ef0bb55a42121e4d92c0f7752553 /src
parent006e76c3c45e1573a0999e1d3a042d5fe0cb0216 (diff)
no longer relabel scripts in web pages as noscripts
Diffstat (limited to 'src')
-rw-r--r--src/server/server_Initialization.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/server_Initialization.ts b/src/server/server_Initialization.ts
index 354f809e0..ee32de152 100644
--- a/src/server/server_Initialization.ts
+++ b/src/server/server_Initialization.ts
@@ -176,8 +176,8 @@ function proxyServe(req: any, requrl: string, response: any) {
const htmlText = htmlInputText
.toString('utf8')
.replace('<head>', '<head> <style>[id ^= "google"] { display: none; } </style>')
- .replace('<script', '<noscript')
- .replace('</script', '</noscript')
+ // .replace('<script', '<noscript')
+ // .replace('</script', '</noscript')
// .replace(/href="https?([^"]*)"/g, httpsToCors)
.replace(/data-srcset="[^"]*"/g, '')
.replace(/srcset="[^"]*"/g, '')