Made some tools for basic users & also may or may not added a bunch of

nono keywords into the kidunfriendlycontent.json file. Oh, and most of
it is sourced from you guessed it LINE Today & Taiwan's garbage news
corps >_<
This commit is contained in:
yuanhau 2025-05-19 22:59:55 +08:00
parent 4080eeaa3e
commit 84c176ac09
8 changed files with 69 additions and 32 deletions

View file

@ -8,7 +8,7 @@ async function checkUnsafeContent(title: string) {
console.log(patterns);
newsAnalyzer.setSensitivePatterns(patterns);
const kidfriendly = newsAnalyzer.isKidFriendly(title);
return kidfriendly;
return !kidfriendly;
} catch (e) {
console.log(e);
}