mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
Added Corrosion Fix for Heroku
Credits: https://github.com/BinBashBanana/Corrosion-Heroku (very epic person)
This commit is contained in:
parent
8d88daf1c2
commit
b0c48df26c
25 changed files with 13 additions and 10 deletions
|
@ -1,14 +0,0 @@
|
|||
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;
|
Loading…
Add table
Add a link
Reference in a new issue