parent
0ca5abc3be
commit
f8fd58f78e
|
|
@ -27,11 +27,9 @@ export const replaceImgUrlIfNeed = (url?: string) => {
|
|||
}
|
||||
}
|
||||
|
||||
if (isWebBuild) {
|
||||
for (const rule of imageRefererMatches) {
|
||||
if (rule.url.test(url)) {
|
||||
return getImageProxyUrl({ url, width: 0, height: 0 })
|
||||
}
|
||||
for (const rule of imageRefererMatches) {
|
||||
if ((isWebBuild || rule.force) && rule.url.test(url)) {
|
||||
return getImageProxyUrl({ url, width: 0, height: 0 })
|
||||
}
|
||||
}
|
||||
return url
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ export const imageRefererMatches = [
|
|||
},
|
||||
{
|
||||
url: /^https:\/\/sp1\.piokok\.com/,
|
||||
referer: "https://sp1.piokok.com",
|
||||
referer: "https://www.piokok.com",
|
||||
force: true,
|
||||
},
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue