mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-04-30 06:34:37 +02:00
feat(youtube): remove hide-live-chat-button
patch (location of the live chat button has been moved even in the old layout)
This commit is contained in:
parent
c945ce7653
commit
16a918a74c
@ -1,44 +0,0 @@
|
||||
package app.revanced.patches.youtube.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.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonHookPatch
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch
|
||||
@Name("hide-live-chat-button")
|
||||
@Description("Hides the live chat button in the video player (for old layout).")
|
||||
@DependsOn(
|
||||
[
|
||||
PlayerButtonHookPatch::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()
|
||||
}
|
||||
}
|
@ -16,10 +16,6 @@
|
||||
<string name="revanced_hide_comments_thanks_button_summary_on">@string/revanced_hide_button_thanks_summary_on</string>
|
||||
<string name="revanced_hide_comments_thanks_button_title">@string/revanced_hide_button_thanks_title</string>
|
||||
|
||||
<string name="revanced_hide_live_chat_button_summary_off">@string/revanced_hide_button_live_chat_summary_off</string>
|
||||
<string name="revanced_hide_live_chat_button_summary_on">@string/revanced_hide_button_live_chat_summary_on</string>
|
||||
<string name="revanced_hide_live_chat_button_title">@string/revanced_hide_button_live_chat_title</string>
|
||||
|
||||
<string name="revanced_hide_quick_actions_dislike_summary_off">@string/revanced_hide_button_dislike_summary_off</string>
|
||||
<string name="revanced_hide_quick_actions_dislike_summary_on">@string/revanced_hide_button_dislike_summary_on</string>
|
||||
<string name="revanced_hide_quick_actions_dislike_title">@string/revanced_hide_button_dislike_title</string>
|
||||
|
@ -347,7 +347,6 @@
|
||||
<Preference android:title="hide-collapse-button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
<Preference android:title="hide-endscreen-cards" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
<Preference android:title="hide-info-cards" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
<Preference android:title="hide-live-chat-button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
<Preference android:title="hide-music-button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
<Preference android:title="hide-player-button-background" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
<Preference android:title="hide-player-overlay-filter" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
@ -465,9 +464,6 @@
|
||||
<!-- SETTINGS: HIDE_INFO_CARDS
|
||||
<SwitchPreference android:title="@string/revanced_hide_info_cards_title" android:key="revanced_hide_info_cards" android:defaultValue="true" android:summaryOn="@string/revanced_hide_info_cards_summary_on" android:summaryOff="@string/revanced_hide_info_cards_summary_off" />SETTINGS: HIDE_INFO_CARDS -->
|
||||
|
||||
<!-- SETTINGS: HIDE_LIVE_CHATS_BUTTON
|
||||
<SwitchPreference android:title="@string/revanced_hide_live_chat_button_title" android:key="revanced_hide_live_chat_button" android:defaultValue="false" android:summaryOn="@string/revanced_hide_live_chat_button_summary_on" android:summaryOff="@string/revanced_hide_live_chat_button_summary_off" />SETTINGS: HIDE_LIVE_CHATS_BUTTON -->
|
||||
|
||||
<!-- SETTINGS: HIDE_PLAYER_BUTTON_BACKGROUND
|
||||
<SwitchPreference android:title="@string/revanced_hide_player_button_background_title" android:key="revanced_hide_player_button_background" android:defaultValue="false" android:summaryOn="@string/revanced_hide_player_button_background_summary_on" android:summaryOff="@string/revanced_hide_player_button_background_summary_off" />SETTINGS: HIDE_PLAYER_BUTTON_BACKGROUND -->
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user