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 124f5c956..a1fbbfa11 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 @@ -98,8 +98,7 @@ class GeneralAdsPatch : ResourcePatch { "SETTINGS: HIDE_VIEW_PRODUCT", "SETTINGS: DOUBLE_BACK_TIMEOUT", - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: BOTTOM_PLAYER", + "PREFERENCE: BOTTOM_PLAYER_LAYOUT_SETTINGS", "SETTINGS: COMMENT_COMPONENT_PARENT" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttomplayer/buttoncontainer/patch/ButtonContainerPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttomplayer/buttoncontainer/patch/ButtonContainerPatch.kt index efd4a8ae6..be62ca592 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttomplayer/buttoncontainer/patch/ButtonContainerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttomplayer/buttoncontainer/patch/ButtonContainerPatch.kt @@ -32,8 +32,7 @@ class ButtonContainerPatch : ResourcePatch { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: BOTTOM_PLAYER", + "PREFERENCE: BOTTOM_PLAYER_LAYOUT_SETTINGS", "SETTINGS: BUTTON_CONTAINER" ) ) 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 13d561fa3..0c754c4f2 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 @@ -32,8 +32,7 @@ class CommentComponentPatch : ResourcePatch { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: BOTTOM_PLAYER", + "PREFERENCE: BOTTOM_PLAYER_LAYOUT_SETTINGS", "SETTINGS: COMMENT_COMPONENT_PARENT", "SETTINGS: COMMENT_COMPONENTS" ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/flyoutpanel/flyoutpanel/patch/FlyoutPanelPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/flyoutpanel/flyoutpanel/patch/FlyoutPanelPatch.kt index c17fca9c4..04b1ace65 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/flyoutpanel/flyoutpanel/patch/FlyoutPanelPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/flyoutpanel/flyoutpanel/patch/FlyoutPanelPatch.kt @@ -32,8 +32,7 @@ class FlyoutPanelPatch : ResourcePatch { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: FLYOUT_PANEL", + "PREFERENCE: FLYOUT_PANEL_LAYOUT_SETTINGS", "SETTINGS: FLYOUT_PANEL_COMPONENT" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/flyoutpanel/oldqualitylayout/patch/OldQualityLayoutPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/flyoutpanel/oldqualitylayout/patch/OldQualityLayoutPatch.kt index 906270ac5..2bb06c6ff 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/flyoutpanel/oldqualitylayout/patch/OldQualityLayoutPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/flyoutpanel/oldqualitylayout/patch/OldQualityLayoutPatch.kt @@ -70,8 +70,7 @@ class OldQualityLayoutPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: FLYOUT_PANEL", + "PREFERENCE: FLYOUT_PANEL_LAYOUT_SETTINGS", "SETTINGS: ENABLE_OLD_QUALITY_LAYOUT" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/endscreenoverlay/patch/HideEndscreenOverlayPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/endscreenoverlay/patch/HideEndscreenOverlayPatch.kt index c6600963d..6bd73103f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/endscreenoverlay/patch/HideEndscreenOverlayPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/endscreenoverlay/patch/HideEndscreenOverlayPatch.kt @@ -85,8 +85,7 @@ class HideEndscreenOverlayPatch : BytecodePatch() { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: FULLSCREEN", + "PREFERENCE: FULLSCREEN_LAYOUT_SETTINGS", "SETTINGS: HIDE_ENDSCREEN_OVERLAY" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/flimstripoverlay/patch/HideFilmstripOverlayPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/flimstripoverlay/patch/HideFilmstripOverlayPatch.kt index 64d7e7114..c305bc559 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/flimstripoverlay/patch/HideFilmstripOverlayPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/flimstripoverlay/patch/HideFilmstripOverlayPatch.kt @@ -61,8 +61,7 @@ class HideFilmstripOverlayPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: FULLSCREEN", + "PREFERENCE: FULLSCREEN_LAYOUT_SETTINGS", "SETTINGS: HIDE_FILMSTRIP_OVERLAY" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/fullscreenbuttoncontainer/resource/patch/HideFullscreenButtonContainerPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/fullscreenbuttoncontainer/resource/patch/HideFullscreenButtonContainerPatch.kt index a1f624597..8a88e973c 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/fullscreenbuttoncontainer/resource/patch/HideFullscreenButtonContainerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/fullscreenbuttoncontainer/resource/patch/HideFullscreenButtonContainerPatch.kt @@ -33,8 +33,7 @@ class HideFullscreenButtonContainerPatch : ResourcePatch { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: FULLSCREEN", + "PREFERENCE: FULLSCREEN_LAYOUT_SETTINGS", "SETTINGS: HIDE_FULLSCREEN_BUTTON_CONTAINER" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/fullscreenpanels/patch/HideFullscreenPanelsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/fullscreenpanels/patch/HideFullscreenPanelsPatch.kt index 844813552..fe0b34823 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/fullscreenpanels/patch/HideFullscreenPanelsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/fullscreenpanels/patch/HideFullscreenPanelsPatch.kt @@ -88,8 +88,7 @@ class HideFullscreenPanelsPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: FULLSCREEN", + "PREFERENCE: FULLSCREEN_LAYOUT_SETTINGS", "SETTINGS: HIDE_FULLSCREEN_PANELS" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/hapticfeedback/patch/HapticFeedBackPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/hapticfeedback/patch/HapticFeedBackPatch.kt index 63790e32a..bb5dee73e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/hapticfeedback/patch/HapticFeedBackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreen/hapticfeedback/patch/HapticFeedBackPatch.kt @@ -56,8 +56,7 @@ class HapticFeedBackPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: FULLSCREEN", + "PREFERENCE: FULLSCREEN_LAYOUT_SETTINGS", "SETTINGS: DISABLE_HAPTIC_FEEDBACK" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/autoplaybutton/patch/HideAutoplayButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/autoplaybutton/patch/HideAutoplayButtonPatch.kt index 427e9d4f3..4ed90662e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/autoplaybutton/patch/HideAutoplayButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/autoplaybutton/patch/HideAutoplayButtonPatch.kt @@ -81,8 +81,7 @@ class HideAutoplayButtonPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_AUTOPLAY_BUTTON" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/captionsbutton/patch/HideCaptionsButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/captionsbutton/patch/HideCaptionsButtonPatch.kt index 9fcb98ff8..e95d51c99 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/captionsbutton/patch/HideCaptionsButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/captionsbutton/patch/HideCaptionsButtonPatch.kt @@ -50,8 +50,7 @@ class HideCaptionsButtonBytecodePatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_CAPTIONS_BUTTON" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/castbutton/patch/HideCastButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/castbutton/patch/HideCastButtonPatch.kt index 483cf927d..1ae3502d4 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/castbutton/patch/HideCastButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/castbutton/patch/HideCastButtonPatch.kt @@ -43,8 +43,7 @@ class HideCastButtonPatch : BytecodePatch() { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_CAST_BUTTON" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/collapsebutton/patch/HideCollapseButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/collapsebutton/patch/HideCollapseButtonPatch.kt index 13196c622..02ab0d898 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/collapsebutton/patch/HideCollapseButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/collapsebutton/patch/HideCollapseButtonPatch.kt @@ -32,8 +32,7 @@ class HideCollapseButtonPatch : ResourcePatch { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_COLLAPSE_BUTTON" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/endscreencards/patch/HideEndscreenCardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/endscreencards/patch/HideEndscreenCardsPatch.kt index 16e9866ec..c921cf910 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/endscreencards/patch/HideEndscreenCardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/endscreencards/patch/HideEndscreenCardsPatch.kt @@ -60,8 +60,7 @@ class HideEndscreenCardsPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_ENDSCREEN_CARDS" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/infocards/patch/HideInfocardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/infocards/patch/HideInfocardsPatch.kt index de8bdf2c5..ae2f15612 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/infocards/patch/HideInfocardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/infocards/patch/HideInfocardsPatch.kt @@ -45,8 +45,7 @@ class HideInfocardsPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_INFO_CARDS" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/livechatbutton/patch/HideLiveChatButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/livechatbutton/patch/HideLiveChatButtonPatch.kt index e324caf6a..0b1b560bf 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/livechatbutton/patch/HideLiveChatButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/livechatbutton/patch/HideLiveChatButtonPatch.kt @@ -32,8 +32,7 @@ class HideLiveChatButtonPatch : ResourcePatch { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_LIVE_CHATS_BUTTON" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/nextprevbutton/patch/HideNextPrevButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/nextprevbutton/patch/HideNextPrevButtonPatch.kt index d439eba5a..6f74a2a16 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/nextprevbutton/patch/HideNextPrevButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/nextprevbutton/patch/HideNextPrevButtonPatch.kt @@ -32,8 +32,7 @@ class HideNextPrevButtonPatch : ResourcePatch { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_NEXT_BUTTON", "SETTINGS: HIDE_PREV_BUTTON" ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/playerbuttonbg/patch/HidePlayerButtonBackgroundPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/playerbuttonbg/patch/HidePlayerButtonBackgroundPatch.kt index 7da7e7160..da66a4fba 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/playerbuttonbg/patch/HidePlayerButtonBackgroundPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/playerbuttonbg/patch/HidePlayerButtonBackgroundPatch.kt @@ -44,8 +44,7 @@ class HidePlayerButtonBackgroundPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_PLAYER_BUTTON_BACKGROUND" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/playeroverlayfilter/patch/PlayerOverlayFilterPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/playeroverlayfilter/patch/PlayerOverlayFilterPatch.kt index c2369d445..ffbd7b034 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/playeroverlayfilter/patch/PlayerOverlayFilterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/playeroverlayfilter/patch/PlayerOverlayFilterPatch.kt @@ -92,8 +92,7 @@ class PlayerOverlayFilterPatch : BytecodePatch() { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_PLAYER_OVERLAY_FILTER" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/suggestactions/patch/SuggestedActionsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/suggestactions/patch/SuggestedActionsPatch.kt index 8da6c2275..9a102ca05 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/suggestactions/patch/SuggestedActionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/suggestactions/patch/SuggestedActionsPatch.kt @@ -77,8 +77,7 @@ class SuggestedActionsPatch : BytecodePatch() { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_SUGGESTED_ACTION" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/watermark/patch/HideChannelWatermarkPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/watermark/patch/HideChannelWatermarkPatch.kt index a9b611b01..0a039b696 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/watermark/patch/HideChannelWatermarkPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/watermark/patch/HideChannelWatermarkPatch.kt @@ -56,8 +56,7 @@ class HideChannelWatermarkBytecodePatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: PLAYER", + "PREFERENCE: PLAYER_LAYOUT_SETTINGS", "SETTINGS: HIDE_CHANNEL_WATERMARK" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbar/patch/HideSeekbarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbar/patch/HideSeekbarPatch.kt index 7138e2919..38f28e67e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbar/patch/HideSeekbarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbar/patch/HideSeekbarPatch.kt @@ -47,8 +47,7 @@ class HideSeekbarPatch : BytecodePatch() { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: SEEKBAR", + "PREFERENCE: SEEKBAR_LAYOUT_SETTINGS", "SETTINGS: HIDE_SEEKBAR" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbarcolor/patch/SeekbarColorPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbarcolor/patch/SeekbarColorPatch.kt index f72a5b060..6a9e9e58a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbarcolor/patch/SeekbarColorPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbarcolor/patch/SeekbarColorPatch.kt @@ -82,8 +82,7 @@ class SeekbarColorPatch : BytecodePatch() { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: SEEKBAR", + "PREFERENCE: SEEKBAR_LAYOUT_SETTINGS", "SETTINGS: CUSTOM_SEEKBAR_COLOR" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbartapping/patch/SeekbarTappingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbartapping/patch/SeekbarTappingPatch.kt index 8131a26f1..8881866fb 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbartapping/patch/SeekbarTappingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/seekbartapping/patch/SeekbarTappingPatch.kt @@ -92,8 +92,7 @@ class SeekbarTappingPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: SEEKBAR", + "PREFERENCE: SEEKBAR_LAYOUT_SETTINGS", "SETTINGS: ENABLE_SEEKBAR_TAPPING" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/timestamps/patch/HideTimeStampPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/timestamps/patch/HideTimeStampPatch.kt index bdcb1be01..31b380f3a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/timestamps/patch/HideTimeStampPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/timestamps/patch/HideTimeStampPatch.kt @@ -53,8 +53,7 @@ class HideTimeStampPatch : BytecodePatch( */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE: OTHER_LAYOUT_SETTINGS", - "PREFERENCE_HEADER: SEEKBAR", + "PREFERENCE: SEEKBAR_LAYOUT_SETTINGS", "SETTINGS: HIDE_TIME_STAMP" ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/resource/patch/MicroGPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/resource/patch/MicroGPatch.kt index 03833ef58..554e8d497 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/resource/patch/MicroGPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/resource/patch/MicroGPatch.kt @@ -43,9 +43,7 @@ class MicroGPatch : ResourcePatch { */ SettingsPatch.addPreference( arrayOf( - "PREFERENCE_CATEGORY: MICROG_SETTINGS", - "PREFERENCE: MICROG_SETTINGS", - "SETTINGS: MICROG_SETTINGS" + "PREFERENCE: MICROG_SETTINGS" ) ) SettingsPatch.updatePatchStatus("microg-support") diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt index 4dc611265..129a4fb20 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt @@ -13,6 +13,7 @@ import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patches.shared.annotation.YouTubeCompatibility import app.revanced.patches.youtube.misc.playercontrols.patch.PlayerControlsPatch +import app.revanced.patches.youtube.misc.playertype.patch.PlayerTypeHookPatch import app.revanced.patches.youtube.misc.resourceid.patch.SharedResourcdIdPatch import app.revanced.patches.youtube.misc.sponsorblock.bytecode.fingerprints.* import app.revanced.patches.youtube.misc.timebar.patch.HookTimebarPatch @@ -32,6 +33,7 @@ import org.jf.dexlib2.iface.reference.MethodReference [ MainstreamVideoIdPatch::class, PlayerControlsPatch::class, + PlayerTypeHookPatch::class, SharedResourcdIdPatch::class ] ) diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml index 0bb28509b..4d2735528 100644 --- a/src/main/resources/youtube/settings/host/values/strings.xml +++ b/src/main/resources/youtube/settings/host/values/strings.xml @@ -44,10 +44,8 @@ Please install MicroG MicroG is not found MicroG does not run in the background - "1. Google device registration and Cloud Messaging need to be enabled for notifications. -2. ReVanced needs to be shown as registered under Cloud Messaging. -3. Current State in Cloud Messaging must be Connected." - Notification + Enable cloud messaging settings to receive notifications + Open MicroG min Choose the segment category "The segment lasts from %02d:%02d to %02d:%02d (%d minutes %02d seconds) @@ -69,8 +67,7 @@ Is it ready to submit?" Beginning of segment set New SponsorBlock segment Reset - Ads related settings - Ads + Ads Album cards are shown from search results Album cards are hidden from search results Hide album cards @@ -154,7 +151,11 @@ Is it ready to submit?" Web search panels are shown Web search panels are hidden Hide web search panels - Import ReVanced settings from file or export ReVanced settings to file + Import ReVanced settings from file or export ReVanced settings to file + Bottom player layout + Button container + Comments + Time Stamp copied to clipboard Type the hex code of the seekbar color to use in dark mode Custom seekbar color value Default video quality Cellular @@ -176,12 +177,10 @@ Is it ready to submit?" Chapters haptic feedback is enabled Chapters haptic feedback is disabled Disable chapters haptic feedback - Disable haptic feedback on long press - Disable haptic feedback + Haptic feedback Zoom haptic feedback is enabled Zoom haptic feedback is disabled Disable zoom haptic feedback - Time Stamp copied to clipboard Always auto repeat is disabled Always auto repeat is enabled Always auto repeat @@ -253,8 +252,9 @@ Is it ready to submit?" Export settings Report issues or leave suggestions here Support Center - General layout related settings - General layout + Flyout menu layout + Fullscreen layout + General layout Captions are enabled when playing a video with captioning is enforced "Captions aren't enabled when playing a video with captioning is enforced" Hide auto captions @@ -264,8 +264,6 @@ Is it ready to submit?" Autoplay button is shown Autoplay button is hidden Hide autoplay button - Hides the component of the button container - Hide button container component Clip button is shown Clip button is hidden Hide clip button @@ -308,8 +306,6 @@ Is it ready to submit?" Collapse button is shown Collapse button is hidden Hide collapse button - Hides the comments section or component - Hide comments component Comment section is shown Comment section is hidden Hide comments section @@ -441,16 +437,8 @@ Is it ready to submit?" Hide time stamp Fetch ReVanced settings from saved file Import settings - Bottom player layout - Flyout menu layout - Fullscreen layout - Player layout - Seekbar layout - Miscellaneous related settings - Miscellaneous - Others - Other layout related settings - Other layout + Miscellaneous + Others Auto repeat button is hidden Auto repeat button is shown Show auto repeat button @@ -463,8 +451,7 @@ Is it ready to submit?" Download button is hidden Download button is shown Show download button - Overlay button related settings - Overlay button + Overlay button Video speed reseted (1.0x) Speed button is hidden Speed button is shown @@ -477,8 +464,8 @@ Is it ready to submit?" Premium Header Information about applied patches Patches Information - Hides the component of the player settings flyout panel - Player flyout panel component + Player flyout panel + Player layout "As this is still an experimental feature, there may be other unknown issues. Are you sure you want to continue though?" "Tricks the YouTube client version to v17.28.35 to load the old layout @@ -518,9 +505,9 @@ Since these setting is quite outdated, it may not be valid" Changing default Wi-Fi quality to: Failed to change default WI-FI quality Changing default speed to: + Seekbar layout SponsorBlock related settings - Swipe controls related settings - Swipe controls + Swipe controls The amount of threshold for swipe to occur Swipe magnitude threshold The visibility of swipe overlay background @@ -536,8 +523,7 @@ Since these setting is quite outdated, it may not be valid" Video ads are shown Video ads are hidden Hide video ads - Video related settings - Video + Video Failed to add channel %s to the %s whitelist Channel %s was added to the %s whitelist Video Ads diff --git a/src/main/resources/youtube/settings/values-v21/strings.xml b/src/main/resources/youtube/settings/values-v21/strings.xml index a01ab7045..eb4cc79ca 100644 --- a/src/main/resources/youtube/settings/values-v21/strings.xml +++ b/src/main/resources/youtube/settings/values-v21/strings.xml @@ -3,9 +3,7 @@ @string/pref_about_category - MicroG - - @string/settings_ie + @string/settings_ie ReVanced Extended @string/revanced_hide_button_live_chat_summary_off @string/revanced_hide_button_live_chat_summary_on diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml index 9865954fb..532e76c92 100644 --- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml +++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml @@ -2,18 +2,9 @@ - - - - + + PREFERENCE: ADS_SETTINGS --> @@ -23,19 +14,17 @@ - - - - - SETTINGS: HIDE_GENERAL_ADS --> + + + SETTINGS: HIDE_GENERAL_ADS --> + + PREFERENCE: SWIPE_SETTINGS --> + + PREFERENCE: GENERAL_LAYOUT_SETTINGS --> + + @@ -145,18 +137,13 @@ - - - - + @@ -200,9 +187,13 @@ + - + + @@ -217,70 +208,74 @@ SETTINGS: HIDE_FILMSTRIP_OVERLAY --> + + + + + SETTINGS: DISABLE_HAPTIC_FEEDBACK --> + - + + + + + + + + + + + + + SETTINGS: BUTTON_CONTAINER --> + SETTINGS: COMMENT_COMPONENT_PARENT --> - + - - + - + + + + + + + + + + + + + + + + + SETTINGS: FLYOUT_PANEL_COMPONENT --> - + + + + - + + + PREFERENCE: VIDEO_SETTINGS --> - - + + + + @@ -358,7 +358,7 @@ - + - - + + @@ -376,14 +376,14 @@ - + - + - + @@ -401,7 +401,7 @@ - + @@ -414,36 +414,36 @@ - + - + - + - + - + - + - + @@ -451,7 +451,7 @@ - +