From b89bd8d7992596d29bcf940b5068d616ac1cfcbc Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Sun, 21 Apr 2024 05:34:44 +0400
Subject: [PATCH 01/53] chore: Adjust hide fullscreen ads toast text, move hide
Playables to feed menu
---
.../layout/hide/general/HideLayoutComponentsPatch.kt | 2 +-
src/main/resources/addresources/values/strings.xml | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt
index 8944dbbf9..d98276000 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt
@@ -103,7 +103,6 @@ object HideLayoutComponentsPatch : BytecodePatch(
SwitchPreference("revanced_hide_info_panels"),
SwitchPreference("revanced_hide_join_membership_button"),
SwitchPreference("revanced_hide_medical_panels"),
- SwitchPreference("revanced_hide_playables"),
SwitchPreference("revanced_hide_quick_actions"),
SwitchPreference("revanced_hide_related_videos"),
SwitchPreference("revanced_hide_subscribers_community_guidelines"),
@@ -122,6 +121,7 @@ object HideLayoutComponentsPatch : BytecodePatch(
SwitchPreference("revanced_hide_mix_playlists"),
SwitchPreference("revanced_hide_movies_section"),
SwitchPreference("revanced_hide_notify_me_button"),
+ SwitchPreference("revanced_hide_playables"),
SwitchPreference("revanced_hide_search_result_recommendations"),
SwitchPreference("revanced_hide_search_result_shelf_header"),
SwitchPreference("revanced_hide_show_more_button"),
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index f59fcb612..ee5f9fdd4 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -171,7 +171,7 @@
Hide channel bar
Channel bar is hidden
Channel bar is shown
- Hide playables
+ Hide Playables
Playables are hidden
Playables are shown
Hide quick actions in fullscreen
@@ -249,7 +249,7 @@
General ads are hidden
General ads are shown
Hide fullscreen ads
- Fullscreen ads are hidden
+ Fullscreen ads are hidden\n\nThis feature is only available for older devices
Fullscreen ads are shown
Hide buttoned ads
Buttoned ads are hidden
@@ -272,7 +272,7 @@
Hide merchandise banners
Merchandise banners are hidden
Merchandise banners are shown
- Could not hide fullscreen ad. Hide setting disabled to prevent issues.
+ Hide fullscreen ads only works with older devices
Hide YouTube Premium promotions
From 4ca6886fcf8140a448f3c058dfb2b041cdd54331 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Sun, 21 Apr 2024 08:03:11 +0400
Subject: [PATCH 02/53] chore: Fix duplicate strings that is confusing Crowdin
---
.../patches/twitch/misc/settings/SettingsPatch.kt | 12 +++++++++++-
src/main/resources/addresources/values/strings.xml | 6 +++---
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/main/kotlin/app/revanced/patches/twitch/misc/settings/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/twitch/misc/settings/SettingsPatch.kt
index 719c65593..b034444b7 100644
--- a/src/main/kotlin/app/revanced/patches/twitch/misc/settings/SettingsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/twitch/misc/settings/SettingsPatch.kt
@@ -62,7 +62,17 @@ object SettingsPatch : BytecodePatch(
AddResourcesPatch(this::class)
PreferenceScreen.MISC.OTHER.addPreferences(
- SwitchPreference("revanced_debug")
+ // The debug setting is shared across multiple apps and the key must be the same.
+ // But the title and summary must be different, otherwise when the strings file is flattened
+ // for Crowdin push, Crowdin gets confused by the duplicate keys.
+ // FIXME: Ideally the shared debug strings are extracted into a common app group
+ // and then both apps import that. But for now unique unique title and summary keys also works.
+ SwitchPreference(
+ key = "revanced_debug",
+ titleKey = "revanced_twitch_debug_title",
+ summaryOnKey = "revanced_twitch_debug_summary_on",
+ summaryOffKey = "revanced_twitch_debug_summary_off"
+ )
)
// Hook onCreate to handle fragment creation
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index ee5f9fdd4..2e9f2e648 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -1155,9 +1155,9 @@
Other settings
Client-side ads
Server-side surestream ads
- Debug logging
- Debug logs are enabled
- Debug logs are disabled
+ Debug logging
+ Debug logs are enabled
+ Debug logs are disabled
\ No newline at end of file
From 12969853adfe530eb6006df38e1a5aa30b28fdf9 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Sun, 21 Apr 2024 18:55:26 +0400
Subject: [PATCH 03/53] feat(YouTube - Hide Shorts components): Hide like /
dislike button in video ads (#3062)
---
.../hide/shorts/HideShortsComponentsPatch.kt | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt
index 3471c5dff..1469c21d0 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt
@@ -13,11 +13,14 @@ import app.revanced.patches.youtube.misc.integrations.IntegrationsPatch
import app.revanced.patches.youtube.misc.litho.filter.LithoFilterPatch
import app.revanced.patches.youtube.misc.navigation.NavigationBarHookPatch
import app.revanced.util.exception
+import app.revanced.util.getReference
import app.revanced.util.indexOfIdResourceOrThrow
import app.revanced.util.injectHideViewCall
+import com.android.tools.smali.dexlib2.Opcode
import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
+import com.android.tools.smali.dexlib2.iface.reference.MethodReference
@Patch(
name = "Hide Shorts components",
@@ -155,17 +158,24 @@ object HideShortsComponentsPatch : BytecodePatch(
}
private enum class ShortsButtons(private val resourceName: String, private val methodName: String) {
+ LIKE("reel_dyn_like", "hideLikeButton"),
+ DISLIKE("reel_dyn_dislike", "hideDislikeButton"),
COMMENTS("reel_dyn_comment", "hideShortsCommentsButton"),
REMIX("reel_dyn_remix", "hideShortsRemixButton"),
- SHARE("reel_dyn_share", "hideShortsShareButton"),
- ;
+ SHARE("reel_dyn_share", "hideShortsShareButton");
fun injectHideCall(method: MutableMethod) {
val referencedIndex = method.indexOfIdResourceOrThrow(resourceName)
- val setIdIndex = referencedIndex + 1
+ val instruction = method.implementation!!.instructions
+ .subList(referencedIndex, referencedIndex + 20)
+ .first {
+ it.opcode == Opcode.INVOKE_VIRTUAL && it.getReference()?.name == "setId"
+ }
+
+ val setIdIndex = instruction.location.index
val viewRegister = method.getInstruction(setIdIndex).registerC
- method.injectHideViewCall(setIdIndex, viewRegister, FILTER_CLASS_DESCRIPTOR, methodName)
+ method.injectHideViewCall(setIdIndex + 1, viewRegister, FILTER_CLASS_DESCRIPTOR, methodName)
}
}
}
From b5e34f3aabc1d9df8c41f92251618243caecdc9f Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Sun, 21 Apr 2024 18:57:35 +0400
Subject: [PATCH 04/53] fix(YouTube - Hide video action buttons): Remove
obsolete `hide Shop button` (#3057)
---
.../youtube/layout/buttons/action/HideButtonsPatch.kt | 3 +--
src/main/resources/addresources/values/strings.xml | 5 -----
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/HideButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/HideButtonsPatch.kt
index deaebe49c..20757d6e2 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/HideButtonsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/HideButtonsPatch.kt
@@ -65,8 +65,7 @@ object HideButtonsPatch : ResourcePatch() {
SwitchPreference("revanced_hide_download_button"),
SwitchPreference("revanced_hide_thanks_button"),
SwitchPreference("revanced_hide_clip_button"),
- SwitchPreference("revanced_hide_playlist_button"),
- SwitchPreference("revanced_hide_shop_button")
+ SwitchPreference("revanced_hide_playlist_button")
),
)
)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 2e9f2e648..18df77e94 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -393,11 +393,6 @@
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
Hide autoplay button
From 3901b7d4bbd1d8cd97c56c1a1184afdb47870358 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Sun, 21 Apr 2024 14:59:47 +0000
Subject: [PATCH 05/53] chore(release): 4.8.0-dev.1 [skip ci]
# [4.8.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v4.7.0...v4.8.0-dev.1) (2024-04-21)
### Bug Fixes
* **YouTube - Hide video action buttons:** Remove obsolete `hide Shop button` ([#3057](https://github.com/ReVanced/revanced-patches/issues/3057)) ([b5e34f3](https://github.com/ReVanced/revanced-patches/commit/b5e34f3aabc1d9df8c41f92251618243caecdc9f))
### Features
* **YouTube - Hide Shorts components:** Hide like / dislike button in video ads ([#3062](https://github.com/ReVanced/revanced-patches/issues/3062)) ([1296985](https://github.com/ReVanced/revanced-patches/commit/12969853adfe530eb6006df38e1a5aa30b28fdf9))
---
CHANGELOG.md | 12 ++++++++++++
gradle.properties | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 868f9da50..22d2fda0b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,15 @@
+# [4.8.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v4.7.0...v4.8.0-dev.1) (2024-04-21)
+
+
+### Bug Fixes
+
+* **YouTube - Hide video action buttons:** Remove obsolete `hide Shop button` ([#3057](https://github.com/ReVanced/revanced-patches/issues/3057)) ([b5e34f3](https://github.com/ReVanced/revanced-patches/commit/b5e34f3aabc1d9df8c41f92251618243caecdc9f))
+
+
+### Features
+
+* **YouTube - Hide Shorts components:** Hide like / dislike button in video ads ([#3062](https://github.com/ReVanced/revanced-patches/issues/3062)) ([1296985](https://github.com/ReVanced/revanced-patches/commit/12969853adfe530eb6006df38e1a5aa30b28fdf9))
+
# [4.7.0](https://github.com/ReVanced/revanced-patches/compare/v4.6.0...v4.7.0) (2024-04-21)
diff --git a/gradle.properties b/gradle.properties
index 9fbff2fe7..d1bdcf8b6 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.7.0
+version = 4.8.0-dev.1
From 259c8b4e58df51d92d7e19417e13afa3848afc73 Mon Sep 17 00:00:00 2001
From: oSumAtrIX
Date: Mon, 22 Apr 2024 01:37:21 +0200
Subject: [PATCH 06/53] fix: Case patch option title correctly
---
src/main/kotlin/app/revanced/patches/all/misc/hex/HexPatch.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/kotlin/app/revanced/patches/all/misc/hex/HexPatch.kt b/src/main/kotlin/app/revanced/patches/all/misc/hex/HexPatch.kt
index 164eaa13a..7aaee12b4 100644
--- a/src/main/kotlin/app/revanced/patches/all/misc/hex/HexPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/all/misc/hex/HexPatch.kt
@@ -19,7 +19,7 @@ class HexPatch : BaseHexPatch() {
// Replace the custom option type with a stringArrayOption once the issue is resolved.
private val replacementsOption by registerNewPatchOption, List>(
key = "replacements",
- title = "replacements",
+ title = "Replacements",
description = """
Hexadecimal patterns to search for and replace with another in a target file.
From f0f876803e212b72d29ea17c1ce565ec2ec458f8 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Sun, 21 Apr 2024 23:39:44 +0000
Subject: [PATCH 07/53] chore(release): 4.8.0-dev.2 [skip ci]
# [4.8.0-dev.2](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.1...v4.8.0-dev.2) (2024-04-21)
### Bug Fixes
* Case patch option title correctly ([259c8b4](https://github.com/ReVanced/revanced-patches/commit/259c8b4e58df51d92d7e19417e13afa3848afc73))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 22d2fda0b..2f3aa38d1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.2](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.1...v4.8.0-dev.2) (2024-04-21)
+
+
+### Bug Fixes
+
+* Case patch option title correctly ([259c8b4](https://github.com/ReVanced/revanced-patches/commit/259c8b4e58df51d92d7e19417e13afa3848afc73))
+
# [4.8.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v4.7.0...v4.8.0-dev.1) (2024-04-21)
diff --git a/gradle.properties b/gradle.properties
index d1bdcf8b6..537bea452 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.8.0-dev.1
+version = 4.8.0-dev.2
From b7c108ee201c84df31b079f3fecb6cc2f5eaf9f1 Mon Sep 17 00:00:00 2001
From: oSumAtrIX
Date: Mon, 22 Apr 2024 19:04:06 +0200
Subject: [PATCH 08/53] fix: Publicize abstract property
---
api/revanced-patches.api | 2 ++
.../kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/api/revanced-patches.api b/api/revanced-patches.api
index 6ee21cc71..692c30386 100644
--- a/api/revanced-patches.api
+++ b/api/revanced-patches.api
@@ -30,6 +30,7 @@ public final class app/revanced/patches/all/misc/debugging/EnableAndroidDebuggin
public final class app/revanced/patches/all/misc/hex/HexPatch : app/revanced/patches/shared/misc/hex/BaseHexPatch {
public fun ()V
+ public fun getReplacements ()Ljava/util/List;
}
public final class app/revanced/patches/all/misc/network/OverrideCertificatePinningPatch : app/revanced/patcher/patch/ResourcePatch {
@@ -677,6 +678,7 @@ public abstract class app/revanced/patches/shared/misc/hex/BaseHexPatch : app/re
public fun ()V
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
public fun execute (Lapp/revanced/patcher/data/ResourceContext;)V
+ public abstract fun getReplacements ()Ljava/util/List;
}
public final class app/revanced/patches/shared/misc/hex/BaseHexPatch$Replacement {
diff --git a/src/main/kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt b/src/main/kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt
index 781444d68..9758483c9 100644
--- a/src/main/kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/shared/misc/hex/BaseHexPatch.kt
@@ -6,7 +6,7 @@ import app.revanced.patcher.patch.RawResourcePatch
import kotlin.math.max
abstract class BaseHexPatch : RawResourcePatch() {
- internal abstract val replacements: List
+ abstract val replacements: List
override fun execute(context: ResourceContext) {
replacements.groupBy { it.targetFilePath }.forEach { (targetFilePath, replacements) ->
From 1863625dafe43f125aba99c24069345db6e84b95 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Mon, 22 Apr 2024 17:06:43 +0000
Subject: [PATCH 09/53] chore(release): 4.8.0-dev.3 [skip ci]
# [4.8.0-dev.3](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.2...v4.8.0-dev.3) (2024-04-22)
### Bug Fixes
* Publicize abstract property ([b7c108e](https://github.com/ReVanced/revanced-patches/commit/b7c108ee201c84df31b079f3fecb6cc2f5eaf9f1))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2f3aa38d1..657f3312e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.3](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.2...v4.8.0-dev.3) (2024-04-22)
+
+
+### Bug Fixes
+
+* Publicize abstract property ([b7c108e](https://github.com/ReVanced/revanced-patches/commit/b7c108ee201c84df31b079f3fecb6cc2f5eaf9f1))
+
# [4.8.0-dev.2](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.1...v4.8.0-dev.2) (2024-04-21)
diff --git a/gradle.properties b/gradle.properties
index 537bea452..9428f576e 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.8.0-dev.2
+version = 4.8.0-dev.3
From 7efe5aefb252a2ed908907ff218b879e2ad1a331 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Tue, 23 Apr 2024 21:03:15 +0400
Subject: [PATCH 10/53] feat(YouTube - Comments): Add option to hide timestamp
and emoji buttons (#3076)
---
.../patches/youtube/layout/hide/comments/CommentsPatch.kt | 3 ++-
src/main/resources/addresources/values/strings.xml | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
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 9a6ee70e6..789701ba8 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
@@ -58,7 +58,8 @@ object CommentsPatch : ResourcePatch() {
"revanced_comments_screen",
preferences = setOf(
SwitchPreference("revanced_hide_preview_comment"),
- SwitchPreference("revanced_hide_comments_section")
+ SwitchPreference("revanced_hide_comments_section"),
+ SwitchPreference("revanced_hide_comment_timestamp_and_emoji_buttons")
),
sorting = PreferenceScreen.Sorting.UNSORTED
)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 18df77e94..73ce3556c 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -503,6 +503,9 @@
Hide comments section
Comment section is hidden
Comment section is shown
+ Hide timestamp and emoji buttons
+ Comment timestamp and emoji buttons are hidden
+ Comment timestamp and emoji buttons are shown
Hide crowdfunding box
From 59369f20ec59bfcdd1b63885c1225d46b60cc9be Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Tue, 23 Apr 2024 17:05:45 +0000
Subject: [PATCH 11/53] chore(release): 4.8.0-dev.4 [skip ci]
# [4.8.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.3...v4.8.0-dev.4) (2024-04-23)
### Features
* **YouTube - Comments:** Add option to hide timestamp and emoji buttons ([#3076](https://github.com/ReVanced/revanced-patches/issues/3076)) ([7efe5ae](https://github.com/ReVanced/revanced-patches/commit/7efe5aefb252a2ed908907ff218b879e2ad1a331))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 657f3312e..8a00e21de 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.3...v4.8.0-dev.4) (2024-04-23)
+
+
+### Features
+
+* **YouTube - Comments:** Add option to hide timestamp and emoji buttons ([#3076](https://github.com/ReVanced/revanced-patches/issues/3076)) ([7efe5ae](https://github.com/ReVanced/revanced-patches/commit/7efe5aefb252a2ed908907ff218b879e2ad1a331))
+
# [4.8.0-dev.3](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.2...v4.8.0-dev.3) (2024-04-22)
diff --git a/gradle.properties b/gradle.properties
index 9428f576e..539f2724d 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.8.0-dev.3
+version = 4.8.0-dev.4
From 4d6e34b0540a3334bd77b2b48a1a5e10329171c8 Mon Sep 17 00:00:00 2001
From: oSumAtrIX
Date: Tue, 23 Apr 2024 19:21:14 +0200
Subject: [PATCH 12/53] fix(YouTube - Hide Shorts components): Rename option
title to make it consistent
---
src/main/resources/addresources/values/strings.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 73ce3556c..d2ea5028e 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -619,7 +619,7 @@
Hide channel bar
Channel bar is hidden
Channel bar is shown
- Hide Shorts video title
+ Hide video title
Title is hidden
Title is shown
Hide sound metadata label
From e72a8cff492cff9fee9541c45d6108c32f9e4ef9 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Tue, 23 Apr 2024 17:24:33 +0000
Subject: [PATCH 13/53] chore(release): 4.8.0-dev.5 [skip ci]
# [4.8.0-dev.5](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.4...v4.8.0-dev.5) (2024-04-23)
### Bug Fixes
* **YouTube - Hide Shorts components:** Rename option title to make it consistent ([4d6e34b](https://github.com/ReVanced/revanced-patches/commit/4d6e34b0540a3334bd77b2b48a1a5e10329171c8))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8a00e21de..4e40e865e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.5](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.4...v4.8.0-dev.5) (2024-04-23)
+
+
+### Bug Fixes
+
+* **YouTube - Hide Shorts components:** Rename option title to make it consistent ([4d6e34b](https://github.com/ReVanced/revanced-patches/commit/4d6e34b0540a3334bd77b2b48a1a5e10329171c8))
+
# [4.8.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.3...v4.8.0-dev.4) (2024-04-23)
diff --git a/gradle.properties b/gradle.properties
index 539f2724d..455300fca 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.8.0-dev.4
+version = 4.8.0-dev.5
From 03d2cfafbf977340456598a848858ac9452c853f Mon Sep 17 00:00:00 2001
From: oSumAtrIX
Date: Tue, 23 Apr 2024 19:30:18 +0200
Subject: [PATCH 14/53] feat(YouTube - Hide ads): Add option to hide the 'Visit
store' button on channel pages (#3077)
---
.../patches/youtube/ad/general/HideAdsResourcePatch.kt | 1 +
src/main/resources/addresources/values/strings.xml | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsResourcePatch.kt
index 8cc3ed113..1ef5e7723 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsResourcePatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsResourcePatch.kt
@@ -34,6 +34,7 @@ object HideAdsResourcePatch : ResourcePatch() {
SwitchPreference("revanced_hide_self_sponsor_ads"),
SwitchPreference("revanced_hide_products_banner"),
SwitchPreference("revanced_hide_shopping_links"),
+ SwitchPreference("revanced_hide_visit_store_button"),
SwitchPreference("revanced_hide_web_search_results"),
SwitchPreference("revanced_hide_merchandise_banners"),
)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index d2ea5028e..bf960966d 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -266,6 +266,10 @@
Hide shopping links in video description
Shopping links are hidden
Shopping links are shown
+
+ Hide the 'Visit store' button on channel pages
+ Button is hidden
+ Button is shown
Hide web search results
Web search results are hidden
Web search results are shown
From e2062ce5d45a7b62b277a5cd4f5f226ac69791a4 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Tue, 23 Apr 2024 17:32:55 +0000
Subject: [PATCH 15/53] chore(release): 4.8.0-dev.6 [skip ci]
# [4.8.0-dev.6](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.5...v4.8.0-dev.6) (2024-04-23)
### Features
* **YouTube - Hide ads:** Add option to hide the 'Visit store' button on channel pages ([#3077](https://github.com/ReVanced/revanced-patches/issues/3077)) ([03d2cfa](https://github.com/ReVanced/revanced-patches/commit/03d2cfafbf977340456598a848858ac9452c853f))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4e40e865e..482af94c0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.6](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.5...v4.8.0-dev.6) (2024-04-23)
+
+
+### Features
+
+* **YouTube - Hide ads:** Add option to hide the 'Visit store' button on channel pages ([#3077](https://github.com/ReVanced/revanced-patches/issues/3077)) ([03d2cfa](https://github.com/ReVanced/revanced-patches/commit/03d2cfafbf977340456598a848858ac9452c853f))
+
# [4.8.0-dev.5](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.4...v4.8.0-dev.5) (2024-04-23)
diff --git a/gradle.properties b/gradle.properties
index 455300fca..b0fe47af6 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.8.0-dev.5
+version = 4.8.0-dev.6
From 3c46709eadedc1a79ce7a6b0c01650a2c3654280 Mon Sep 17 00:00:00 2001
From: Angelos Bouklis
Date: Mon, 22 Apr 2024 18:53:42 +0300
Subject: [PATCH 16/53] docs: Fix link to ReVanced Patcher docs (#3068)
---
CONTRIBUTING.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 70d6ebad5..ef79cf77f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -64,7 +64,7 @@ This document describes how to contribute to ReVanced Patches.
## 📖 Resources to help you get started
-* The [documentation](https://github.com/ReVanced/revanced-patcher/tree/docs/docs) contains the fundamentals
+* The [documentation](https://github.com/ReVanced/revanced-patcher/tree/main/docs) contains the fundamentals
of ReVanced Patcher and how to use ReVanced Patcher to create patches
* [Our backlog](https://github.com/orgs/ReVanced/projects/12) is where we keep track of what we're working on
* [Issues](https://github.com/ReVanced/revanced-patches/issues) are where we keep track of bugs and feature requests
From e1bbcb338dd7fce895b606440bd6f040d5486a64 Mon Sep 17 00:00:00 2001
From: oSumAtrIX
Date: Tue, 23 Apr 2024 19:56:58 +0200
Subject: [PATCH 17/53] fix: URL decode path to JAR containing spaces to get
JAR manifest (#3079)
---
.../patches/shared/misc/integrations/BaseIntegrationsPatch.kt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/main/kotlin/app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch.kt b/src/main/kotlin/app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch.kt
index 7c461f6ee..226b46e4d 100644
--- a/src/main/kotlin/app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch.kt
@@ -12,6 +12,8 @@ import app.revanced.util.resultOrThrow
import com.android.tools.smali.dexlib2.Opcode
import com.android.tools.smali.dexlib2.iface.ClassDef
import com.android.tools.smali.dexlib2.iface.Method
+import java.net.URLDecoder
+import java.nio.charset.StandardCharsets
import java.util.jar.JarFile
abstract class BaseIntegrationsPatch(
@@ -74,7 +76,7 @@ abstract class BaseIntegrationsPatch(
if (urlString.startsWith("jar:file:")) {
val end = urlString.indexOf('!')
- return urlString.substring("jar:file:".length, end)
+ return URLDecoder.decode(urlString.substring("jar:file:".length, end), StandardCharsets.UTF_8)
}
}
throw IllegalStateException("Not running from inside a JAR file.")
From 7c6ecd4b7e18225b1e0a5b3dc097ed8d74409953 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Tue, 23 Apr 2024 17:59:24 +0000
Subject: [PATCH 18/53] chore(release): 4.8.0-dev.7 [skip ci]
# [4.8.0-dev.7](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.6...v4.8.0-dev.7) (2024-04-23)
### Bug Fixes
* URL decode path to JAR containing spaces to get JAR manifest ([#3079](https://github.com/ReVanced/revanced-patches/issues/3079)) ([e1bbcb3](https://github.com/ReVanced/revanced-patches/commit/e1bbcb338dd7fce895b606440bd6f040d5486a64))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 482af94c0..71e5b61f0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.7](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.6...v4.8.0-dev.7) (2024-04-23)
+
+
+### Bug Fixes
+
+* URL decode path to JAR containing spaces to get JAR manifest ([#3079](https://github.com/ReVanced/revanced-patches/issues/3079)) ([e1bbcb3](https://github.com/ReVanced/revanced-patches/commit/e1bbcb338dd7fce895b606440bd6f040d5486a64))
+
# [4.8.0-dev.6](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.5...v4.8.0-dev.6) (2024-04-23)
diff --git a/gradle.properties b/gradle.properties
index b0fe47af6..8f745e117 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.8.0-dev.6
+version = 4.8.0-dev.7
From ecc56d643a0c4e5f25b933431f097a03d4bf2e69 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Wed, 24 Apr 2024 01:10:43 +0400
Subject: [PATCH 19/53] fix(YouTube - Hide ads): Fix string typo
---
src/main/resources/addresources/values/strings.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index bf960966d..48832c587 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -267,7 +267,7 @@
Shopping links are hidden
Shopping links are shown
- Hide the 'Visit store' button on channel pages
+ Hide the \'Visit store\' button on channel pages
Button is hidden
Button is shown
Hide web search results
From 5242cbde99e11f4ad6024968afaabe9a270f14cf Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Tue, 23 Apr 2024 21:13:23 +0000
Subject: [PATCH 20/53] chore(release): 4.8.0-dev.8 [skip ci]
# [4.8.0-dev.8](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.7...v4.8.0-dev.8) (2024-04-23)
### Bug Fixes
* **YouTube - Hide ads:** Fix string typo ([ecc56d6](https://github.com/ReVanced/revanced-patches/commit/ecc56d643a0c4e5f25b933431f097a03d4bf2e69))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 71e5b61f0..acc2233ef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.8](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.7...v4.8.0-dev.8) (2024-04-23)
+
+
+### Bug Fixes
+
+* **YouTube - Hide ads:** Fix string typo ([ecc56d6](https://github.com/ReVanced/revanced-patches/commit/ecc56d643a0c4e5f25b933431f097a03d4bf2e69))
+
# [4.8.0-dev.7](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.6...v4.8.0-dev.7) (2024-04-23)
diff --git a/gradle.properties b/gradle.properties
index 8f745e117..bb906a49a 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.8.0-dev.7
+version = 4.8.0-dev.8
From 056e2d7dd5bbacb7dc6b109b3e2d44d55e7eb7d3 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Mon, 29 Apr 2024 22:26:02 +0400
Subject: [PATCH 21/53] fix: Correctly handle patches jar path if it contains
exclamation marks
---
.../patches/shared/misc/integrations/BaseIntegrationsPatch.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/kotlin/app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch.kt b/src/main/kotlin/app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch.kt
index 226b46e4d..ff208efd5 100644
--- a/src/main/kotlin/app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch.kt
@@ -75,7 +75,7 @@ abstract class BaseIntegrationsPatch(
val urlString = classUrl.toString()
if (urlString.startsWith("jar:file:")) {
- val end = urlString.indexOf('!')
+ val end = urlString.lastIndexOf('!')
return URLDecoder.decode(urlString.substring("jar:file:".length, end), StandardCharsets.UTF_8)
}
}
From f462ca3243bfe65755e1ef89582ef68d7357a5c6 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Mon, 29 Apr 2024 18:28:33 +0000
Subject: [PATCH 22/53] chore(release): 4.8.0-dev.9 [skip ci]
# [4.8.0-dev.9](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.8...v4.8.0-dev.9) (2024-04-29)
### Bug Fixes
* Correctly handle patches jar path if it contains exclamation marks ([056e2d7](https://github.com/ReVanced/revanced-patches/commit/056e2d7dd5bbacb7dc6b109b3e2d44d55e7eb7d3))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index acc2233ef..2d2fc2437 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.9](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.8...v4.8.0-dev.9) (2024-04-29)
+
+
+### Bug Fixes
+
+* Correctly handle patches jar path if it contains exclamation marks ([056e2d7](https://github.com/ReVanced/revanced-patches/commit/056e2d7dd5bbacb7dc6b109b3e2d44d55e7eb7d3))
+
# [4.8.0-dev.8](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.7...v4.8.0-dev.8) (2024-04-23)
diff --git a/gradle.properties b/gradle.properties
index bb906a49a..cfedb1874 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.8.0-dev.8
+version = 4.8.0-dev.9
From 54baf08f777b7c975fa0b6508f0a4de19ac491f4 Mon Sep 17 00:00:00 2001
From: Temm
Date: Thu, 2 May 2024 15:02:54 +0200
Subject: [PATCH 23/53] feat(Tumblr): Add `Disable Ad-Free Banner` patch
(#3091)
Co-authored-by: oSumAtrIX
---
api/revanced-patches.api | 6 ++++++
.../adfree/DisableAdFreeBannerPatch.kt | 21 +++++++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 src/main/kotlin/app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch.kt
diff --git a/api/revanced-patches.api b/api/revanced-patches.api
index 692c30386..356a6d2d7 100644
--- a/api/revanced-patches.api
+++ b/api/revanced-patches.api
@@ -1062,6 +1062,12 @@ public final class app/revanced/patches/tumblr/ads/DisableDashboardAds : app/rev
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
}
+public final class app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch : app/revanced/patcher/patch/BytecodePatch {
+ public static final field INSTANCE Lapp/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch;
+ public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
+ public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
+}
+
public final class app/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch : app/revanced/patcher/patch/BytecodePatch {
public static final field INSTANCE Lapp/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch;
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
diff --git a/src/main/kotlin/app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch.kt b/src/main/kotlin/app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch.kt
new file mode 100644
index 000000000..50791fa5d
--- /dev/null
+++ b/src/main/kotlin/app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch.kt
@@ -0,0 +1,21 @@
+package app.revanced.patches.tumblr.annoyances.adfree
+
+import app.revanced.patcher.data.BytecodeContext
+import app.revanced.patcher.patch.BytecodePatch
+import app.revanced.patcher.patch.annotation.CompatiblePackage
+import app.revanced.patcher.patch.annotation.Patch
+import app.revanced.patches.tumblr.featureflags.OverrideFeatureFlagsPatch
+
+@Patch(
+ name = "Disable Ad-Free Banner",
+ description = "Disables the banner with a frog, prompting you to buy Tumblr Ad-Free.",
+ dependencies = [OverrideFeatureFlagsPatch::class],
+ compatiblePackages = [CompatiblePackage("com.tumblr")],
+)
+@Suppress("unused")
+object DisableAdFreeBannerPatch : BytecodePatch(emptySet()) {
+ override fun execute(context: BytecodeContext) {
+ // Disable the "AD_FREE_CTA_BANNER" ("Whether or not to show ad free prompt") feature flag.
+ OverrideFeatureFlagsPatch.addOverride("adFreeCtaBanner", "false")
+ }
+}
From a5172509ec9b1517a2b6354b1ddb902b06047dbe Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Thu, 2 May 2024 13:05:12 +0000
Subject: [PATCH 24/53] chore(release): 4.8.0-dev.10 [skip ci]
# [4.8.0-dev.10](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.9...v4.8.0-dev.10) (2024-05-02)
### Features
* **Tumblr:** Add `Disable Ad-Free Banner` patch ([#3091](https://github.com/ReVanced/revanced-patches/issues/3091)) ([54baf08](https://github.com/ReVanced/revanced-patches/commit/54baf08f777b7c975fa0b6508f0a4de19ac491f4))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2d2fc2437..aa4b18f0c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.10](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.9...v4.8.0-dev.10) (2024-05-02)
+
+
+### Features
+
+* **Tumblr:** Add `Disable Ad-Free Banner` patch ([#3091](https://github.com/ReVanced/revanced-patches/issues/3091)) ([54baf08](https://github.com/ReVanced/revanced-patches/commit/54baf08f777b7c975fa0b6508f0a4de19ac491f4))
+
# [4.8.0-dev.9](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.8...v4.8.0-dev.9) (2024-04-29)
diff --git a/gradle.properties b/gradle.properties
index cfedb1874..fe767766c 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.8.0-dev.9
+version = 4.8.0-dev.10
From b156cb1d8996c4314d59e3441c6b85d8f704cdff Mon Sep 17 00:00:00 2001
From: oSumAtrIX
Date: Mon, 6 May 2024 20:41:37 +0200
Subject: [PATCH 25/53] fix(Reddit is Fun - Spoof client): Fix login by
updating the authorization subdomain from "old" to "ssl"
---
api/revanced-patches.api | 1 +
.../redditisfun/api/SpoofClientPatch.kt | 28 +++++++++++++++----
2 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/api/revanced-patches.api b/api/revanced-patches.api
index 356a6d2d7..d6540eac8 100644
--- a/api/revanced-patches.api
+++ b/api/revanced-patches.api
@@ -576,6 +576,7 @@ public final class app/revanced/patches/reddit/customclients/joeyforreddit/detec
public final class app/revanced/patches/reddit/customclients/redditisfun/api/SpoofClientPatch : app/revanced/patches/reddit/customclients/BaseSpoofClientPatch {
public static final field INSTANCE Lapp/revanced/patches/reddit/customclients/redditisfun/api/SpoofClientPatch;
public fun patchClientId (Ljava/util/Set;Lapp/revanced/patcher/data/BytecodeContext;)V
+ public fun patchMiscellaneous (Ljava/util/Set;Lapp/revanced/patcher/data/BytecodeContext;)V
public fun patchUserAgent (Ljava/util/Set;Lapp/revanced/patcher/data/BytecodeContext;)V
}
diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/redditisfun/api/SpoofClientPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/redditisfun/api/SpoofClientPatch.kt
index ab110821e..5663a0223 100644
--- a/src/main/kotlin/app/revanced/patches/reddit/customclients/redditisfun/api/SpoofClientPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/redditisfun/api/SpoofClientPatch.kt
@@ -10,8 +10,10 @@ import app.revanced.patches.reddit.customclients.BaseSpoofClientPatch
import app.revanced.patches.reddit.customclients.redditisfun.api.fingerprints.BasicAuthorizationFingerprint
import app.revanced.patches.reddit.customclients.redditisfun.api.fingerprints.BuildAuthorizationStringFingerprint
import app.revanced.patches.reddit.customclients.redditisfun.api.fingerprints.GetUserAgentFingerprint
+import app.revanced.util.getReference
+import app.revanced.util.indexOfFirstInstruction
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
-
+import com.android.tools.smali.dexlib2.iface.reference.StringReference
@Suppress("unused")
object SpoofClientPatch : BaseSpoofClientPatch(
@@ -20,8 +22,8 @@ object SpoofClientPatch : BaseSpoofClientPatch(
userAgentFingerprints = setOf(GetUserAgentFingerprint),
compatiblePackages = setOf(
CompatiblePackage("com.andrewshu.android.reddit"),
- CompatiblePackage("com.andrewshu.android.redditdonation")
- )
+ CompatiblePackage("com.andrewshu.android.redditdonation"),
+ ),
) {
override fun Set.patchClientId(context: BytecodeContext) {
/**
@@ -59,7 +61,23 @@ object SpoofClientPatch : BaseSpoofClientPatch(
"""
const-string v0, "$userAgent"
return-object v0
- """
+ """,
)
}
-}
\ No newline at end of file
+
+ override fun Set.patchMiscellaneous(context: BytecodeContext) {
+ // Reddit messed up and does not append a redirect uri to the authorization url to old.reddit.com/login.
+ // Replace old.reddit.com with ssl.reddit.com to fix this.
+ BuildAuthorizationStringFingerprint.result!!.mutableMethod.apply {
+ val index = indexOfFirstInstruction {
+ getReference()?.contains("old.reddit.com") == true
+ }
+
+ val targetRegister = getInstruction(index).registerA
+ replaceInstruction(
+ index,
+ "const-string v$targetRegister, \"https://ssl.reddit.com/api/v1/authorize.compact\"",
+ )
+ }
+ }
+}
From d293fd0220a06c5aa1eb6b869664cdeb30ca0b92 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Mon, 6 May 2024 19:39:45 +0000
Subject: [PATCH 26/53] chore(release): 4.8.0-dev.11 [skip ci]
# [4.8.0-dev.11](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.10...v4.8.0-dev.11) (2024-05-06)
### Bug Fixes
* **Reddit is Fun - Spoof client:** Fix login by updating the authorization subdomain from "old" to "ssl" ([b156cb1](https://github.com/ReVanced/revanced-patches/commit/b156cb1d8996c4314d59e3441c6b85d8f704cdff))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index aa4b18f0c..5801fbdd6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.11](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.10...v4.8.0-dev.11) (2024-05-06)
+
+
+### Bug Fixes
+
+* **Reddit is Fun - Spoof client:** Fix login by updating the authorization subdomain from "old" to "ssl" ([b156cb1](https://github.com/ReVanced/revanced-patches/commit/b156cb1d8996c4314d59e3441c6b85d8f704cdff))
+
# [4.8.0-dev.10](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.9...v4.8.0-dev.10) (2024-05-02)
diff --git a/gradle.properties b/gradle.properties
index fe767766c..bbd721877 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.8.0-dev.10
+version = 4.8.0-dev.11
From d627d44ad07fa32bb2f247ce24a3591ec5e1be0e Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Tue, 7 May 2024 00:48:18 +0400
Subject: [PATCH 27/53] fix(YouTube - Player flyout menu): Remove obsolete
`Hide report menu`
---
.../hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt | 1 -
src/main/resources/addresources/values/strings.xml | 5 -----
2 files changed, 6 deletions(-)
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 9d1d48a90..689df3c7e 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
@@ -63,7 +63,6 @@ object HidePlayerFlyoutMenuPatch : ResourcePatch() {
SwitchPreference("revanced_hide_player_flyout_additional_settings"),
SwitchPreference("revanced_hide_player_flyout_loop_video"),
SwitchPreference("revanced_hide_player_flyout_ambient_mode"),
- 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"),
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 48832c587..c0c87bb7c 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -457,11 +457,6 @@
Hide Ambient mode
Ambient mode menu is hidden
Ambient mode menu is shown
-
- Hide Report
- Report menu is hidden
- Report menu is shown
Hide Help & feedback
Help & feedback menu is hidden
From 5d99669917bc3edca43101e7b5973c67e8f724a5 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Mon, 6 May 2024 20:50:24 +0000
Subject: [PATCH 28/53] chore(release): 4.8.0-dev.12 [skip ci]
# [4.8.0-dev.12](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.11...v4.8.0-dev.12) (2024-05-06)
### Bug Fixes
* **YouTube - Player flyout menu:** Remove obsolete `Hide report menu` ([d627d44](https://github.com/ReVanced/revanced-patches/commit/d627d44ad07fa32bb2f247ce24a3591ec5e1be0e))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5801fbdd6..31a6e97ce 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.12](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.11...v4.8.0-dev.12) (2024-05-06)
+
+
+### Bug Fixes
+
+* **YouTube - Player flyout menu:** Remove obsolete `Hide report menu` ([d627d44](https://github.com/ReVanced/revanced-patches/commit/d627d44ad07fa32bb2f247ce24a3591ec5e1be0e))
+
# [4.8.0-dev.11](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.10...v4.8.0-dev.11) (2024-05-06)
diff --git a/gradle.properties b/gradle.properties
index bbd721877..1891bc1b4 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.8.0-dev.11
+version = 4.8.0-dev.12
From cc8b4c913ed25d07fd4000cfd6318bb06a9d27c0 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Tue, 7 May 2024 01:20:47 +0400
Subject: [PATCH 29/53] fix(YouTube - Navigation buttons): Adjust summary text
of switch notification button (#3130)
Co-authored-by: oSumAtrIX
---
src/main/resources/addresources/values/strings.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index c0c87bb7c..c3a0e8d9c 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -435,7 +435,7 @@
Subscriptions button is shown
Switch Create with Notifications
- Create button is switched with Notifications button
+ Create button is switched with Notifications button\n\nNote: Enabling this also forcibly hides video ads
Create button is not switched with Notifications button
+
+ Spoof client
+ Spoof the client to prevent playback issues
+ Spoof client
+ Client is spoofed
+ Client is not spoofed\n\nVideo playback may not work
+ Turning off this setting may cause video playback issues.
+
+ Spoof client to iOS
+ Spoof the client to iOS instead of an Android Testsuite
+ Client is spoofed to an iOS client\n\nSide effects include:\n• 60 fps video may not be available\n• No HDR video\n• Some videos may not load\n• Higher video qualities may be missing
+ Client is spoofed to an Android Testsuite client (iOS client is used for live streams)\n\nSide effects include:\n• Subtitles are missing\n• Player gestures may not work\n• Low quality Shorts seekbar thumbnails
+ Spoof client thumbnails not available (API timed out)
+ Spoof client thumbnails temporarily not available: %s
+
Spoof app signature
From 0ba8429ca5dbd9be5f67a032c7e609cb2b6ccddf Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Tue, 21 May 2024 00:43:47 +0000
Subject: [PATCH 53/53] chore(release): 4.8.0-dev.24 [skip ci]
# [4.8.0-dev.24](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.23...v4.8.0-dev.24) (2024-05-21)
### Bug Fixes
* **YouTube - Client spoof:** Spoof client to fix playback ([#3199](https://github.com/ReVanced/revanced-patches/issues/3199)) ([bec1eef](https://github.com/ReVanced/revanced-patches/commit/bec1eef10f2eb4e15696acb271357f1621543de1))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8e45e60ae..9a5fa023d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [4.8.0-dev.24](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.23...v4.8.0-dev.24) (2024-05-21)
+
+
+### Bug Fixes
+
+* **YouTube - Client spoof:** Spoof client to fix playback ([#3199](https://github.com/ReVanced/revanced-patches/issues/3199)) ([bec1eef](https://github.com/ReVanced/revanced-patches/commit/bec1eef10f2eb4e15696acb271357f1621543de1))
+
# [4.8.0-dev.23](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.22...v4.8.0-dev.23) (2024-05-18)
diff --git a/gradle.properties b/gradle.properties
index 1dd32bac5..eb93da797 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.8.0-dev.23
+version = 4.8.0-dev.24