diff --git a/Script/fuck_emby b/Script/fuck_emby index c6677298..270c87bf 100644 --- a/Script/fuck_emby +++ b/Script/fuck_emby @@ -1,52 +1,52 @@ const url = $request.url; const newHeaders = { - "Crack": "KS", - "Access-Control-Allow-Origin": "*", - "Access-Control-Allow-Headers": "*", - "Access-Control-Allow-Method": "*", - "Access-Control-Allow-Credentials": "true" + Crack: 'KS', + 'Access-Control-Allow-Origin': '*', + 'Access-Control-Allow-Headers': '*', + 'Access-Control-Allow-Method': '*', + 'Access-Control-Allow-Credentials': 'true' }; let obj = {}; if (url.includes('/admin/service/registration/validateDevice')) { obj = { - "cacheExpirationDays": 365, - "message": "Device Valid", - "resultCode": "GOOD" - }; + 'cacheExpirationDays': 365, + 'message': 'Device Valid', + 'resultCode': 'GOOD' + }; } else if (url.includes('/admin/service/appstore/register')) { obj = { - "featId":"", - "registered":true, - "expDate":"2099-01-01", - "key":"" - }; + featId: '', + registered: true, + expDate: '2099-01-01', + key: '' + }; } else if (url.includes('/admin/service/registration/validate')) { - obj = { - "featId":"", - "registered":true, - "expDate":"2099-01-01", - "key":"" - }; -} else if (url.includes('/admin/service/registration/getStatus')){ - obj = { - "planType":"Sukka", - "deviceStatus":"", - "subscriptions":[] - }; -} else if (url.includes('/admin/service/supporter/retrievekey')){ - obj = { - "Success":false, - "ErrorMessage":"Supporter not found" - }; + obj = { + featId: '', + registered: true, + expDate: '2099-01-01', + key: '' + }; +} else if (url.includes('/admin/service/registration/getStatus')) { + obj = { + planType: 'Sukka', + deviceStatus: '', + subscriptions: [] + }; +} else if (url.includes('/admin/service/supporter/retrievekey')) { + obj = { + Success: false, + ErrorMessage: 'Supporter not found' + }; } const newBody = JSON.stringify(obj); const myResponse = { - status: 200, - headers: newHeaders, // Optional. - body: newBody // Optional. + status: 200, + headers: newHeaders, + body: newBody }; $done(myResponse); diff --git a/Script/pixiv_premium b/Script/pixiv_premium index 693bf626..dcd15e83 100644 --- a/Script/pixiv_premium +++ b/Script/pixiv_premium @@ -1,5 +1,6 @@ -let body = $response.body -body=JSON.parse(body) -body['response']['user']['is_premium']=true -body=JSON.stringify(body) -$done({body}) +let body = $response.body; +body = JSON.parse(body); +body['response']['user']['is_premium'] = true; +body = JSON.stringify(body); + +$done({ body })