Update index.js
Browse files
index.js
CHANGED
@@ -91,7 +91,7 @@ app.get('/*', async (req, res) => {
|
|
91 |
const importmapContent = result.htmlContent.match(/<script type="importmap" nonce="">.*?<\/script>/s);
|
92 |
if (importmapContent) {
|
93 |
let pextractedString = importmapContent[0];
|
94 |
-
|
95 |
//pextractedString = pextractedString.replace(/https:\/\/r\.bing\.com/g, 'https://cfby.nbing.eu.org'); // 删除 https://r.bing.com
|
96 |
pextractedString = pextractedString.replace(/https:\/\/r\.bing\.com/g, ''); // 删除 https://r.bing.com
|
97 |
|
|
|
91 |
const importmapContent = result.htmlContent.match(/<script type="importmap" nonce="">.*?<\/script>/s);
|
92 |
if (importmapContent) {
|
93 |
let pextractedString = importmapContent[0];
|
94 |
+
pextractedString = pextractedString.replace('<script type="importmap" nonce="">', '').replace('<\/script>', '');
|
95 |
//pextractedString = pextractedString.replace(/https:\/\/r\.bing\.com/g, 'https://cfby.nbing.eu.org'); // 删除 https://r.bing.com
|
96 |
pextractedString = pextractedString.replace(/https:\/\/r\.bing\.com/g, ''); // 删除 https://r.bing.com
|
97 |
|