mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2026-04-19 10:24:27 +00:00
deploy: b3c5c4be84680e67c10d79e6fe4f8e047cee9270
This commit is contained in:
52
Script/fuck_emby.js
Normal file
52
Script/fuck_emby.js
Normal 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
14
Script/pixiv_premium.js
Normal 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 })
|
||||
Reference in New Issue
Block a user