From 4672118e88953bdd700565bea8a2270d75029a1d Mon Sep 17 00:00:00 2001 From: KobeW50 <84587632+KobeW50@users.noreply.github.com> Date: Sat, 2 Dec 2023 17:54:49 -0500 Subject: [PATCH] feat(YouTube): Clarify patch descriptions (#3350) Co-authored-by: oSumAtrIX --- .../youtube/interaction/seekbar/EnableSlideToSeekPatch.kt | 2 +- .../patches/youtube/layout/branding/CustomBrandingPatch.kt | 2 +- .../patches/youtube/layout/buttons/action/HideButtonsPatch.kt | 2 +- .../youtube/layout/buttons/captions/HideCaptionsButtonPatch.kt | 2 +- .../layout/buttons/player/hide/HidePlayerButtonsPatch.kt | 2 +- .../layout/hide/endscreencards/HideEndscreenCardsPatch.kt | 2 +- .../hide/rollingnumber/DisableRollingNumberAnimationPatch.kt | 2 +- .../youtube/layout/panels/popup/PlayerPopupPanelsPatch.kt | 2 +- .../layout/player/overlay/CustomPlayerOverlayOpacityPatch.kt | 2 +- .../youtube/layout/sponsorblock/SponsorBlockBytecodePatch.kt | 2 +- .../youtube/layout/spoofappversion/SpoofAppVersionPatch.kt | 2 +- .../youtube/misc/privacy/RemoveTrackingQueryParameterPatch.kt | 2 +- .../patches/youtube/video/quality/RememberVideoQualityPatch.kt | 2 +- .../revanced/patches/youtube/video/speed/PlaybackSpeedPatch.kt | 3 +-- .../youtube/video/speed/remember/RememberPlaybackSpeedPatch.kt | 1 - 15 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/EnableSlideToSeekPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/EnableSlideToSeekPatch.kt index 7972655732..b8e884a428 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/EnableSlideToSeekPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/EnableSlideToSeekPatch.kt @@ -17,7 +17,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Patch( name = "Enable slide to seek", - description = "Enable slide to seek instead of playing at 2x speed.", + description = "Enable slide to seek instead of playing at 2x speed when pressing and holding in the video player.", dependencies = [IntegrationsPatch::class, SettingsPatch::class], compatiblePackages = [ CompatiblePackage( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt index e71decb1d8..244eb7733d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt @@ -12,7 +12,7 @@ import java.nio.file.Files @Patch( name = "Custom branding", - description = "Changes the app icon and name to your choice (defaults to YouTube ReVanced and the ReVanced logo).", + description = "Changes the app name and icon to your choice (defaults to \"YouTube ReVanced\" and the ReVanced logo).", compatiblePackages = [ CompatiblePackage("com.google.android.youtube") ], 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 5ae9ac8f14..2ee75c96d7 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 @@ -13,7 +13,7 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch @Patch( name = "Hide video action buttons", - description = "Adds the options to hide action buttons under a video.", + description = "Adds options to hide action buttons under a video.", dependencies = [ ResourceMappingPatch::class, LithoFilterPatch::class diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/captions/HideCaptionsButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/captions/HideCaptionsButtonPatch.kt index 4891f128c5..55f09f2d84 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/captions/HideCaptionsButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/captions/HideCaptionsButtonPatch.kt @@ -14,7 +14,7 @@ import com.android.tools.smali.dexlib2.Opcode @Patch( name = "Hide captions button", - description = "Hides the captions button on video player.", + description = "Hides the captions button in the video player.", dependencies = [ IntegrationsPatch::class, SettingsPatch::class diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/HidePlayerButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/HidePlayerButtonsPatch.kt index 130ad4ea03..22066eff13 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/HidePlayerButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/HidePlayerButtonsPatch.kt @@ -18,7 +18,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction3rc @Patch( name = "Hide player buttons", - description = "Adds the option to hide video player previous and next buttons.", + description = "Hides previous and next buttons in the video player.", dependencies = [ IntegrationsPatch::class, SettingsPatch::class diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/HideEndscreenCardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/HideEndscreenCardsPatch.kt index b29f410b6d..254a88d169 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/HideEndscreenCardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/HideEndscreenCardsPatch.kt @@ -16,7 +16,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction21c @Patch( name = "Hide endscreen cards", - description = "Hides the suggested video cards at the end of a video in fullscreen.", + description = "Hides the suggested video cards at the end of videos.", dependencies = [ IntegrationsPatch::class, HideEndscreenCardsResourcePatch::class diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/rollingnumber/DisableRollingNumberAnimationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/rollingnumber/DisableRollingNumberAnimationPatch.kt index adca1b9f4d..43b0d45414 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/rollingnumber/DisableRollingNumberAnimationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/rollingnumber/DisableRollingNumberAnimationPatch.kt @@ -18,7 +18,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Patch( name = "Disable rolling number animations", - description = "Disables rolling number animations of video view count, upload time, and user likes", + description = "Disables rolling number animations of video view count, user likes, and upload time.", dependencies = [IntegrationsPatch::class, SettingsPatch::class], compatiblePackages = [ CompatiblePackage( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/PlayerPopupPanelsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/PlayerPopupPanelsPatch.kt index 2ab361ff29..f2d8d5ddc0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/PlayerPopupPanelsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/PlayerPopupPanelsPatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch @Patch( name = "Disable player popup panels", - description = "Disables panels from appearing automatically when going into fullscreen (playlist or live chat).", + description = "Disables panels (such as live chat) from opening automatically.", dependencies = [IntegrationsPatch::class, SettingsPatch::class], compatiblePackages = [ CompatiblePackage( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/overlay/CustomPlayerOverlayOpacityPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/overlay/CustomPlayerOverlayOpacityPatch.kt index 73e581e1f7..66ce9a7fb7 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/overlay/CustomPlayerOverlayOpacityPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/overlay/CustomPlayerOverlayOpacityPatch.kt @@ -13,7 +13,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Patch( name = "Custom player overlay opacity", - description = "Change the opacity of the player background, when player controls are visible.", + description = "Change the opacity of the player background when player controls are visible.", dependencies = [CustomPlayerOverlayOpacityResourcePatch::class], compatiblePackages = [ CompatiblePackage("com.google.android.youtube") diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/SponsorBlockBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/SponsorBlockBytecodePatch.kt index aa5dfeb90c..d865f31cd4 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/SponsorBlockBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/SponsorBlockBytecodePatch.kt @@ -34,7 +34,7 @@ import com.android.tools.smali.dexlib2.iface.reference.StringReference @Patch( name = "SponsorBlock", - description = "Integrates SponsorBlock which allows skipping video segments such as sponsored content.", + description = "Integrates SponsorBlock, which can skip undesired video segments such as sponsored content.", compatiblePackages = [ CompatiblePackage( "com.google.android.youtube", [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/SpoofAppVersionPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/SpoofAppVersionPatch.kt index e28b973622..f0892f8bc6 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/SpoofAppVersionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/SpoofAppVersionPatch.kt @@ -18,7 +18,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Patch( name = "Spoof app version", description = "Tricks YouTube into thinking you are running an older version of the app. " + - "One of the side effects also includes restoring the old UI.", + "This can be used to restore old UI elements and features.", dependencies = [IntegrationsPatch::class, SettingsPatch::class], compatiblePackages = [ CompatiblePackage( diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/privacy/RemoveTrackingQueryParameterPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/privacy/RemoveTrackingQueryParameterPatch.kt index fca83689ba..1a10eb1878 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/privacy/RemoveTrackingQueryParameterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/privacy/RemoveTrackingQueryParameterPatch.kt @@ -22,7 +22,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction @Patch( name = "Remove tracking query parameter", - description = "Remove the tracking query parameter from links.", + description = "Remove the tracking query parameter from links you share.", dependencies = [IntegrationsPatch::class, SettingsPatch::class], compatiblePackages = [ CompatiblePackage( diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/quality/RememberVideoQualityPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/quality/RememberVideoQualityPatch.kt index adde865eff..1f1ca33759 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/quality/RememberVideoQualityPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/quality/RememberVideoQualityPatch.kt @@ -26,7 +26,7 @@ import com.android.tools.smali.dexlib2.iface.reference.FieldReference @Patch( name = "Remember video quality", - description = "Adds the ability to remember the video quality you chose in the video quality flyout.", + description = "Adds the ability to remember the last video quality selected.", dependencies = [IntegrationsPatch::class, VideoInformationPatch::class, SettingsPatch::class], compatiblePackages = [ CompatiblePackage( diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/speed/PlaybackSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/speed/PlaybackSpeedPatch.kt index f221d978bd..8cd2146aa5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/speed/PlaybackSpeedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/speed/PlaybackSpeedPatch.kt @@ -9,8 +9,7 @@ import app.revanced.patches.youtube.video.speed.remember.RememberPlaybackSpeedPa @Patch( name = "Playback speed", - description = "Adds custom playback speeds and ability " + - "to remember the playback speed you chose in the video playback speed flyout.", + description = "Adds custom playback speeds and ability to remember the last playback speed selected.", dependencies = [CustomPlaybackSpeedPatch::class, RememberPlaybackSpeedPatch::class], compatiblePackages = [ CompatiblePackage( diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/speed/remember/RememberPlaybackSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/speed/remember/RememberPlaybackSpeedPatch.kt index f1343b78dc..c37c7792c6 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/speed/remember/RememberPlaybackSpeedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/speed/remember/RememberPlaybackSpeedPatch.kt @@ -19,7 +19,6 @@ import app.revanced.patches.youtube.video.speed.remember.fingerprint.InitializeP import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction @Patch( - description = "Adds the ability to remember the playback speed you chose in the playback speed flyout.", dependencies = [IntegrationsPatch::class, SettingsPatch::class, VideoInformationPatch::class, CustomPlaybackSpeedPatch::class] ) object RememberPlaybackSpeedPatch : BytecodePatch(