Some updates!

This commit is contained in:
QuiteAFancyEmerald 2021-11-29 22:02:24 -08:00
parent 47a843bbb8
commit df4ce2ae68
No known key found for this signature in database
GPG key ID: 14E10C9F7DC07318
1412 changed files with 188615 additions and 149532 deletions

View file

@ -0,0 +1,14 @@
function address(arr = []) {
return function (ctx) {
ctx.address = arr[Math.floor(Math.random() * arr.length)];
};
};
function blacklist(arr = [], page = '') {
return function (ctx) {
if (arr.includes(ctx.url.hostname)) ctx.clientResponse.end(page);
};
};
exports.address = address;
exports.blacklist = blacklist;