mirror of
https://github.com/Sliverkiss/QuantumultX.git
synced 2025-12-20 16:54:42 +08:00
12 lines
363 B
JavaScript
12 lines
363 B
JavaScript
let body = JSON.parse($response.body);
|
|
|
|
body.data.data = body.data.data.filter(e => e.key !== 'index_n');
|
|
|
|
let indexItem = body.data.data.find(e => e.key === 'index');
|
|
if (indexItem) {
|
|
let moduleList = indexItem.value.index.moduleList;
|
|
indexItem.value.index.moduleList = [moduleList[0], moduleList[moduleList.length - 1]];
|
|
}
|
|
|
|
$done(JSON.stringify(body));
|