From b4df34498f32043eec35e4398f380f8f3c1ff1ea Mon Sep 17 00:00:00 2001 From: inotia00 Date: Sun, 23 Apr 2023 00:07:50 +0900 Subject: [PATCH] fix: `hide-live-chat` patch still in patch list --- .../patch/HideLiveChatButtonPatch.kt | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/main/kotlin/app/revanced/patches/youtube/layout/player/livechatbutton/patch/HideLiveChatButtonPatch.kt diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/livechatbutton/patch/HideLiveChatButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/livechatbutton/patch/HideLiveChatButtonPatch.kt deleted file mode 100644 index 4d87726c8..000000000 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/livechatbutton/patch/HideLiveChatButtonPatch.kt +++ /dev/null @@ -1,44 +0,0 @@ -package app.revanced.patches.youtube.layout.player.livechatbutton.patch - -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version -import app.revanced.patcher.data.ResourceContext -import app.revanced.patcher.patch.PatchResult -import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patcher.patch.ResourcePatch -import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patcher.patch.annotations.Patch -import app.revanced.patches.shared.annotation.YouTubeCompatibility -import app.revanced.patches.youtube.misc.playerbutton.patch.PlayerButtonPatch -import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch - -@Patch -@Name("hide-live-chat-button") -@Description("Hides the live chat button in the video player.") -@DependsOn( - [ - PlayerButtonPatch::class, - SettingsPatch::class - ] -) -@YouTubeCompatibility -@Version("0.0.1") -class HideLiveChatButtonPatch : ResourcePatch { - override fun execute(context: ResourceContext): PatchResult { - - /* - * Add settings - */ - SettingsPatch.addPreference( - arrayOf( - "PREFERENCE: PLAYER_SETTINGS", - "SETTINGS: HIDE_LIVE_CHATS_BUTTON" - ) - ) - - SettingsPatch.updatePatchStatus("hide-live-chat-button") - - return PatchResultSuccess() - } -}