Url: i.pximg.org
addEventListener("fetch", event => {
let url = new URL(event.request.url);
url.hostname = "i.pximg.net";
let request = new Request(url, event.request);
event.respondWith(
fetch(request, {
headers: {
'Referer': 'https://www.pixiv.net/',
'User-Agent': 'Mozilla/5.0 (Linux; Android 4.3; tr-tr; SAMSUNG SM-G710 Build/JLS36C) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36 iKunOS'
}
})
);
});
将 pixiv 图像直链中的“.net”直接替换为“.org”即可.
https://i.pximg.net/img-original/img/2018/04/24/01/51/35/68377968_p0.png
替换为: https://i.pximg.org/img-original/img/2018/04/24/01/51/35/68377968_p0.png
此程序部署于 Cloudflare Worker ,对于某些地区此加速链接加载速度略快于 pixiv[.]re
cf 每日免费额度为 10w 次请求,请不要滥用 QwQ
1
mouyase 363 天前 via Android
过不了多久你也要被污染…
|