diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/components/KeywordContentFilter.java b/app/src/main/java/app/revanced/integrations/youtube/patches/components/KeywordContentFilter.java index 1b91d01927..e7cb55c340 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/components/KeywordContentFilter.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/components/KeywordContentFilter.java @@ -43,11 +43,6 @@ @SuppressWarnings("unused") public final class KeywordContentFilter extends Filter { - /** - * Minimum keyword/phrase length to prevent excessively broad content filtering. - */ - private static final int MINIMUM_KEYWORD_LENGTH = 3; - /** * Strings found in the buffer for every video. * Full strings should be specified, as they are compared using {@link String#contains(CharSequence)}. @@ -235,12 +230,6 @@ private synchronized void parseKeywords() { // Must be synchronized since Litho phrase = phrase.stripTrailing(); if (phrase.isBlank()) continue; - if (phrase.length() < MINIMUM_KEYWORD_LENGTH) { - // Do not reset the setting. Keep the invalid keywords so the user can fix the mistake. - Utils.showToastLong(str("revanced_hide_keyword_toast_invalid_keyword", phrase, MINIMUM_KEYWORD_LENGTH)); - continue; - } - // Add common casing that might appear. // // This could be simplified by adding case-insensitive search to the prefix search,