瀏覽代碼

Update script

SukkaW 4 年之前
父節點
當前提交
efdd56a82c
共有 2 個文件被更改,包括 40 次插入39 次删除
  1. 34 34
      Script/fuck_emby
  2. 6 5
      Script/pixiv_premium

+ 34 - 34
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);

+ 6 - 5
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 })