Skip to content

Commit d76f4c9

Browse files
oSumAtrIXLisoUseInAIKyrios
andauthored
feat(YouTube - Hide Shorts components): Add option to hide like fountain (#3731)
Co-authored-by: LisoUseInAIKyrios <[email protected]>
1 parent eebe82b commit d76f4c9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsResourcePatch.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ object HideShortsComponentsResourcePatch : ResourcePatch() {
2929
// since this Setting menu currently uses the ordering used here.
3030

3131
// Vertical row of buttons on right side of the screen.
32+
SwitchPreference("revanced_hide_shorts_like_fountain"),
3233
SwitchPreference("revanced_hide_shorts_like_button"),
3334
SwitchPreference("revanced_hide_shorts_dislike_button"),
3435
SwitchPreference("revanced_hide_shorts_comments_button"),
@@ -59,7 +60,7 @@ object HideShortsComponentsResourcePatch : ResourcePatch() {
5960
context.xmlEditor["res/xml/main_shortcuts.xml"].use { editor ->
6061
val shortsItem = editor.file.childNodes.findElementByAttributeValueOrThrow(
6162
"android:shortcutId",
62-
"shorts-shortcut"
63+
"shorts-shortcut",
6364
)
6465

6566
shortsItem.parentNode.removeChild(shortsItem)
@@ -70,7 +71,7 @@ object HideShortsComponentsResourcePatch : ResourcePatch() {
7071
context.xmlEditor["res/layout/appwidget_two_rows.xml"].use { editor ->
7172
val shortsItem = editor.file.childNodes.findElementByAttributeValueOrThrow(
7273
"android:id",
73-
"@id/button_shorts_container"
74+
"@id/button_shorts_container",
7475
)
7576

7677
shortsItem.parentNode.removeChild(shortsItem)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,9 @@ This is because Crowdin requires temporarily flattening this file and removing t
637637
<string name="revanced_hide_shorts_stickers_title">Hide stickers</string>
638638
<string name="revanced_hide_shorts_stickers_summary_on">Stickers are hidden</string>
639639
<string name="revanced_hide_shorts_stickers_summary_off">Stickers are shown</string>
640+
<string name="revanced_hide_shorts_like_fountain_title">Hide like fountain</string>
641+
<string name="revanced_hide_shorts_like_fountain_summary_on">Like button fountain animation is hidden</string>
642+
<string name="revanced_hide_shorts_like_fountain_summary_off">Like button fountain animation is shown</string>
640643
<string name="revanced_hide_shorts_like_button_title">Hide like button</string>
641644
<string name="revanced_hide_shorts_like_button_summary_on">Like button is hidden</string>
642645
<string name="revanced_hide_shorts_like_button_summary_off">Like button is shown</string>

0 commit comments

Comments
 (0)