From ce28db3274f942e32a94faf12cbb9fe3cfc48561 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Tue, 2 Apr 2024 16:40:19 +0400
Subject: [PATCH 01/49] chore: Remove unused string
---
src/main/resources/addresources/values/strings.xml | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 50e59bf27..3032fafe1 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -829,7 +829,6 @@
Enable tablet layout
- Settings related to the layout
Tablet layout is enabled
Tablet layout is disabled
Community posts do not show up on tablet layouts
From 308de4a63ca99b8d30d6b3242f98d6f0e2aefb37 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Thu, 4 Apr 2024 10:47:09 +0400
Subject: [PATCH 02/49] fix(YouTube - Player flyout menu): Add hide Lock screen
menu (#2985)
---
.../hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt | 1 +
src/main/resources/addresources/values/strings.xml | 3 +++
2 files changed, 4 insertions(+)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt
index 904de9c05..e81d050e4 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt
@@ -64,6 +64,7 @@ object HidePlayerFlyoutMenuPatch : ResourcePatch() {
SwitchPreference("revanced_hide_player_flyout_report"),
SwitchPreference("revanced_hide_player_flyout_help"),
SwitchPreference("revanced_hide_player_flyout_speed"),
+ SwitchPreference("revanced_hide_player_flyout_lock_screen"),
SwitchPreference("revanced_hide_player_flyout_more_info"),
SwitchPreference("revanced_hide_player_flyout_audio_track"),
SwitchPreference("revanced_hide_player_flyout_watch_in_vr"),
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 3032fafe1..76390aec9 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -393,6 +393,9 @@
Hide More info
More info menu is hidden
More info menu is shown
+ Hide Lock screen
+ Lock screen menu is hidden
+ Lock screen menu is shown
Hide Audio track
Audio track menu is hidden
Audio track menu is shown
From 06e9f682ff2b285053fadf5da28359af9e67ae89 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Thu, 4 Apr 2024 06:49:26 +0000
Subject: [PATCH 03/49] chore(release): 4.6.1-dev.1 [skip ci]
## [4.6.1-dev.1](https://github.com/ReVanced/revanced-patches/compare/v4.6.0...v4.6.1-dev.1) (2024-04-04)
### Bug Fixes
* **YouTube - Player flyout menu:** Add hide Lock screen menu ([#2985](https://github.com/ReVanced/revanced-patches/issues/2985)) ([308de4a](https://github.com/ReVanced/revanced-patches/commit/308de4a63ca99b8d30d6b3242f98d6f0e2aefb37))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ee60dd237..aab8a5dc0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## [4.6.1-dev.1](https://github.com/ReVanced/revanced-patches/compare/v4.6.0...v4.6.1-dev.1) (2024-04-04)
+
+
+### Bug Fixes
+
+* **YouTube - Player flyout menu:** Add hide Lock screen menu ([#2985](https://github.com/ReVanced/revanced-patches/issues/2985)) ([308de4a](https://github.com/ReVanced/revanced-patches/commit/308de4a63ca99b8d30d6b3242f98d6f0e2aefb37))
+
# [4.6.0](https://github.com/ReVanced/revanced-patches/compare/v4.5.0...v4.6.0) (2024-04-02)
diff --git a/gradle.properties b/gradle.properties
index 0de6d25de..abfe47a97 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
org.gradle.parallel = true
org.gradle.caching = true
kotlin.code.style = official
-version = 4.6.0
+version = 4.6.1-dev.1
From 4c6a4ddd1c333e82e7342287ca3ffaf102327cb2 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Thu, 4 Apr 2024 14:19:03 +0400
Subject: [PATCH 04/49] chore: Add comments for translations
---
.../layout/hide/comments/CommentsPatch.kt | 7 +-
.../resources/addresources/values/strings.xml | 123 ++++++++++++++----
2 files changed, 101 insertions(+), 29 deletions(-)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt
index 9cdb9c9b9..fdc90bf69 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt
@@ -55,9 +55,10 @@ object CommentsPatch : ResourcePatch() {
PreferenceScreen(
"revanced_comments_screen",
preferences = setOf(
- SwitchPreference("revanced_hide_comments_section"),
- SwitchPreference("revanced_hide_preview_comment")
- )
+ SwitchPreference("revanced_hide_preview_comment"),
+ SwitchPreference("revanced_hide_comments_section")
+ ),
+ sorting = PreferenceScreen.Sorting.UNSORTED
)
)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 76390aec9..62e5dc3dc 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -13,9 +13,9 @@
Import failed: %s
-
+
GmsCore is not installed. Install it.
-
+
Follow the \"Don\'t kill my app\" guide for GmsCore.
Action needed
GmsCore is not whitelisted from battery optimization.\n\nFollow the \"Don\'t kill my app\" guide for GmsCore.
@@ -62,24 +62,30 @@
Hide gray separator
Gray separators are hidden
Gray separators are shown
- Hide \'Join\' button
- Button is hidden
- Button is shown
Hide channel watermark
Watermark is hidden
Watermark is shown
+
+ Hide \'Join\' button
+ Button is hidden
+ Button is shown
+
Hide \'For you\' shelf in channel page
Shelf is hidden
Shelf is shown
+
Hide \'Notify me\' button
Button is hidden
Button is shown
- Hide timed reactions
- Timed reactions are hidden
- Timed reactions are shown
+
Hide \'People also watched\' recommendations
Recommendations are hidden
Recommendations are shown
+ Hide timed reactions
+ Timed reactions are hidden
+ Timed reactions are shown
Hide search result shelf header
Shelf header is hidden
Shelf header is shown
@@ -186,11 +192,14 @@
Search results are filtered by keywords
Search results are not filtered by keywords
Keywords to hide
+
Keywords and phrases to hide, separated by new lines\n\nWords with uppercase letters in the middle must be entered with the casing (ie: iPhone, TikTok, LeBlanc)
About keyword filtering
Home/Subscription/Search results are filtered to hide content that matches keyword phrases\n\nLimitations\n• Some Shorts may not be hidden\n• Some UI components may not be hidden\n• Searching for a keyword may show no results
Invalid keyword. Cannot use: \'%s\' as a filter
- Invalid keyword. \'%1$s\' is less than %2$s characters
+ Invalid keyword. \'%1$s\' is less than %2$d characters
Hide general ads
@@ -199,7 +208,7 @@
Hide fullscreen ads
Fullscreen ads are hidden
Fullscreen ads are shown
- Hide buttoned ad
+ Hide buttoned ads
Buttoned ads are hidden
Buttoned ads are shown
Hide paid content
@@ -220,7 +229,7 @@
Hide merchandise banners
Merchandise banners are hidden
Merchandise banners are shown
- Failed to hide full-screen ad. Disabling to prevent issues
+ Could not hide fullscreen ad. Hide setting disabled to prevent issues.
Hide YouTube Premium promotions
@@ -254,6 +263,7 @@
Show external download button
Download button shown in player
Download button not shown in player
+
Override download action button
Download button opens your external downloader
Download button opens the native in-app downloader
@@ -307,27 +317,38 @@
Hide Like and Dislike
Like and Dislike buttons are hidden
Like and Dislike buttons are shown
+
Hide Share
Share button is hidden
Share button is shown
+
Hide Report
Report button is hidden
Report button is shown
+
Hide Remix
Remix button is hidden
Remix button is shown
+
Hide Download
Download button is hidden
Download button is shown
+
Hide Thanks
Thanks button is hidden
Thanks button is shown
+
Hide Clip
Clip button is hidden
Clip button is shown
+
Hide Save to playlist
Save to playlist button is hidden
Save to playlist button is shown
+
Hide Shop
Shop button is hidden
Shop button is shown
@@ -338,6 +359,8 @@
Autoplay button is shown
+
Hide captions button
Captions button is hidden
Captions button is shown
@@ -350,18 +373,23 @@
Navigation buttons
Hide or change buttons in the navigation bar
+
Hide Home
Home button is hidden
Home button is shown
+
Hide Shorts
Shorts button is hidden
Shorts button is shown
+
Hide Create
Create button is hidden
Create button is shown
+
Hide Subscriptions
Subscriptions button is hidden
Subscriptions button is shown
+
Switch Create with Notifications
Create button is switched with Notifications button
Create button is not switched with Notifications button
@@ -369,36 +397,49 @@