mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 17:15:09 +00:00
21 lines
521 B
JavaScript
21 lines
521 B
JavaScript
// if ($response.statusCode != 200) {
|
|
// $done(Null);
|
|
// }
|
|
|
|
// var body = $response.body;
|
|
// var obj = JSON.parse(body);
|
|
|
|
function getRandomInt(max) {
|
|
return Math.floor(Math.random() * Math.floor(max));
|
|
}
|
|
|
|
const foods = ['🍎', '🍐', '🍊', '🍋', '🍌', '🍉', '🍇', '🍓', '🍈', '🍒', '🍑', '🥭', '🍅']
|
|
|
|
var title = foods[getRandomInt(foods.length)];
|
|
var subtitle = '今天吃什么水果?';
|
|
var ip = '1.1.1.1';
|
|
var description = 'description'+ip;
|
|
|
|
|
|
$done({title, subtitle, ip, description});
|