Update index.js
Browse files
index.js
CHANGED
@@ -20,7 +20,7 @@ function extractStringAfterRp(url) {
|
|
20 |
|
21 |
|
22 |
app.get('/*', async (req, res) => {
|
23 |
-
const referer = req.headers.referer || "https://
|
24 |
const url = new URL(referer);
|
25 |
const rehost = url.hostname;
|
26 |
// 启动浏览器
|
@@ -55,7 +55,7 @@ app.get('/*', async (req, res) => {
|
|
55 |
if (matches) {
|
56 |
matches.forEach(match => {
|
57 |
const scriptUrl = match.replace(/'/g, "")
|
58 |
-
scripts += `<script src="https://
|
59 |
})
|
60 |
}
|
61 |
return { scripts, cibname, htmlContent };
|
|
|
20 |
|
21 |
|
22 |
app.get('/*', async (req, res) => {
|
23 |
+
const referer = req.headers.referer || "https://r.bing.com";
|
24 |
const url = new URL(referer);
|
25 |
const rehost = url.hostname;
|
26 |
// 启动浏览器
|
|
|
55 |
if (matches) {
|
56 |
matches.forEach(match => {
|
57 |
const scriptUrl = match.replace(/'/g, "")
|
58 |
+
scripts += `<script src="https://r.bing.com/rp${scriptUrl}"></script>\n`
|
59 |
})
|
60 |
}
|
61 |
return { scripts, cibname, htmlContent };
|