diff --git a/Script/fuck_emby.js b/Script/fuck_emby.js index 270c87bf..11fe3277 100644 --- a/Script/fuck_emby.js +++ b/Script/fuck_emby.js @@ -1,6 +1,6 @@ const url = $request.url; const newHeaders = { - Crack: 'KS', + Crack: 'Sukka', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': '*', 'Access-Control-Allow-Method': '*', diff --git a/Script/pixiv_premium.js b/Script/pixiv_premium.js index 87ae3250..bba8ec24 100644 --- a/Script/pixiv_premium.js +++ b/Script/pixiv_premium.js @@ -1,8 +1,14 @@ let body = $response.body; body = JSON.parse(body); -if (body?.response?.user?.is_premium) { +if (body?.response) { + body.response = body.response || {}; + body.response.user = body.response.user || {}; body.response.user.is_premium = true; } +if (body?.user) { + body.user = body.user || {}; + body.user.is_premium = true; +} body = JSON.stringify(body); $done({ body })