Ackshually use the blacklist

This commit is contained in:
coomdev 2022-01-05 15:04:07 +01:00
parent b122f8250c
commit 0befe32d2d

View File

@ -99,7 +99,7 @@ const findFileFrom = async (b: Booru, hex: string) => {
const res = await GM_fetch(`https://${b.domain}${b.endpoint}${hex}`);
// might throw because some endpoint respond with invalid json when an error occurs
const pres = await res.json();
const tran = b.quirks(pres);
const tran = b.quirks(pres).filter(e => !e.tags.some(e => black.has(e)));
cache[hex] = tran;
return tran;
} catch {