From da5896dde0a2b2b9ffe65e486402e4ef92ec1ce9 Mon Sep 17 00:00:00 2001 From: bogadana <30848157+bogadana@users.noreply.github.com> Date: Fri, 8 Jul 2022 06:30:59 +0200 Subject: [PATCH] fix: patch description consistency (#134) --- .../music/audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt | 2 +- .../layout/upgradebutton/patch/RemoveUpgradeButtonPatch.kt | 2 +- .../ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt | 2 +- .../revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt | 4 ++-- .../patches/youtube/interaction/fenster/patch/FensterPatch.kt | 4 ++-- .../interaction/seekbar/patch/EnableSeekbarTappingPatch.kt | 4 ++-- .../youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt | 2 +- .../youtube/layout/castbutton/patch/HideCastButtonPatch.kt | 2 +- .../layout/createbutton/patch/CreateButtonRemoverPatch.kt | 2 +- .../fullscreenpanels/patch/FullscreenPanelsRemoverPatch.kt | 2 +- .../layout/minimizedplayback/patch/MinimizedPlaybackPatch.kt | 2 +- .../layout/oldqualitylayout/patch/OldQualityLayoutPatch.kt | 4 ++-- .../patches/youtube/layout/reels/patch/HideReelsPatch.kt | 4 ++-- .../layout/shorts/button/patch/ShortsButtonRemoverPatch.kt | 2 +- .../youtube/layout/watermark/patch/HideWatermarkPatch.kt | 2 +- .../youtube/layout/widesearchbar/patch/WideSearchbarPatch.kt | 2 +- .../misc/enabledebugging/patch/EnableDebuggingPatch.kt | 4 ++-- .../youtube/misc/hdrbrightness/patch/HDRBrightnessPatch.kt | 2 +- .../youtube/misc/manifest/patch/FixLocaleConfigErrorPatch.kt | 2 +- .../mapping/patch/ResourceIdMappingProviderResourcePatch.kt | 2 +- .../youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt | 4 ++-- 21 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt b/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt index 167e9b30..7d82c6a4 100644 --- a/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt @@ -17,7 +17,7 @@ import app.revanced.patches.music.audio.exclusiveaudio.fingerprints.ExclusiveAud @Patch @Name("exclusive-audio-playback") -@Description("Add the option to play music without video.") +@Description("Adds the option to play music without video.") @ExclusiveAudioCompatibility @Version("0.0.1") class ExclusiveAudioPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/patch/RemoveUpgradeButtonPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/patch/RemoveUpgradeButtonPatch.kt index f6145bf9..c3ab850c 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/patch/RemoveUpgradeButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/patch/RemoveUpgradeButtonPatch.kt @@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c @Patch @Name("upgrade-button-remover") -@Description("Remove the upgrade tab from the pivot bar in YouTube music.") +@Description("Removes the upgrade tab from the pivot bar in YouTube music.") @RemoveUpgradeButtonCompatibility @Version("0.0.1") class RemoveUpgradeButtonPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt index ba407019..bb60474f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt @@ -42,7 +42,7 @@ import org.jf.dexlib2.immutable.reference.ImmutableMethodReference dependencies = [ResourceIdMappingProviderResourcePatch::class, IntegrationsPatch::class] ) @Name("general-ads") -@Description("Patch to remove general ads in bytecode.") +@Description("Removes general ads in bytecode.") @GeneralAdsCompatibility @Version("0.0.1") class GeneralBytecodeAdsPatch : BytecodePatch() { diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt index a4909b8a..6e4763e1 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt @@ -19,7 +19,7 @@ import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch @Patch @Dependencies(dependencies = [IntegrationsPatch::class]) @Name("video-ads") -@Description("Patch to remove ads in the YouTube video player.") +@Description("Removes ads in the YouTube video player.") @VideoAdsCompatibility @Version("0.0.1") class VideoAdsPatch : BytecodePatch( @@ -40,4 +40,4 @@ class VideoAdsPatch : BytecodePatch( return PatchResultSuccess() } -} \ No newline at end of file +} diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/fenster/patch/FensterPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/fenster/patch/FensterPatch.kt index 07cdf927..43ce96c0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/fenster/patch/FensterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/fenster/patch/FensterPatch.kt @@ -21,7 +21,7 @@ import org.jf.dexlib2.immutable.reference.ImmutableMethodReference @Patch @Name("fenster-swipe-controls") -@Description("volume and brightness swipe controls") +@Description("Adds volume and brightness swipe controls.") @FensterCompatibility @Version("0.0.1") @Dependencies(dependencies = [IntegrationsPatch::class]) @@ -118,4 +118,4 @@ class FensterPatch : BytecodePatch( throw PatchResultError("failed to inject onTouchEvent hook into NextGenWatchLayout: none found") } } -} \ No newline at end of file +} diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingPatch.kt index b59907a3..32ade725 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingPatch.kt @@ -24,7 +24,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c @Patch @Dependencies(dependencies = [IntegrationsPatch::class]) @Name("seekbar-tapping") -@Description("Enable tapping on the seekbar of the YouTube player.") +@Description("Enables tapping on the seekbar of the YouTube player.") @SeekbarTappingCompatibility @Version("0.0.1") class EnableSeekbarTappingPatch : BytecodePatch( @@ -92,4 +92,4 @@ class EnableSeekbarTappingPatch : BytecodePatch( ) return PatchResultSuccess() } -} \ No newline at end of file +} diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt index 3de5b590..b7b29cb6 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/autoplaybutton/patch/HideAutoplayButton.kt @@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.WideLiteralInstruction @Patch @Dependencies(dependencies = [ResourceIdMappingProviderResourcePatch::class]) @Name("hide-autoplay-button") -@Description("Disable the autoplay button.") +@Description("Disables the autoplay button.") @AutoplayButtonCompatibility @Version("0.0.1") class HideAutoplayButton : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/castbutton/patch/HideCastButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/castbutton/patch/HideCastButtonPatch.kt index b8ea3799..a41e09fb 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/castbutton/patch/HideCastButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/castbutton/patch/HideCastButtonPatch.kt @@ -16,7 +16,7 @@ import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch @Patch @Dependencies(dependencies = [IntegrationsPatch::class]) @Name("hide-cast-button") -@Description("Patch to hide the cast button.") +@Description("Hides the cast button.") @CastButtonCompatibility @Version("0.0.1") class HideCastButtonPatch : BytecodePatch() { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt index 4d93d06e..ca6121c6 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/createbutton/patch/CreateButtonRemoverPatch.kt @@ -24,7 +24,7 @@ import org.jf.dexlib2.iface.reference.MethodReference @Patch @Dependencies(dependencies = [IntegrationsPatch::class, ResourceIdMappingProviderResourcePatch::class]) @Name("disable-create-button") -@Description("Disable the create button.") +@Description("Disables the create button.") @CreateButtonCompatibility @Version("0.0.1") class CreateButtonRemoverPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreenpanels/patch/FullscreenPanelsRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreenpanels/patch/FullscreenPanelsRemoverPatch.kt index 7c35abb7..773b9de2 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreenpanels/patch/FullscreenPanelsRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/fullscreenpanels/patch/FullscreenPanelsRemoverPatch.kt @@ -19,7 +19,7 @@ import org.jf.dexlib2.iface.reference.MethodReference @Patch @Name("disable-fullscreen-panels") -@Description("Disable comments panel in fullscreen view.") +@Description("Disables comments panel in fullscreen view.") @FullscreenPanelsCompatibility @Version("0.0.1") class FullscreenPanelsRemovalPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/minimizedplayback/patch/MinimizedPlaybackPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/minimizedplayback/patch/MinimizedPlaybackPatch.kt index f61a4b41..d954cc4a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/minimizedplayback/patch/MinimizedPlaybackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/minimizedplayback/patch/MinimizedPlaybackPatch.kt @@ -21,7 +21,7 @@ import org.jf.dexlib2.iface.reference.MethodReference @Patch @Name("minimized-playback") -@Description("Enable minimized and background playback.") +@Description("Enables minimized and background playback.") @MinimizedPlaybackCompatibility @Version("0.0.1") class MinimizedPlaybackPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/oldqualitylayout/patch/OldQualityLayoutPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/oldqualitylayout/patch/OldQualityLayoutPatch.kt index 7366c1cf..d3647256 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/oldqualitylayout/patch/OldQualityLayoutPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/oldqualitylayout/patch/OldQualityLayoutPatch.kt @@ -22,7 +22,7 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction21t @Patch @Dependencies(dependencies = [IntegrationsPatch::class]) @Name("old-quality-layout") -@Description("Enable the original quality flyout menu.") +@Description("Enables the original quality flyout menu.") @OldQualityLayoutCompatibility @Version("0.0.1") class OldQualityLayoutPatch : BytecodePatch( @@ -51,4 +51,4 @@ class OldQualityLayoutPatch : BytecodePatch( return PatchResultSuccess() } -} \ No newline at end of file +} diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/reels/patch/HideReelsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/reels/patch/HideReelsPatch.kt index 7a0f56cb..8edbd602 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/reels/patch/HideReelsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/reels/patch/HideReelsPatch.kt @@ -13,7 +13,7 @@ import app.revanced.patches.youtube.layout.reels.fingerprints.HideReelsFingerpri //@Patch TODO: this is currently in the general-bytecode-ads patch due to the integrations having a preference for including reels or not. Move it here. @Name("hide-reels") -@Description("Hide reels on the page.") +@Description("Hides reels on the page.") @HideReelsCompatibility @Version("0.0.1") class HideReelsPatch : BytecodePatch( @@ -33,4 +33,4 @@ class HideReelsPatch : BytecodePatch( return PatchResultSuccess() } -} \ No newline at end of file +} diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/shorts/button/patch/ShortsButtonRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/shorts/button/patch/ShortsButtonRemoverPatch.kt index ddd2a145..a0452fd3 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/shorts/button/patch/ShortsButtonRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/shorts/button/patch/ShortsButtonRemoverPatch.kt @@ -19,7 +19,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch @Dependencies(dependencies = [IntegrationsPatch::class]) @Name("hide-shorts-button") -@Description("Hide the shorts button.") +@Description("Hides the shorts button.") @ShortsButtonCompatibility @Version("0.0.1") class ShortsButtonRemoverPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/watermark/patch/HideWatermarkPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/watermark/patch/HideWatermarkPatch.kt index d95eae39..1b81e9de 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/watermark/patch/HideWatermarkPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/watermark/patch/HideWatermarkPatch.kt @@ -21,7 +21,7 @@ import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch @Patch @Dependencies(dependencies = [IntegrationsPatch::class]) @Name("hide-watermark") -@Description("Hide the creator's watermark on video's.") +@Description("Hides the creator's watermark on videos.") @HideWatermarkCompatibility @Version("0.0.1") class HideWatermarkPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/widesearchbar/patch/WideSearchbarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/widesearchbar/patch/WideSearchbarPatch.kt index e6e803ff..ea448382 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/widesearchbar/patch/WideSearchbarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/widesearchbar/patch/WideSearchbarPatch.kt @@ -23,7 +23,7 @@ import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch @Patch(include = false) @Dependencies(dependencies = [IntegrationsPatch::class]) @Name("enable-wide-searchbar") -@Description("Replaces the search-icon with a wide searchbar. This will hide the youtube logo when this is active.") +@Description("Replaces the search icon with a wide search bar. This will hide the YouTube logo when active.") @WideSearchbarCompatibility @Version("0.0.1") class WideSearchbarPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/enabledebugging/patch/EnableDebuggingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/enabledebugging/patch/EnableDebuggingPatch.kt index cb5ef283..7eaf2a1d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/enabledebugging/patch/EnableDebuggingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/enabledebugging/patch/EnableDebuggingPatch.kt @@ -13,7 +13,7 @@ import org.w3c.dom.Element @Patch(false) @Name("enable-debugging") -@Description("Enable app debugging by patching the manifest file") +@Description("Enables app debugging by patching the manifest file.") @EnableDebuggingCompatibility @Version("0.0.1") class EnableDebuggingPatch : ResourcePatch() { @@ -32,4 +32,4 @@ class EnableDebuggingPatch : ResourcePatch() { return PatchResultSuccess() } -} \ No newline at end of file +} diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/hdrbrightness/patch/HDRBrightnessPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/hdrbrightness/patch/HDRBrightnessPatch.kt index b198c87b..2d17a54d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/hdrbrightness/patch/HDRBrightnessPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/hdrbrightness/patch/HDRBrightnessPatch.kt @@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch @Name("hdr-max-brightness") -@Description("Set brightness to max for HDR videos in fullscreen mode.") +@Description("Sets brightness to max for HDR videos in fullscreen mode.") @HDRBrightnessCompatibility @Version("0.0.1") class HDRBrightnessPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/manifest/patch/FixLocaleConfigErrorPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/manifest/patch/FixLocaleConfigErrorPatch.kt index ad4abb9c..fd9eaa30 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/manifest/patch/FixLocaleConfigErrorPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/manifest/patch/FixLocaleConfigErrorPatch.kt @@ -11,7 +11,7 @@ import app.revanced.patches.youtube.misc.manifest.annotations.FixLocaleConfigErr import org.w3c.dom.Element @Name("locale-config-fix") -@Description("Fix an error when building the resources by patching the manifest file.") +@Description("Fixes an error when building the resources by patching the manifest file.") @FixLocaleConfigErrorCompatibility @Version("0.0.1") class FixLocaleConfigErrorPatch : ResourcePatch() { diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/mapping/patch/ResourceIdMappingProviderResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/mapping/patch/ResourceIdMappingProviderResourcePatch.kt index 4b047991..47df074b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/mapping/patch/ResourceIdMappingProviderResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/mapping/patch/ResourceIdMappingProviderResourcePatch.kt @@ -11,7 +11,7 @@ import app.revanced.patcher.patch.impl.ResourcePatch import org.w3c.dom.Element @Name("resource-id-mapping-provider-resource-patch-dependency") -@Description("This patch acts as a provider/ dependency for resource mappings.") +@Description("Acts as a provider/dependency for resource mappings.") @Version("0.0.1") class ResourceIdMappingProviderResourcePatch : ResourcePatch() { companion object { diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt index a492fcda..b935ab6b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt @@ -37,7 +37,7 @@ import org.jf.dexlib2.immutable.reference.ImmutableStringReference ] ) @Name("microg-support") -@Description("Patch to allow YouTube ReVanced to run without root and under a different package name.") +@Description("Allows YouTube ReVanced to run without root and under a different package name.") @MicroGPatchCompatibility @Version("0.0.1") class MicroGBytecodePatch : BytecodePatch( @@ -168,4 +168,4 @@ class MicroGBytecodePatch : BytecodePatch( index, "const-string v$register, \"$REVANCED_PACKAGE_NAME\"" ) } -} \ No newline at end of file +}