From f0d615d14526f34b0f896c30f02ff926a87fcb9d Mon Sep 17 00:00:00 2001 From: inotia00 Date: Wed, 22 Feb 2023 20:07:30 +0900 Subject: [PATCH] move `Hide community guidelines` setting to comments component setting --- .../general/resource/patch/GeneralAdsPatch.kt | 6 +++++- .../comment/patch/CommentComponentPatch.kt | 3 ++- .../youtube/settings/xml/revanced_prefs.xml | 17 +++++++++++------ 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/ads/general/resource/patch/GeneralAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ads/general/resource/patch/GeneralAdsPatch.kt index 173250047..2767cd552 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ads/general/resource/patch/GeneralAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ads/general/resource/patch/GeneralAdsPatch.kt @@ -97,7 +97,11 @@ class GeneralAdsPatch : ResourcePatch { "PREFERENCE: GENERAL_LAYOUT_SETTINGS", "PREFERENCE_HEADER: PLAYER", - "SETTINGS: HIDE_VIEW_PRODUCT" + "SETTINGS: HIDE_VIEW_PRODUCT", + + "PREFERENCE: OTHER_LAYOUT_SETTINGS", + "PREFERENCE_HEADER: BOTTOM_PLAYER", + "SETTINGS: COMMENT_COMPONENT_PARENT" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttomplayer/comment/patch/CommentComponentPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttomplayer/comment/patch/CommentComponentPatch.kt index 94194a505..13d561fa3 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttomplayer/comment/patch/CommentComponentPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttomplayer/comment/patch/CommentComponentPatch.kt @@ -34,7 +34,8 @@ class CommentComponentPatch : ResourcePatch { arrayOf( "PREFERENCE: OTHER_LAYOUT_SETTINGS", "PREFERENCE_HEADER: BOTTOM_PLAYER", - "SETTINGS: COMMENT_COMPONENT" + "SETTINGS: COMMENT_COMPONENT_PARENT", + "SETTINGS: COMMENT_COMPONENTS" ) ) diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml index 2214aeafc..363ad1fb3 100644 --- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml +++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml @@ -129,13 +129,11 @@ - - @@ -240,12 +238,19 @@ SETTINGS: BUTTON_CONTAINER --> - + + + SETTINGS: COMMENT_COMPONENTS --> + + +