deploy: b3c5c4be84680e67c10d79e6fe4f8e047cee9270

This commit is contained in:
SukkaBot
2021-11-29 21:50:49 +00:00
commit f420b8f9e1
41 changed files with 64276 additions and 0 deletions

52
Script/fuck_emby.js Normal file
View File

@@ -0,0 +1,52 @@
const url = $request.url;
const newHeaders = {
Crack: 'Sukka',
'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'
};
} else if (url.includes('/admin/service/appstore/register')) {
obj = {
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'
};
}
const newBody = JSON.stringify(obj);
const myResponse = {
status: 200,
headers: newHeaders,
body: newBody
};
$done(myResponse);

14
Script/pixiv_premium.js Normal file
View File

@@ -0,0 +1,14 @@
let body = $response.body;
body = JSON.parse(body);
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 })