fix(YouTube - Hide description components): Replace Hide game section and Hide music section with Hide attributes section (#654)

Co-authored-by: ILoveOpenSourceApplications <ILoveOpenSourceApplications@users.noreply.github.com>
This commit is contained in:
ILoveOpenSourceApplications 2024-06-18 04:24:06 +05:30 committed by GitHub
parent a1e358bc18
commit f82dfce887
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 19 deletions

View File

@ -18,8 +18,15 @@ final class DescriptionComponentsFilter extends Filter {
"metadata"
);
final StringFilterGroup chapterSection = new StringFilterGroup(
Settings.HIDE_CHAPTERS,
final StringFilterGroup attributesSection = new StringFilterGroup(
Settings.HIDE_ATTRIBUTES_SECTION,
"gaming_section",
"music_section",
"video_attributes_section"
);
final StringFilterGroup chaptersSection = new StringFilterGroup(
Settings.HIDE_CHAPTERS_SECTION,
"macro_markers_carousel"
);
@ -28,17 +35,6 @@ final class DescriptionComponentsFilter extends Filter {
"infocards_section"
);
final StringFilterGroup gameSection = new StringFilterGroup(
Settings.HIDE_GAME_SECTION,
"gaming_section"
);
final StringFilterGroup musicSection = new StringFilterGroup(
Settings.HIDE_MUSIC_SECTION,
"music_section",
"video_attributes_section"
);
final StringFilterGroup podcastSection = new StringFilterGroup(
Settings.HIDE_PODCAST_SECTION,
"playlist_section"
@ -50,10 +46,9 @@ final class DescriptionComponentsFilter extends Filter {
);
addPathCallbacks(
chapterSection,
attributesSection,
chaptersSection,
infoCardsSection,
gameSection,
musicSection,
podcastSection,
transcriptSection
);

View File

@ -155,10 +155,9 @@ public class Settings extends BaseSettings {
public static final BooleanSetting HIDE_COMMENTS_TIMESTAMP_AND_EMOJI_BUTTONS = new BooleanSetting("revanced_hide_comments_timestamp_and_emoji_buttons", TRUE);
// Description
public static final BooleanSetting HIDE_CHAPTERS = new BooleanSetting("revanced_hide_chapters", TRUE);
public static final BooleanSetting HIDE_ATTRIBUTES_SECTION = new BooleanSetting("revanced_hide_attributes_section", FALSE);
public static final BooleanSetting HIDE_CHAPTERS_SECTION = new BooleanSetting("revanced_hide_chapters_section", TRUE);
public static final BooleanSetting HIDE_INFO_CARDS_SECTION = new BooleanSetting("revanced_hide_info_cards_section", TRUE);
public static final BooleanSetting HIDE_GAME_SECTION = new BooleanSetting("revanced_hide_game_section", TRUE);
public static final BooleanSetting HIDE_MUSIC_SECTION = new BooleanSetting("revanced_hide_music_section", TRUE);
public static final BooleanSetting HIDE_PODCAST_SECTION = new BooleanSetting("revanced_hide_podcast_section", TRUE);
public static final BooleanSetting HIDE_TRANSCRIPT_SECTION = new BooleanSetting("revanced_hide_transcript_section", TRUE);