From 49d01af2fb1c6862276bcd3952ac4e41438e8b65 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Fri, 13 Oct 2023 08:04:50 +0900 Subject: [PATCH] fix(YouTube/Hide channel watermark): watermark is not hidden --- .../youtube/player/infocards/HideInfoCardsPatch.kt | 2 +- .../player/watermark/HideChannelWatermarkPatch.kt | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/infocards/HideInfoCardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/infocards/HideInfoCardsPatch.kt index 7f5d676bd..55ecfef1b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/infocards/HideInfoCardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/infocards/HideInfoCardsPatch.kt @@ -60,7 +60,7 @@ object HideInfoCardsPatch : BytecodePatch( } } ?: throw InfoCardsIncognitoFingerprint.exception - LithoFilterPatch.addFilter("$PATCHES_PATH/ads/PlayerFilter;") + LithoFilterPatch.addFilter("$PATCHES_PATH/ads/InfoCardsFilter;") /** * Add settings diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/watermark/HideChannelWatermarkPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/watermark/HideChannelWatermarkPatch.kt index 4a6c06e57..414b608c0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/watermark/HideChannelWatermarkPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/watermark/HideChannelWatermarkPatch.kt @@ -11,14 +11,19 @@ import app.revanced.patcher.patch.annotation.CompatiblePackage import app.revanced.patcher.patch.annotation.Patch import app.revanced.patches.youtube.player.watermark.fingerprints.HideWatermarkFingerprint import app.revanced.patches.youtube.player.watermark.fingerprints.HideWatermarkParentFingerprint +import app.revanced.patches.youtube.utils.litho.LithoFilterPatch import app.revanced.patches.youtube.utils.settings.SettingsPatch +import app.revanced.util.integrations.Constants.PATCHES_PATH import app.revanced.util.integrations.Constants.PLAYER import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction @Patch( name = "Hide channel watermark", description = "Hides creator's watermarks on videos.", - dependencies = [SettingsPatch::class], + dependencies = [ + LithoFilterPatch::class, + SettingsPatch::class + ], compatiblePackages = [ CompatiblePackage( "com.google.android.youtube", @@ -66,6 +71,8 @@ object HideChannelWatermarkBytecodePatch : BytecodePatch( } ?: throw HideWatermarkFingerprint.exception } ?: throw HideWatermarkParentFingerprint.exception + LithoFilterPatch.addFilter("$PATCHES_PATH/ads/WaterMarkFilter;") + /** * Add settings */