Skip to content

Commit f85f518

Browse files
committed
feat(YouTube - Hide layout components): Hide playables
1 parent f3972d3 commit f85f518

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ import app.revanced.patcher.patch.annotation.CompatiblePackage
1212
import app.revanced.patcher.patch.annotation.Patch
1313
import app.revanced.patcher.util.smali.ExternalLabel
1414
import app.revanced.patches.all.misc.resources.AddResourcesPatch
15-
import app.revanced.patches.shared.misc.settings.preference.InputType
16-
import app.revanced.patches.shared.misc.settings.preference.NonInteractivePreference
17-
import app.revanced.patches.shared.misc.settings.preference.PreferenceScreen
15+
import app.revanced.patches.shared.misc.settings.preference.*
1816
import app.revanced.patches.shared.misc.settings.preference.PreferenceScreen.Sorting
19-
import app.revanced.patches.shared.misc.settings.preference.SwitchPreference
20-
import app.revanced.patches.shared.misc.settings.preference.TextPreference
2117
import app.revanced.patches.youtube.layout.hide.general.fingerprints.HideShowMoreButtonFingerprint
2218
import app.revanced.patches.youtube.layout.hide.general.fingerprints.ParseElementFromBufferFingerprint
2319
import app.revanced.patches.youtube.layout.hide.general.fingerprints.PlayerOverlayFingerprint
@@ -105,6 +101,7 @@ object HideLayoutComponentsPatch : BytecodePatch(
105101
SwitchPreference("revanced_hide_info_panels"),
106102
SwitchPreference("revanced_hide_join_membership_button"),
107103
SwitchPreference("revanced_hide_medical_panels"),
104+
SwitchPreference("revanced_hide_playables"),
108105
SwitchPreference("revanced_hide_quick_actions"),
109106
SwitchPreference("revanced_hide_related_videos"),
110107
SwitchPreference("revanced_hide_subscribers_community_guidelines"),

src/main/resources/addresources/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@
166166
<string name="revanced_hide_channel_bar_title">Hide channel bar</string>
167167
<string name="revanced_hide_channel_bar_summary_on">Channel bar is hidden</string>
168168
<string name="revanced_hide_channel_bar_summary_off">Channel bar is shown</string>
169+
<string name="revanced_hide_playables_title">Hide playables</string>
170+
<string name="revanced_hide_playables_summary_on">Playables are hidden</string>
171+
<string name="revanced_hide_playables_summary_off">Playables are shown</string>
169172
<string name="revanced_hide_quick_actions_title">Hide quick actions in fullscreen</string>
170173
<string name="revanced_hide_quick_actions_summary_on">Quick actions are hidden</string>
171174
<string name="revanced_hide_quick_actions_summary_off">Quick actions are shown</string>

0 commit comments

Comments
 (0)