From d7ba1eef780927abd7f89a965537771686b2efd9 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Tue, 11 Jul 2023 22:02:15 +0900 Subject: [PATCH] feat: change patches naming convention --- .../patch/CustomBrandingIconRevancifyBluePatch.kt | 2 +- .../patch/CustomBrandingIconRevancifyRedPatch.kt | 2 +- .../branding/name/patch/CustomBrandingNamePatch.kt | 2 +- .../microg/layout/hideicon/patch/HideIconPatch.kt | 2 +- .../patches/music/ads/music/patch/MusicAdsPatch.kt | 2 +- .../patches/music/layout/amoled/patch/AmoledPatch.kt | 2 +- .../autocaptions/patch/DisableAutoCaptionsPatch.kt | 2 +- .../patch/BlackNavigationBarPatch.kt | 2 +- .../icon/patch/CustomBrandingIconMMTPatch.kt | 2 +- .../patch/CustomBrandingIconRevancifyBluePatch.kt | 2 +- .../patch/CustomBrandingIconRevancifyRedPatch.kt | 2 +- .../branding/name/patch/CustomBrandingNamePatch.kt | 2 +- .../layout/buttonshelf/patch/HideButtonShelfPatch.kt | 2 +- .../carouselshelf/patch/HideCarouselShelfPatch.kt | 2 +- .../layout/castbutton/patch/HideCastButtonPatch.kt | 2 +- .../layout/categorybar/patch/CategoryBarPatch.kt | 2 +- .../colormatchplayer/patch/ColorMatchPlayerPatch.kt | 2 +- .../layout/compactdialog/patch/CompactDialogPatch.kt | 3 +-- .../layout/customfilter/patch/CustomFilterPatch.kt | 2 +- .../layout/dismissqueue/patch/DismissQueuePatch.kt | 2 +- .../floatingbutton/patch/NewPlaylistButtonPatch.kt | 4 ++-- .../layout/landscapemode/patch/LandScapeModePatch.kt | 2 +- .../minimizedplayer/patch/MinimizedPlayerPatch.kt | 2 +- .../navigationlabel/patch/NavigationLabelPatch.kt | 2 +- .../music/layout/newlayout/patch/NewLayoutPatch.kt | 2 +- .../patch/OldStyleMiniPlayerPatch.kt | 2 +- .../playlistcard/patch/HidePlaylistCardPatch.kt | 2 +- .../music/layout/sleeptimer/patch/SleepTimerPatch.kt | 2 +- .../music/layout/zenmode/patch/ZenModePatch.kt | 2 +- .../misc/backgroundplay/patch/BackgroundPlayPatch.kt | 2 +- .../misc/bitrate/patch/BitrateDefaultValuePatch.kt | 2 +- .../music/misc/codecs/patch/CodecsUnlockPatch.kt | 2 +- .../music/misc/debugging/patch/DebuggingPatch.kt | 2 +- .../misc/exclusiveaudio/patch/ExclusiveAudioPatch.kt | 2 +- .../patch/MinimizedPlaybackPatch.kt | 2 +- .../optimizeresource/patch/OptimizeResourcePatch.kt | 2 +- .../music/misc/premium/patch/HideGetPremiumPatch.kt | 4 ++-- .../music/misc/quality/patch/VideoQualityPatch.kt | 2 +- .../sharebuttonhook/patch/ShareButtonHookPatch.kt | 2 +- .../music/misc/shuffle/patch/EnforceShufflePatch.kt | 2 +- .../misc/tastebuilder/patch/TasteBuilderPatch.kt | 2 +- .../misc/translations/patch/TranslationsPatch.kt | 2 +- .../misc/upgradebutton/patch/UpgradeButtonPatch.kt | 2 +- .../misc/versionspoof/patch/SpoofAppVersionPatch.kt | 2 +- .../androidauto/patch/AndroidAutoCertificatePatch.kt | 2 +- .../fix/clientspoof/patch/ClientSpoofMusicPatch.kt | 8 -------- .../utils/integrations/patch/IntegrationsPatch.kt | 4 ---- .../music/utils/microg/bytecode/patch/MicroGPatch.kt | 2 +- .../microg/resource/patch/MicroGResourcePatch.kt | 8 -------- .../utils/resourceid/patch/SharedResourceIdPatch.kt | 6 ------ .../settings/bytecode/patch/SettingsBytecodePatch.kt | 6 ------ .../utils/settings/resource/patch/SettingsPatch.kt | 2 +- .../music/utils/videoid/patch/VideoIdPatch.kt | 8 -------- .../reddit/ad/banner/patch/HideBannerPatch.kt | 6 ------ .../reddit/ad/comments/patch/HideCommentAdsPatch.kt | 8 -------- .../patches/reddit/ad/general/patch/HideAdsPatch.kt | 10 +++++----- .../layout/navigation/patch/CreateButtonPatch.kt | 2 +- .../layout/navigation/patch/DiscoverButtonPatch.kt | 2 +- .../navigation/patch/NavigationButtonsPatch.kt | 6 ------ .../layout/premiumicon/patch/PremiumIconPatch.kt | 4 ++-- .../screenshotpopup/patch/ScreenshotPopupPatch.kt | 2 +- .../misc/openlink/patch/OpenLinksDirectlyPatch.kt | 2 +- .../misc/openlink/patch/OpenLinksExternallyPatch.kt | 2 +- .../misc/tracking/url/patch/SanitizeUrlQueryPatch.kt | 2 +- .../utils/integrations/patch/IntegrationsPatch.kt | 4 ---- .../utils/resourceid/patch/SharedResourceIdPatch.kt | 6 ------ .../settings/bytecode/patch/SettingsBytecodePatch.kt | 6 ------ .../utils/settings/resource/patch/SettingsPatch.kt | 2 +- .../patches/shared/patch/ads/AbstractAdsPatch.kt | 4 ---- .../shared/patch/litho/ComponentParserPatch.kt | 12 ++++-------- .../shared/patch/mapping/ResourceMappingPatch.kt | 6 ------ .../shared/patch/opus/AbstractOpusCodecsPatch.kt | 4 ---- .../shared/patch/packagename/PackageNamePatch.kt | 2 +- .../patch/versionspoof/AbstractVersionSpoofPatch.kt | 4 ---- .../bytecode/patch/GeneralAdsBytecodePatch.kt | 4 ---- .../ads/general/resource/patch/GeneralAdsPatch.kt | 4 ++-- .../ads/getpremium/patch/HideGetPremiumPatch.kt | 4 ---- .../patches/youtube/ads/video/patch/VideoAdsPatch.kt | 4 ++-- .../buttoncontainer/patch/ButtonContainerPatch.kt | 2 +- .../comment/patch/CommentComponentPatch.kt | 2 +- .../flyoutpanel/feed/patch/FeedFlyoutPanelPatch.kt | 2 +- .../oldqualitylayout/patch/OldQualityLayoutPatch.kt | 2 +- .../oldspeedlayout/patch/OldSpeedLayoutPatch.kt | 6 ------ .../player/patch/PlayerFlyoutPanelPatch.kt | 2 +- .../patch/HideAutoplayPreviewPatch.kt | 2 +- .../patch/CompactControlsOverlayPatch.kt | 4 ++-- .../patch/HideEndScreenOverlayPatch.kt | 4 ++-- .../patch/HideFullscreenPanelsPatch.kt | 2 +- .../landscapemode/patch/LandScapeModePatch.kt | 2 +- .../quickactions/patch/QuickActionsPatch.kt | 2 +- .../general/accountmenu/patch/AccountMenuPatch.kt | 2 +- .../general/autocaptions/patch/AutoCaptionsPatch.kt | 2 +- .../autopopuppanels/patch/PlayerPopupPanelsPatch.kt | 2 +- .../general/categorybar/patch/CategoryBarPatch.kt | 4 ++-- .../patch/ChannelListSubMenuPatch.kt | 2 +- .../crowdfundingbox/patch/CrowdfundingBoxPatch.kt | 2 +- .../descriptions/patch/DescriptionComponentsPatch.kt | 2 +- .../patch/FloatingMicrophonePatch.kt | 4 ++-- .../general/headerswitch/patch/HeaderSwitchPatch.kt | 2 +- .../general/layout/patch/LayoutComponentsPatch.kt | 2 +- .../loadmorebutton/patch/LoadMoreButtonPatch.kt | 2 +- .../general/mixplaylists/patch/MixPlaylistsPatch.kt | 4 ++-- .../patch/HideEmailAddressPatch.kt | 4 ++-- .../general/snackbar/patch/HideSnackBarPatch.kt | 2 +- .../suggestions/patch/SuggestionsShelfPatch.kt | 2 +- .../tabletminiplayer/patch/TabletMiniPlayerPatch.kt | 2 +- .../trendingsearches/patch/TrendingSearchesPatch.kt | 2 +- .../widesearchbar/patch/WideSearchBarPatch.kt | 2 +- .../icon/patch/CustomBrandingIconMMTPatch.kt | 2 +- .../patch/CustomBrandingIconRevancifyBluePatch.kt | 2 +- .../patch/CustomBrandingIconRevancifyRedPatch.kt | 2 +- .../branding/name/patch/CustomBrandingNamePatch.kt | 2 +- .../patch/DoubleTapOverlayBackgroundPatch.kt | 4 ++-- .../doubletaplength/patch/DoubleTapLengthPatch.kt | 2 +- .../patch/PlayerButtonBackgroundPatch.kt | 4 ++-- .../layout/forceheader/patch/PremiumHeadingPatch.kt | 4 ++-- .../layout/materialyou/patch/MaterialYouPatch.kt | 2 +- .../layout/optimize/patch/OptimizeResourcePatch.kt | 4 ++-- .../layout/optimize/patch/RedundantResourcePatch.kt | 8 -------- .../pipnotification/patch/PiPNotificationPatch.kt | 2 +- .../splashanimation/patch/AddSplashAnimationPatch.kt | 2 +- .../youtube/layout/theme/patch/GeneralThemePatch.kt | 4 ---- .../patches/youtube/layout/theme/patch/ThemePatch.kt | 2 +- .../layout/tooltip/patch/TooltipContentViewPatch.kt | 2 +- .../misc/ambientmode/patch/PowerSaveModePatch.kt | 2 +- .../youtube/misc/debugging/patch/DebuggingPatch.kt | 2 +- .../externalbrowser/patch/ExternalBrowserPatch.kt | 2 +- .../misc/forceopus/patch/ForceOpusCodecPatch.kt | 4 ++-- .../misc/forcevp9/patch/ForceVP9CodecPatch.kt | 2 +- .../misc/language/patch/LanguageSelectorPatch.kt | 2 +- .../misc/layoutswitch/patch/LayoutSwitchPatch.kt | 2 +- .../patch/MinimizedPlaybackPatch.kt | 2 +- .../patch/OpenLinksDirectlyPatch.kt | 2 +- .../youtube/misc/quic/patch/QUICProtocolPatch.kt | 2 +- .../splashanimation/patch/NewSplashAnimationPatch.kt | 2 +- .../spoofappversion/patch/SpoofAppVersionPatch.kt | 2 +- .../misc/translations/patch/TranslationsPatch.kt | 2 +- .../navigation/homepage/patch/ChangeHomePagePatch.kt | 2 +- .../navigation/label/patch/NavigationLabelPatch.kt | 2 +- .../patch/NavigationButtonsPatch.kt | 2 +- .../tabletnavbar/patch/TabletNavigationBarPatch.kt | 2 +- .../alwaysrepeat/patch/AlwaysRepeatPatch.kt | 6 ------ .../patch/DownloadButtonHookPatch.kt | 8 -------- .../general/patch/OverlayButtonsPatch.kt | 2 +- .../autoplaybutton/patch/HideAutoplayButtonPatch.kt | 2 +- .../captionsbutton/patch/HideCaptionsButtonPatch.kt | 2 +- .../player/castbutton/patch/HideCastButtonPatch.kt | 2 +- .../collapsebutton/patch/HideCollapseButtonPatch.kt | 2 +- .../endscreencards/patch/HideEndScreenCardsPatch.kt | 2 +- .../patch/HideFilmstripOverlayPatch.kt | 3 +-- .../hapticfeedback/patch/HapticFeedBackPatch.kt | 2 +- .../player/infocards/patch/HideInfoCardsPatch.kt | 2 +- .../player/musicbutton/patch/HideMusicButtonPatch.kt | 2 +- .../patch/HidePlayerButtonBackgroundPatch.kt | 2 +- .../patch/PlayerOverlayFilterPatch.kt | 4 ++-- .../patch/HidePreviousNextButtonPatch.kt | 2 +- .../player/seekmessage/patch/SeekMessagePatch.kt | 2 +- .../speedoverlay/patch/HideSpeedOverlayPatch.kt | 2 +- .../suggestactions/patch/SuggestedActionsPatch.kt | 2 +- .../watermark/patch/HideChannelWatermarkPatch.kt | 2 +- .../seekbar/seekbar/patch/HideSeekbarPatch.kt | 2 +- .../seekbar/seekbarcolor/patch/SeekbarColorPatch.kt | 2 +- .../youtube/seekbar/speed/patch/AppendSpeedPatch.kt | 2 +- .../seekbar/tapping/patch/SeekbarTappingPatch.kt | 2 +- .../patch/NewThumbnailPreviewPatch.kt | 2 +- .../seekbar/timestamps/patch/HideTimeStampPatch.kt | 2 +- .../ReelWatchFragmentBuilderFingerprint.kt | 6 +++++- .../patch/NewCommentPopupPanelsPatch.kt | 2 +- .../patch/ShortsCommentButtonPatch.kt | 6 ------ .../shortscomponent/patch/ShortsComponentPatch.kt | 2 +- .../patch/ShortsDislikeButtonPatch.kt | 6 ------ .../shortscomponent/patch/ShortsInfoPanelPatch.kt | 6 ------ .../shortscomponent/patch/ShortsLikeButtonPatch.kt | 6 ------ .../patch/ShortsPaidPromotionBannerPatch.kt | 6 ------ .../shortscomponent/patch/ShortsRemixButtonPatch.kt | 6 ------ .../shortscomponent/patch/ShortsShareButtonPatch.kt | 6 ------ .../patch/ShortsSubscriptionsButtonPatch.kt | 6 ------ .../shortscomponent/patch/ShortsToolBarPatch.kt | 6 ------ .../patch/ShortsNavigationBarPatch.kt | 8 -------- .../patch/DisableShortsOnStartupPatch.kt | 2 +- .../swipe/hdrbrightness/patch/HDRBrightnessPatch.kt | 6 ------ .../bytecode/patch/SwipeControlsBytecodePatch.kt | 6 ------ .../resource/patch/SwipeControlsPatch.kt | 2 +- .../utils/fix/clientspoof/patch/ClientSpoofPatch.kt | 8 -------- .../patch/DoubleBackToClosePatch.kt | 6 ------ .../fix/parameter/patch/SpoofPlayerParameterPatch.kt | 5 +++-- .../fix/swiperefresh/patch/SwipeRefreshPatch.kt | 8 -------- .../utils/integrations/patch/IntegrationsPatch.kt | 4 ---- .../youtube/utils/litho/patch/LithoThemePatch.kt | 6 ------ .../microg/bytecode/patch/MicroGBytecodePatch.kt | 6 ------ .../utils/microg/resource/patch/MicroGPatch.kt | 2 +- .../utils/navbarindex/patch/NavBarIndexHookPatch.kt | 6 ------ .../overridespeed/patch/OverrideSpeedHookPatch.kt | 6 ------ .../playerbutton/patch/PlayerButtonHookPatch.kt | 6 ------ .../playercontrols/patch/PlayerControlsPatch.kt | 8 -------- .../utils/playertype/patch/PlayerTypeHookPatch.kt | 8 -------- .../quickactions/patch/QuickActionsHookPatch.kt | 6 ------ .../utils/resourceid/patch/SharedResourceIdPatch.kt | 6 ------ .../general/patch/ReturnYouTubeDislikePatch.kt | 2 +- .../patch/ReturnYouTubeDislikeOldLayoutPatch.kt | 6 ------ .../shorts/patch/ReturnYouTubeDislikeShortsPatch.kt | 6 ------ .../settings/bytecode/patch/SettingsBytecodePatch.kt | 6 ------ .../utils/settings/resource/patch/SettingsPatch.kt | 6 ++++-- .../bytecode/patch/SponsorBlockBytecodePatch.kt | 6 ------ .../resource/patch/SponsorBlockResourcePatch.kt | 2 +- .../youtube/utils/videocpn/patch/VideoCpnPatch.kt | 4 ---- .../utils/videoid/general/patch/VideoIdPatch.kt | 4 ---- .../withoutshorts/patch/VideoIdWithoutShortsPatch.kt | 5 ----- .../video/customspeed/patch/CustomVideoSpeedPatch.kt | 2 +- .../youtube/video/hdr/patch/DisableHdrVideoPatch.kt | 2 +- .../youtube/video/quality/patch/VideoQualityPatch.kt | 2 +- .../youtube/video/speed/patch/VideoSpeedPatch.kt | 2 +- 212 files changed, 190 insertions(+), 518 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt b/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt index ffd88a491..ce1c8d1f7 100644 --- a/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt +++ b/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt @@ -12,7 +12,7 @@ import app.revanced.patches.microg.utils.annotations.MicroGCompatibility import app.revanced.util.resources.MicroGResourceUtils.copyFiles @Patch(false) -@Name("custom-branding-microg-revancify-blue") +@Name("Custom branding icon Revancify blue") @Description("Changes the MicroG launcher icon to Revancify Blue.") @MicroGCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt b/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt index 4c41cf6f0..4abf95fcb 100644 --- a/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt @@ -12,7 +12,7 @@ import app.revanced.patches.microg.utils.annotations.MicroGCompatibility import app.revanced.util.resources.MicroGResourceUtils.copyFiles @Patch -@Name("custom-branding-microg-revancify-red") +@Name("Custom branding icon Revancify red") @Description("Changes the MicroG launcher icon to Revancify Red.") @MicroGCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/microg/layout/branding/name/patch/CustomBrandingNamePatch.kt b/src/main/kotlin/app/revanced/patches/microg/layout/branding/name/patch/CustomBrandingNamePatch.kt index 8b5133abc..9375a768e 100644 --- a/src/main/kotlin/app/revanced/patches/microg/layout/branding/name/patch/CustomBrandingNamePatch.kt +++ b/src/main/kotlin/app/revanced/patches/microg/layout/branding/name/patch/CustomBrandingNamePatch.kt @@ -16,7 +16,7 @@ import app.revanced.patches.microg.utils.annotations.MicroGCompatibility import org.w3c.dom.Element @Patch -@Name("custom-branding-microg-name") +@Name("Custom branding Microg name") @Description("Rename the MicroG app to the name specified in options.json.") @MicroGCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/microg/layout/hideicon/patch/HideIconPatch.kt b/src/main/kotlin/app/revanced/patches/microg/layout/hideicon/patch/HideIconPatch.kt index 29042353d..1f866d9dc 100644 --- a/src/main/kotlin/app/revanced/patches/microg/layout/hideicon/patch/HideIconPatch.kt +++ b/src/main/kotlin/app/revanced/patches/microg/layout/hideicon/patch/HideIconPatch.kt @@ -13,7 +13,7 @@ import app.revanced.patches.microg.utils.annotations.MicroGCompatibility import org.w3c.dom.Element @Patch(false) -@Name("hide-icon-from-launcher") +@Name("Hide icon from launcher") @Description("Hide MicroG icon from launcher.") @MicroGCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/ads/music/patch/MusicAdsPatch.kt b/src/main/kotlin/app/revanced/patches/music/ads/music/patch/MusicAdsPatch.kt index 0b0b77777..a6921b5fe 100644 --- a/src/main/kotlin/app/revanced/patches/music/ads/music/patch/MusicAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/ads/music/patch/MusicAdsPatch.kt @@ -16,7 +16,7 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_ADS_PATH @Patch -@Name("hide-music-ads") +@Name("Hide music ads") @Description("Hides ads before playing a music.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/amoled/patch/AmoledPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/amoled/patch/AmoledPatch.kt index c99e0c4e9..412639d26 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/amoled/patch/AmoledPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/amoled/patch/AmoledPatch.kt @@ -12,7 +12,7 @@ import app.revanced.patches.music.utils.annotations.MusicCompatibility import org.w3c.dom.Element @Patch -@Name("amoled") +@Name("Amoled") @Description("Applies pure black theme in flyout panels.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/layout/autocaptions/patch/DisableAutoCaptionsPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/autocaptions/patch/DisableAutoCaptionsPatch.kt index 8062fd53b..90d1ac0d7 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/autocaptions/patch/DisableAutoCaptionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/autocaptions/patch/DisableAutoCaptionsPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.MUSIC_LAYOUT import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("disable-auto-captions") +@Name("Disable auto captions") @Description("Disables forced auto captions.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/layout/blacknavigationbar/patch/BlackNavigationBarPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/blacknavigationbar/patch/BlackNavigationBarPatch.kt index af7fb28b0..ede2f1605 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/blacknavigationbar/patch/BlackNavigationBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/blacknavigationbar/patch/BlackNavigationBarPatch.kt @@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.MUSIC_LAYOUT import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-black-navigation-bar") +@Name("Enable black navigation bar") @Description("Sets the navigation bar color to black.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt index 56a75f8c7..396967d83 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt @@ -13,7 +13,7 @@ import app.revanced.util.resources.IconHelper.customIconMusic import app.revanced.util.resources.IconHelper.customIconMusicAdditional @Patch(false) -@Name("custom-branding-icon-mmt") +@Name("Custom branding icon MMT") @Description("Changes the YouTube Music launcher icon to MMT.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt index abface5a9..3226401ac 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt @@ -12,7 +12,7 @@ import app.revanced.patches.music.utils.annotations.MusicCompatibility import app.revanced.util.resources.IconHelper.customIconMusic @Patch -@Name("custom-branding-icon-revancify-blue") +@Name("Custom branding icon Revancify blue") @Description("Changes the YouTube Music launcher icon to Revancify Blue.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt index 4e90f0c49..32273c5b7 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt @@ -12,7 +12,7 @@ import app.revanced.patches.music.utils.annotations.MusicCompatibility import app.revanced.util.resources.IconHelper.customIconMusic @Patch(false) -@Name("custom-branding-icon-revancify-red") +@Name("Custom branding icon Revancify red") @Description("Changes the YouTube Music launcher icon to Revancify Red.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/layout/branding/name/patch/CustomBrandingNamePatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/branding/name/patch/CustomBrandingNamePatch.kt index 1d60375b5..95a6cd5b3 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/branding/name/patch/CustomBrandingNamePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/branding/name/patch/CustomBrandingNamePatch.kt @@ -15,7 +15,7 @@ import app.revanced.patches.music.utils.annotations.MusicCompatibility import org.w3c.dom.Element @Patch(false) -@Name("custom-branding-music-name") +@Name("Custom branding Music name") @Description("Rename the YouTube Music app to the name specified in options.json.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/layout/buttonshelf/patch/HideButtonShelfPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/buttonshelf/patch/HideButtonShelfPatch.kt index f0a71f697..8e9bb099d 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/buttonshelf/patch/HideButtonShelfPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/buttonshelf/patch/HideButtonShelfPatch.kt @@ -16,7 +16,7 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_ADS_PATH @Patch -@Name("hide-button-shelf") +@Name("Hide button shelf") @Description("Hides the button shelf from homepage and explorer.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/carouselshelf/patch/HideCarouselShelfPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/carouselshelf/patch/HideCarouselShelfPatch.kt index 020ac8b04..4f77a6c5e 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/carouselshelf/patch/HideCarouselShelfPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/carouselshelf/patch/HideCarouselShelfPatch.kt @@ -16,7 +16,7 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_ADS_PATH @Patch -@Name("hide-carousel-shelf") +@Name("Hide carousel shelf") @Description("Hides the carousel shelf from homepage and explorer.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/castbutton/patch/HideCastButtonPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/castbutton/patch/HideCastButtonPatch.kt index 32e685d91..2fbe1c16a 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/castbutton/patch/HideCastButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/castbutton/patch/HideCastButtonPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_LAYOUT @Patch -@Name("hide-cast-button") +@Name("Hide cast button") @Description("Hides the cast button in the video player and header.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/layout/categorybar/patch/CategoryBarPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/categorybar/patch/CategoryBarPatch.kt index 9d0281619..262f28b0e 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/categorybar/patch/CategoryBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/categorybar/patch/CategoryBarPatch.kt @@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.MUSIC_LAYOUT import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-category-bar") +@Name("Hide category bar") @Description("Hides the music category bar at the top of the homepage.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/colormatchplayer/patch/ColorMatchPlayerPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/colormatchplayer/patch/ColorMatchPlayerPatch.kt index 126bbd530..285829523 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/colormatchplayer/patch/ColorMatchPlayerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/colormatchplayer/patch/ColorMatchPlayerPatch.kt @@ -26,7 +26,7 @@ import org.jf.dexlib2.iface.instruction.Instruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Patch -@Name("enable-color-match-player") +@Name("Enable color match player") @Description("Matches the color of the mini player and the fullscreen player.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/layout/compactdialog/patch/CompactDialogPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/compactdialog/patch/CompactDialogPatch.kt index 9aa9edaeb..70ba37c4b 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/compactdialog/patch/CompactDialogPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/compactdialog/patch/CompactDialogPatch.kt @@ -20,9 +20,8 @@ import app.revanced.patches.music.utils.settings.resource.patch.SettingsPatch import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_LAYOUT - @Patch -@Name("enable-compact-dialog") +@Name("Enable compact dialog") @Description("Enable compact dialog on phone.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/customfilter/patch/CustomFilterPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/customfilter/patch/CustomFilterPatch.kt index 3b3620fa6..4e51685ad 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/customfilter/patch/CustomFilterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/customfilter/patch/CustomFilterPatch.kt @@ -16,7 +16,7 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_ADS_PATH @Patch -@Name("enable-custom-filter") +@Name("Enable custom filter") @Description("Enables custom filter to hide layout components.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/dismissqueue/patch/DismissQueuePatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/dismissqueue/patch/DismissQueuePatch.kt index fc460d695..bdb6cb625 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/dismissqueue/patch/DismissQueuePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/dismissqueue/patch/DismissQueuePatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.MUSIC_LAYOUT import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-dismiss-queue") +@Name("Enable dismiss queue") @Description("Add dismiss queue to flyout menu. (YT Music v6.04.51+)") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/layout/floatingbutton/patch/NewPlaylistButtonPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/floatingbutton/patch/NewPlaylistButtonPatch.kt index 1b0c00cc4..03e9f4e76 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/floatingbutton/patch/NewPlaylistButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/floatingbutton/patch/NewPlaylistButtonPatch.kt @@ -23,8 +23,8 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_LAYOUT @Patch -@Name("hide-new-playlist-button") -@Description("Hide the New Playlist button in the Library tab.") +@Name("Hide new playlist button") +@Description("Hide the \"New playlist\" button in the library.") @DependsOn( [ SettingsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/music/layout/landscapemode/patch/LandScapeModePatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/landscapemode/patch/LandScapeModePatch.kt index 3380b2b0f..b79021690 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/landscapemode/patch/LandScapeModePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/landscapemode/patch/LandScapeModePatch.kt @@ -19,7 +19,7 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_LAYOUT @Patch -@Name("enable-landscape-mode") +@Name("Enable landscape mode") @Description("Enables entry into landscape mode by screen rotation on the phone.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/minimizedplayer/patch/MinimizedPlayerPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/minimizedplayer/patch/MinimizedPlayerPatch.kt index 8bc5bc5f8..1c9a91306 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/minimizedplayer/patch/MinimizedPlayerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/minimizedplayer/patch/MinimizedPlayerPatch.kt @@ -19,7 +19,7 @@ import app.revanced.util.integrations.Constants.MUSIC_LAYOUT import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-force-minimized-player") +@Name("Enable force minimized player") @Description("Permanently keep player minimized even if another track is played.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/layout/navigationlabel/patch/NavigationLabelPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/navigationlabel/patch/NavigationLabelPatch.kt index 62d5c70ef..1e89489f3 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/navigationlabel/patch/NavigationLabelPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/navigationlabel/patch/NavigationLabelPatch.kt @@ -26,7 +26,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Patch -@Name("hide-navigation-label") +@Name("Hide navigation label") @Description("Hide navigation bar labels.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/newlayout/patch/NewLayoutPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/newlayout/patch/NewLayoutPatch.kt index 11d711fa8..31a9ff60a 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/newlayout/patch/NewLayoutPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/newlayout/patch/NewLayoutPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.MUSIC_LAYOUT import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-new-layout") +@Name("Enable new layout") @Description("Enable new player layouts. (YT Music v5.47.51+)") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/layout/oldstyleminiplayer/patch/OldStyleMiniPlayerPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/oldstyleminiplayer/patch/OldStyleMiniPlayerPatch.kt index 5731cfd92..4055757c3 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/oldstyleminiplayer/patch/OldStyleMiniPlayerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/oldstyleminiplayer/patch/OldStyleMiniPlayerPatch.kt @@ -23,7 +23,7 @@ import app.revanced.util.integrations.Constants.MUSIC_LAYOUT import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-old-style-miniplayer") +@Name("Enable old style miniplayer") @Description("Return the miniplayers to old style. (for YT Music v5.55.53+)") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/layout/playlistcard/patch/HidePlaylistCardPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/playlistcard/patch/HidePlaylistCardPatch.kt index 249bd9d06..8d6ccf8c6 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/playlistcard/patch/HidePlaylistCardPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/playlistcard/patch/HidePlaylistCardPatch.kt @@ -16,7 +16,7 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_ADS_PATH @Patch -@Name("hide-playlist-card") +@Name("Hide playlist card") @Description("Hides the playlist card from homepage.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/layout/sleeptimer/patch/SleepTimerPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/sleeptimer/patch/SleepTimerPatch.kt index bf4fb68e5..53b2cb232 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/sleeptimer/patch/SleepTimerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/sleeptimer/patch/SleepTimerPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.MUSIC_LAYOUT import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-sleep-timer") +@Name("Enable sleep timer") @Description("Add sleep timer to flyout menu.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/layout/zenmode/patch/ZenModePatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/zenmode/patch/ZenModePatch.kt index 154f299ad..bb3152305 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/zenmode/patch/ZenModePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/zenmode/patch/ZenModePatch.kt @@ -24,7 +24,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Patch -@Name("enable-zen-mode") +@Name("Enable zen mode") @Description("Adds a grey tint to the video player to reduce eye strain.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/misc/backgroundplay/patch/BackgroundPlayPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/backgroundplay/patch/BackgroundPlayPatch.kt index 41ea9dfa6..2501075f3 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/backgroundplay/patch/BackgroundPlayPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/backgroundplay/patch/BackgroundPlayPatch.kt @@ -16,7 +16,7 @@ import app.revanced.patches.music.misc.backgroundplay.fingerprints.BackgroundPla import app.revanced.patches.music.utils.annotations.MusicCompatibility @Patch -@Name("background-play") +@Name("Background play") @Description("Enables playing music in the background.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/misc/bitrate/patch/BitrateDefaultValuePatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/bitrate/patch/BitrateDefaultValuePatch.kt index 045b755ec..236a302aa 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/bitrate/patch/BitrateDefaultValuePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/bitrate/patch/BitrateDefaultValuePatch.kt @@ -11,7 +11,7 @@ import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.music.utils.annotations.MusicCompatibility @Patch -@Name("bitrate-default-value") +@Name("Bitrate default value") @Description("Set the audio quality to \"Always High\" when you first install the app.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/misc/codecs/patch/CodecsUnlockPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/codecs/patch/CodecsUnlockPatch.kt index 474e1dfa0..8fdd9dbcb 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/codecs/patch/CodecsUnlockPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/codecs/patch/CodecsUnlockPatch.kt @@ -15,7 +15,7 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_MISC_PATH @Patch -@Name("enable-opus-codec") +@Name("Enable opus codec") @Description("Enable opus codec when playing audio.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/misc/debugging/patch/DebuggingPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/debugging/patch/DebuggingPatch.kt index 87ba1a47a..dde5a8879 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/debugging/patch/DebuggingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/debugging/patch/DebuggingPatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.music.utils.settings.resource.patch.SettingsPatch import app.revanced.util.enum.CategoryType @Patch(false) -@Name("enable-debug-logging") +@Name("Enable debug logging") @Description("Adds debugging options.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/misc/exclusiveaudio/patch/ExclusiveAudioPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/exclusiveaudio/patch/ExclusiveAudioPatch.kt index 4b81b1004..3f50f1d65 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/exclusiveaudio/patch/ExclusiveAudioPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/exclusiveaudio/patch/ExclusiveAudioPatch.kt @@ -15,7 +15,7 @@ import app.revanced.patches.music.misc.exclusiveaudio.fingerprints.AudioOnlyEnab import app.revanced.patches.music.utils.annotations.MusicCompatibility @Patch -@Name("exclusive-audio-playback") +@Name("Exclusive audio playback") @Description("Enables the option to play music without video.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt index 542b78bf6..e4545b823 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.music.misc.minimizedplayback.fingerprints.MinimizedP import app.revanced.patches.music.utils.annotations.MusicCompatibility @Patch -@Name("enable-minimized-playback") +@Name("Enable minimized playback") @Description("Enables minimized playback on Kids music.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/misc/optimizeresource/patch/OptimizeResourcePatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/optimizeresource/patch/OptimizeResourcePatch.kt index 25464a08e..c5f97f067 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/optimizeresource/patch/OptimizeResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/optimizeresource/patch/OptimizeResourcePatch.kt @@ -13,7 +13,7 @@ import java.nio.file.Files import java.nio.file.StandardCopyOption @Patch -@Name("optimize-resource") +@Name("Optimize resource") @Description("Remove unnecessary resources.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/misc/premium/patch/HideGetPremiumPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/premium/patch/HideGetPremiumPatch.kt index 0ffd31390..d270653ed 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/premium/patch/HideGetPremiumPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/premium/patch/HideGetPremiumPatch.kt @@ -27,8 +27,8 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction import org.jf.dexlib2.iface.reference.Reference @Patch -@Name("hide-get-premium") -@Description("Removes all \"Get Premium\" evidences from the avatar menu.") +@Name("Hide get premium") +@Description("Hides \"Get Premium\" label from the account menu.") @DependsOn([SharedResourceIdPatch::class]) @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/misc/quality/patch/VideoQualityPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/quality/patch/VideoQualityPatch.kt index 54beec6fe..d8ab5a323 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/quality/patch/VideoQualityPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/quality/patch/VideoQualityPatch.kt @@ -32,7 +32,7 @@ import org.jf.dexlib2.iface.reference.MethodReference import org.jf.dexlib2.iface.reference.Reference @Patch -@Name("remember-video-quality") +@Name("Remember video quality") @Description("Save the video quality value whenever you change the video quality.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/misc/sharebuttonhook/patch/ShareButtonHookPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/sharebuttonhook/patch/ShareButtonHookPatch.kt index fa1c8baeb..28a7cc83d 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/sharebuttonhook/patch/ShareButtonHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/sharebuttonhook/patch/ShareButtonHookPatch.kt @@ -27,7 +27,7 @@ import app.revanced.util.integrations.Constants.MUSIC_INTEGRATIONS_PATH import app.revanced.util.integrations.Constants.MUSIC_MISC_PATH @Patch -@Name("share-button-hook") +@Name("Share button hook") @Description("Replace share button with external download button.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/misc/shuffle/patch/EnforceShufflePatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/shuffle/patch/EnforceShufflePatch.kt index 1aad61de1..b68435539 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/shuffle/patch/EnforceShufflePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/shuffle/patch/EnforceShufflePatch.kt @@ -38,7 +38,7 @@ import org.jf.dexlib2.immutable.ImmutableMethodImplementation import org.jf.dexlib2.immutable.ImmutableMethodParameter @Patch -@Name("enable-force-shuffle") +@Name("Enable force shuffle") @Description("Enable force shuffle even if another track is played.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/misc/tastebuilder/patch/TasteBuilderPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/tastebuilder/patch/TasteBuilderPatch.kt index 383e8cc75..3dceb8196 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/tastebuilder/patch/TasteBuilderPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/tastebuilder/patch/TasteBuilderPatch.kt @@ -16,7 +16,7 @@ import app.revanced.patches.music.utils.annotations.MusicCompatibility import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-taste-builder") +@Name("Hide taste builder") @Description("Hides the \"Tell us which artists you like\" card from homepage.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/misc/translations/patch/TranslationsPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/translations/patch/TranslationsPatch.kt index 01fbbcd16..3d822bf2b 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/translations/patch/TranslationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/translations/patch/TranslationsPatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.music.utils.settings.resource.patch.SettingsPatch import app.revanced.util.resources.ResourceHelper.addTranslations @Patch -@Name("translations") +@Name("Translations") @Description("Add Crowdin translations for YouTube Music.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/misc/upgradebutton/patch/UpgradeButtonPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/upgradebutton/patch/UpgradeButtonPatch.kt index 16153f5fe..222c48b50 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/upgradebutton/patch/UpgradeButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/upgradebutton/patch/UpgradeButtonPatch.kt @@ -24,7 +24,7 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-upgrade-button") +@Name("Hide upgrade button") @Description("Hides upgrade button from navigation bar and hide upgrade banner from homepage.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/music/misc/versionspoof/patch/SpoofAppVersionPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/versionspoof/patch/SpoofAppVersionPatch.kt index 5512978ec..507d998bf 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/versionspoof/patch/SpoofAppVersionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/versionspoof/patch/SpoofAppVersionPatch.kt @@ -15,7 +15,7 @@ import app.revanced.util.enum.CategoryType import app.revanced.util.integrations.Constants.MUSIC_MISC_PATH @Patch -@Name("spoof-app-version") +@Name("Spoof app version") @Description("Spoof the YouTube Music client version.") @DependsOn([SettingsPatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/utils/fix/androidauto/patch/AndroidAutoCertificatePatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/fix/androidauto/patch/AndroidAutoCertificatePatch.kt index a2a338715..95287f62e 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/fix/androidauto/patch/AndroidAutoCertificatePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/fix/androidauto/patch/AndroidAutoCertificatePatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.music.utils.annotations.MusicCompatibility import app.revanced.patches.music.utils.fix.androidauto.fingerprints.CertificateCheckFingerprint @Patch -@Name("certificate-spoof") +@Name("Certificate spoof") @Description("Spoofs the YouTube Music certificate for Android Auto.") @MusicCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/music/utils/fix/clientspoof/patch/ClientSpoofMusicPatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/fix/clientspoof/patch/ClientSpoofMusicPatch.kt index 67731186e..a144c8b31 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/fix/clientspoof/patch/ClientSpoofMusicPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/fix/clientspoof/patch/ClientSpoofMusicPatch.kt @@ -1,24 +1,16 @@ package app.revanced.patches.music.utils.fix.clientspoof.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patches.music.utils.annotations.MusicCompatibility import app.revanced.patches.music.utils.fix.clientspoof.fingerprints.UserAgentHeaderBuilderFingerprint import app.revanced.patches.music.utils.microg.shared.Constants.MUSIC_PACKAGE_NAME import org.jf.dexlib2.iface.instruction.FiveRegisterInstruction -@Name("client-spoof-music") -@Description("Spoofs the YouTube Music client.") -@MusicCompatibility -@Version("0.0.1") class ClientSpoofMusicPatch : BytecodePatch( listOf(UserAgentHeaderBuilderFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/music/utils/integrations/patch/IntegrationsPatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/integrations/patch/IntegrationsPatch.kt index 02422f055..0ceeea9c4 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/integrations/patch/IntegrationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/integrations/patch/IntegrationsPatch.kt @@ -1,14 +1,10 @@ package app.revanced.patches.music.utils.integrations.patch -import app.revanced.patcher.annotation.Name import app.revanced.patcher.patch.annotations.RequiresIntegrations -import app.revanced.patches.music.utils.annotations.MusicCompatibility import app.revanced.patches.music.utils.integrations.fingerprints.InitFingerprint import app.revanced.patches.shared.patch.integrations.AbstractIntegrationsPatch import app.revanced.util.integrations.Constants.MUSIC_INTEGRATIONS_PATH -@Name("integrations") -@MusicCompatibility @RequiresIntegrations class IntegrationsPatch : AbstractIntegrationsPatch( "$MUSIC_INTEGRATIONS_PATH/utils/ReVancedUtils;", diff --git a/src/main/kotlin/app/revanced/patches/music/utils/microg/bytecode/patch/MicroGPatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/microg/bytecode/patch/MicroGPatch.kt index 27b95c749..98ddf1863 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/microg/bytecode/patch/MicroGPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/microg/bytecode/patch/MicroGPatch.kt @@ -31,7 +31,7 @@ import app.revanced.util.microg.MicroGBytecodeHelper PackageNamePatch::class ] ) -@Name("microg-support") +@Name("Microg support") @Description("Allows ReVanced Music to run without root and under a different package name with MicroG.") @MusicCompatibility @Version("0.0.2") diff --git a/src/main/kotlin/app/revanced/patches/music/utils/microg/resource/patch/MicroGResourcePatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/microg/resource/patch/MicroGResourcePatch.kt index ec225fa60..d70156592 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/microg/resource/patch/MicroGResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/microg/resource/patch/MicroGResourcePatch.kt @@ -1,14 +1,10 @@ package app.revanced.patches.music.utils.microg.resource.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.patches.music.utils.annotations.MusicCompatibility import app.revanced.patches.music.utils.microg.shared.Constants.MUSIC_PACKAGE_NAME import app.revanced.patches.music.utils.microg.shared.Constants.SPOOFED_PACKAGE_NAME import app.revanced.patches.music.utils.microg.shared.Constants.SPOOFED_PACKAGE_SIGNATURE @@ -17,11 +13,7 @@ import app.revanced.util.microg.MicroGManifestHelper.addSpoofingMetadata import app.revanced.util.microg.MicroGResourceHelper.patchManifest import app.revanced.util.resources.MusicResourceHelper.setMicroG -@Name("microg-resource-patch") -@Description("Resource patch to allow YouTube Music ReVanced to run without root and under a different package name.") @DependsOn([PackageNamePatch::class]) -@MusicCompatibility -@Version("0.0.2") class MicroGResourcePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { val packageNameMusic = PackageNamePatch.MusicPackageName!! diff --git a/src/main/kotlin/app/revanced/patches/music/utils/resourceid/patch/SharedResourceIdPatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/resourceid/patch/SharedResourceIdPatch.kt index ef3b16292..d7767b26c 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/resourceid/patch/SharedResourceIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/resourceid/patch/SharedResourceIdPatch.kt @@ -1,14 +1,11 @@ package app.revanced.patches.music.utils.resourceid.patch -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.PatchResultError import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patches.music.utils.annotations.MusicCompatibility import app.revanced.patches.shared.patch.mapping.ResourceMappingPatch import app.revanced.util.enum.ResourceType import app.revanced.util.enum.ResourceType.BOOL @@ -19,10 +16,7 @@ import app.revanced.util.enum.ResourceType.LAYOUT import app.revanced.util.enum.ResourceType.STRING import app.revanced.util.enum.ResourceType.STYLE -@Name("music-resource-id") @DependsOn([ResourceMappingPatch::class]) -@MusicCompatibility -@Version("0.0.1") class SharedResourceIdPatch : ResourcePatch { internal companion object { var ChipCloud: Long = -1 diff --git a/src/main/kotlin/app/revanced/patches/music/utils/settings/bytecode/patch/SettingsBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/settings/bytecode/patch/SettingsBytecodePatch.kt index 4e460ba22..5f2472420 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/settings/bytecode/patch/SettingsBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/settings/bytecode/patch/SettingsBytecodePatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.music.utils.settings.bytecode.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -10,7 +8,6 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patches.music.utils.annotations.MusicCompatibility import app.revanced.patches.music.utils.integrations.patch.IntegrationsPatch import app.revanced.patches.music.utils.settings.bytecode.fingerprints.PreferenceFingerprint import app.revanced.patches.music.utils.settings.bytecode.fingerprints.SettingsHeadersFragmentFingerprint @@ -18,10 +15,7 @@ import app.revanced.util.integrations.Constants.MUSIC_INTEGRATIONS_PATH import org.jf.dexlib2.iface.instruction.FiveRegisterInstruction import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("settings-bytecode-patch") @DependsOn([IntegrationsPatch::class]) -@MusicCompatibility -@Version("0.0.1") class SettingsBytecodePatch : BytecodePatch( listOf( PreferenceFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/music/utils/settings/resource/patch/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/settings/resource/patch/SettingsPatch.kt index d17aa4300..7360b62ea 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/settings/resource/patch/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/settings/resource/patch/SettingsPatch.kt @@ -27,7 +27,7 @@ import java.io.File import java.nio.file.Paths @Patch -@Name("settings") +@Name("Settings") @Description("Adds settings for ReVanced to YouTube Music.") @DependsOn([SettingsBytecodePatch::class]) @MusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/utils/videoid/patch/VideoIdPatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/videoid/patch/VideoIdPatch.kt index c2020e013..2fdd5f77d 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/videoid/patch/VideoIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/videoid/patch/VideoIdPatch.kt @@ -1,9 +1,6 @@ package app.revanced.patches.music.utils.videoid.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -11,7 +8,6 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod -import app.revanced.patches.music.utils.annotations.MusicCompatibility import app.revanced.patches.music.utils.videoid.fingerprint.VideoIdParentFingerprint import app.revanced.util.integrations.Constants.MUSIC_UTILS_PATH import org.jf.dexlib2.Opcode @@ -19,10 +15,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.reference.FieldReference -@Name("video-id-hook") -@Description("Hook to detect when the video id changes.") -@MusicCompatibility -@Version("0.0.1") class VideoIdPatch : BytecodePatch( listOf(VideoIdParentFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/reddit/ad/banner/patch/HideBannerPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/ad/banner/patch/HideBannerPatch.kt index bc7c5e71e..ff42df572 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/ad/banner/patch/HideBannerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/ad/banner/patch/HideBannerPatch.kt @@ -1,16 +1,10 @@ package app.revanced.patches.reddit.ad.banner.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 -@Name("hide-subreddit-banner") -@Description("Hides banner ads from comments on subreddits.") -@Version("0.0.1") class HideBannerPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { context.xmlEditor[RESOURCE_FILE_PATH].use { diff --git a/src/main/kotlin/app/revanced/patches/reddit/ad/comments/patch/HideCommentAdsPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/ad/comments/patch/HideCommentAdsPatch.kt index a6032b6f7..988ca35f7 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/ad/comments/patch/HideCommentAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/ad/comments/patch/HideCommentAdsPatch.kt @@ -1,23 +1,15 @@ package app.revanced.patches.reddit.ad.comments.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patcher.patch.annotations.RequiresIntegrations import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patches.reddit.ad.comments.fingerprints.HideCommentAdsFingerprint -@Name("hide-comment-ads") -@Description("Removes all comment ads.") -@RequiresIntegrations -@Version("0.0.1") class HideCommentAdsPatch : BytecodePatch( listOf(HideCommentAdsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt index 4da1f0dfe..08997f1c1 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt @@ -14,27 +14,27 @@ import app.revanced.patcher.patch.PatchResultError import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch +import app.revanced.patcher.patch.annotations.RequiresIntegrations import app.revanced.patches.reddit.ad.banner.patch.HideBannerPatch import app.revanced.patches.reddit.ad.comments.patch.HideCommentAdsPatch import app.revanced.patches.reddit.ad.general.fingerprints.AdPostFingerprint import app.revanced.patches.reddit.ad.general.fingerprints.NewAdPostFingerprint import app.revanced.patches.reddit.utils.annotations.RedditCompatibility -import app.revanced.patches.reddit.utils.integrations.patch.IntegrationsPatch import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.instruction.formats.Instruction22c import org.jf.dexlib2.iface.reference.FieldReference @Patch -@Name("hide-ads") -@Description("Removes ads from the Reddit.") +@Name("Hide ads") +@Description("Hides ads from the Reddit.") @DependsOn( [ HideBannerPatch::class, - HideCommentAdsPatch::class, - IntegrationsPatch::class + HideCommentAdsPatch::class ] ) @RedditCompatibility +@RequiresIntegrations @Version("0.0.2") class HideAdsPatch : BytecodePatch( listOf( diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/CreateButtonPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/CreateButtonPatch.kt index 274fe64e2..79de40b5f 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/CreateButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/CreateButtonPatch.kt @@ -15,7 +15,7 @@ import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsBytecod import app.revanced.patches.reddit.utils.settings.resource.patch.SettingsPatch @Patch -@Name("hide-create-button") +@Name("Hide create button") @Description("Hide create button at navigation bar.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/DiscoverButtonPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/DiscoverButtonPatch.kt index 6876779cc..bbae488b6 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/DiscoverButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/DiscoverButtonPatch.kt @@ -15,7 +15,7 @@ import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsBytecod import app.revanced.patches.reddit.utils.settings.resource.patch.SettingsPatch @Patch -@Name("hide-discover-button") +@Name("Hide discover button") @Description("Hide discover button at navigation bar.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/NavigationButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/NavigationButtonsPatch.kt index 101949b52..b63cb9c4f 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/NavigationButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/NavigationButtonsPatch.kt @@ -1,9 +1,6 @@ package app.revanced.patches.reddit.layout.navigation.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -16,9 +13,6 @@ import app.revanced.patches.reddit.layout.navigation.fingerprints.BottomNavScree import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction -@Name("hide-navigation-buttons") -@Description("Hide navigation buttons.") -@Version("0.0.1") class NavigationButtonsPatch : BytecodePatch( listOf(BottomNavScreenFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/patch/PremiumIconPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/patch/PremiumIconPatch.kt index 6dea49569..cbbdb8711 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/patch/PremiumIconPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/patch/PremiumIconPatch.kt @@ -14,8 +14,8 @@ import app.revanced.patches.reddit.layout.premiumicon.fingerprints.PremiumIconFi import app.revanced.patches.reddit.utils.annotations.RedditCompatibility @Patch -@Name("premium-icon-reddit") -@Description("Unlocks premium Reddit app icons.") +@Name("Premium icon") +@Description("Unlocks premium icons.") @RedditCompatibility @Version("0.0.1") class PremiumIconPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/screenshotpopup/patch/ScreenshotPopupPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/screenshotpopup/patch/ScreenshotPopupPatch.kt index 7f4a588dc..7006b2372 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/screenshotpopup/patch/ScreenshotPopupPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/layout/screenshotpopup/patch/ScreenshotPopupPatch.kt @@ -20,7 +20,7 @@ import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsBytecod import app.revanced.patches.reddit.utils.settings.resource.patch.SettingsPatch @Patch -@Name("disable-screenshot-popup") +@Name("Disable screenshot popup") @Description("Disables the popup that shows up when taking a screenshot.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/patch/OpenLinksDirectlyPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/patch/OpenLinksDirectlyPatch.kt index 9e4bb97ee..9292bfc55 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/patch/OpenLinksDirectlyPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/patch/OpenLinksDirectlyPatch.kt @@ -17,7 +17,7 @@ import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsBytecod import app.revanced.patches.reddit.utils.settings.resource.patch.SettingsPatch @Patch -@Name("open-links-directly") +@Name("Open links directly") @Description("Skips over redirection URLs to external links.") @DependsOn([SettingsPatch::class]) @RedditCompatibility diff --git a/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/patch/OpenLinksExternallyPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/patch/OpenLinksExternallyPatch.kt index 009c851ef..5c4d9d40e 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/patch/OpenLinksExternallyPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/patch/OpenLinksExternallyPatch.kt @@ -20,7 +20,7 @@ import app.revanced.patches.reddit.utils.settings.resource.patch.SettingsPatch import app.revanced.util.bytecode.getStringIndex @Patch -@Name("open-links-externally") +@Name("Open links externally") @Description("Open links outside of the app directly in your browser.") @DependsOn([SettingsPatch::class]) @RedditCompatibility diff --git a/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/patch/SanitizeUrlQueryPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/patch/SanitizeUrlQueryPatch.kt index 93ae561fa..fe68369dc 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/patch/SanitizeUrlQueryPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/patch/SanitizeUrlQueryPatch.kt @@ -19,7 +19,7 @@ import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsBytecod import app.revanced.patches.reddit.utils.settings.resource.patch.SettingsPatch @Patch -@Name("sanitize-sharing-links") +@Name("Sanitize sharing links") @Description("Removes (tracking) query parameters from the URLs when sharing links.") @DependsOn([SettingsPatch::class]) @RedditCompatibility diff --git a/src/main/kotlin/app/revanced/patches/reddit/utils/integrations/patch/IntegrationsPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/utils/integrations/patch/IntegrationsPatch.kt index 0715e2919..d46607698 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/utils/integrations/patch/IntegrationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/utils/integrations/patch/IntegrationsPatch.kt @@ -1,13 +1,9 @@ package app.revanced.patches.reddit.utils.integrations.patch -import app.revanced.patcher.annotation.Name import app.revanced.patcher.patch.annotations.RequiresIntegrations -import app.revanced.patches.reddit.utils.annotations.RedditCompatibility import app.revanced.patches.reddit.utils.integrations.fingerprints.InitFingerprint import app.revanced.patches.shared.patch.integrations.AbstractIntegrationsPatch -@Name("integrations") -@RedditCompatibility @RequiresIntegrations class IntegrationsPatch : AbstractIntegrationsPatch( "Lapp/revanced/reddit/utils/ReVancedUtils;", diff --git a/src/main/kotlin/app/revanced/patches/reddit/utils/resourceid/patch/SharedResourceIdPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/utils/resourceid/patch/SharedResourceIdPatch.kt index 277d32c01..65328dcd7 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/utils/resourceid/patch/SharedResourceIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/utils/resourceid/patch/SharedResourceIdPatch.kt @@ -1,22 +1,16 @@ package app.revanced.patches.reddit.utils.resourceid.patch -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.PatchResultError import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patches.reddit.utils.annotations.RedditCompatibility import app.revanced.patches.shared.patch.mapping.ResourceMappingPatch import app.revanced.util.enum.ResourceType import app.revanced.util.enum.ResourceType.STRING -@Name("reddit-resource-id") @DependsOn([ResourceMappingPatch::class]) -@RedditCompatibility -@Version("0.0.1") class SharedResourceIdPatch : ResourcePatch { internal companion object { var ScreenShotShareBanner: Long = -1 diff --git a/src/main/kotlin/app/revanced/patches/reddit/utils/settings/bytecode/patch/SettingsBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/reddit/utils/settings/bytecode/patch/SettingsBytecodePatch.kt index 28265114e..cb37ab173 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/utils/settings/bytecode/patch/SettingsBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/utils/settings/bytecode/patch/SettingsBytecodePatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.reddit.utils.settings.bytecode.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -10,14 +8,10 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod -import app.revanced.patches.reddit.utils.annotations.RedditCompatibility import app.revanced.patches.reddit.utils.settings.bytecode.fingerprints.OssLicensesMenuActivityOnCreateFingerprint import app.revanced.patches.reddit.utils.settings.bytecode.fingerprints.SettingsStatusLoadFingerprint import kotlin.properties.Delegates -@Name("settings-bytecode-patch") -@RedditCompatibility -@Version("0.0.1") class SettingsBytecodePatch : BytecodePatch( listOf( OssLicensesMenuActivityOnCreateFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/reddit/utils/settings/resource/patch/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/utils/settings/resource/patch/SettingsPatch.kt index 5b0e56e59..6cc431691 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/utils/settings/resource/patch/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/utils/settings/resource/patch/SettingsPatch.kt @@ -21,7 +21,7 @@ import java.nio.file.Files import kotlin.io.path.exists @Patch -@Name("reddit-settings") +@Name("Reddit settings") @Description("Adds ReVanced settings to Reddit.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/shared/patch/ads/AbstractAdsPatch.kt b/src/main/kotlin/app/revanced/patches/shared/patch/ads/AbstractAdsPatch.kt index bc81cd3af..77bd35433 100644 --- a/src/main/kotlin/app/revanced/patches/shared/patch/ads/AbstractAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/patch/ads/AbstractAdsPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.shared.patch.ads import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -16,8 +14,6 @@ import app.revanced.patcher.util.smali.ExternalLabel import app.revanced.patches.shared.fingerprints.ads.LegacyAdsFingerprint import app.revanced.patches.shared.fingerprints.ads.MainstreamAdsFingerprint -@Name("abstract-ads-patch") -@Version("0.0.1") abstract class AbstractAdsPatch( private val descriptor: String ) : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/shared/patch/litho/ComponentParserPatch.kt b/src/main/kotlin/app/revanced/patches/shared/patch/litho/ComponentParserPatch.kt index 8e29bf5e9..06bfb7abb 100644 --- a/src/main/kotlin/app/revanced/patches/shared/patch/litho/ComponentParserPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/patch/litho/ComponentParserPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.shared.patch.litho import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -15,7 +13,6 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.proxy.mutableTypes.MutableField.Companion.toMutable import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patcher.util.smali.ExternalLabel -import app.revanced.patches.shared.annotation.RVXCompatibility import app.revanced.patches.shared.fingerprints.litho.ByteBufferHookFingerprint import app.revanced.patches.shared.fingerprints.litho.EmptyComponentBuilderFingerprint import app.revanced.patches.shared.fingerprints.litho.IdentifierFingerprint @@ -30,9 +27,6 @@ import org.jf.dexlib2.iface.reference.FieldReference import org.jf.dexlib2.immutable.ImmutableField import kotlin.properties.Delegates -@Name("component-parser-patch") -@RVXCompatibility -@Version("0.0.1") class ComponentParserPatch : BytecodePatch( listOf( ByteBufferHookFingerprint, @@ -45,7 +39,8 @@ class ComponentParserPatch : BytecodePatch( EmptyComponentBuilderFingerprint.result?.let { it.mutableMethod.apply { val byteBufferClassIndex = it.scanResult.patternScanResult!!.startIndex - byteBufferClassLabel = getInstruction(byteBufferClassIndex).reference.toString() + byteBufferClassLabel = + getInstruction(byteBufferClassIndex).reference.toString() val targetIndex = getStringIndex("Failed to convert Element to Flatbuffers: %s") + 2 val builderMethodDescriptor = @@ -183,7 +178,8 @@ class ComponentParserPatch : BytecodePatch( invoke-static {v$stringBuilderRegister, v$identifierRegister, v$objectRegister, v$freeRegister}, $descriptor(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/Object;Ljava/nio/ByteBuffer;)Z move-result v$freeRegister if-eqz v$freeRegister, :unfiltered - """ + emptyComponentLabel, ExternalLabel("unfiltered", getInstruction(insertIndex)) + """ + emptyComponentLabel, + ExternalLabel("unfiltered", getInstruction(insertIndex)) ) } } diff --git a/src/main/kotlin/app/revanced/patches/shared/patch/mapping/ResourceMappingPatch.kt b/src/main/kotlin/app/revanced/patches/shared/patch/mapping/ResourceMappingPatch.kt index 0e6e1e76f..86869befe 100644 --- a/src/main/kotlin/app/revanced/patches/shared/patch/mapping/ResourceMappingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/patch/mapping/ResourceMappingPatch.kt @@ -1,8 +1,5 @@ package app.revanced.patches.shared.patch.mapping -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 @@ -12,9 +9,6 @@ import java.util.Collections import java.util.concurrent.Executors import java.util.concurrent.TimeUnit -@Name("resource-mapping") -@Description("Creates a map of public resources.") -@Version("0.0.1") class ResourceMappingPatch : ResourcePatch { companion object { internal lateinit var resourceMappings: List diff --git a/src/main/kotlin/app/revanced/patches/shared/patch/opus/AbstractOpusCodecsPatch.kt b/src/main/kotlin/app/revanced/patches/shared/patch/opus/AbstractOpusCodecsPatch.kt index 5de352c1a..a59f44d10 100644 --- a/src/main/kotlin/app/revanced/patches/shared/patch/opus/AbstractOpusCodecsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/patch/opus/AbstractOpusCodecsPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.shared.patch.opus import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -18,8 +16,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.reference.Reference -@Name("abstract-opus-codec") -@Version("0.0.1") abstract class AbstractOpusCodecsPatch( private val descriptor: String ) : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/shared/patch/packagename/PackageNamePatch.kt b/src/main/kotlin/app/revanced/patches/shared/patch/packagename/PackageNamePatch.kt index cb3a3988e..f782b08d7 100644 --- a/src/main/kotlin/app/revanced/patches/shared/patch/packagename/PackageNamePatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/patch/packagename/PackageNamePatch.kt @@ -13,7 +13,7 @@ import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.shared.annotation.RVXCompatibility @Patch -@Name("custom-package-name") +@Name("Custom package name") @Description("Specifies the package name for YouTube and YT Music in the MicroG build.") @RVXCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/shared/patch/versionspoof/AbstractVersionSpoofPatch.kt b/src/main/kotlin/app/revanced/patches/shared/patch/versionspoof/AbstractVersionSpoofPatch.kt index 505380b61..3d8fbf62e 100644 --- a/src/main/kotlin/app/revanced/patches/shared/patch/versionspoof/AbstractVersionSpoofPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/patch/versionspoof/AbstractVersionSpoofPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.shared.patch.versionspoof import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve @@ -16,8 +14,6 @@ import org.jf.dexlib2.dexbacked.reference.DexBackedFieldReference import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction -@Name("abstract-version-spoof") -@Version("0.0.1") abstract class AbstractVersionSpoofPatch( private val descriptor: String ) : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/ads/general/bytecode/patch/GeneralAdsBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ads/general/bytecode/patch/GeneralAdsBytecodePatch.kt index f2bef1be5..26f0ec16d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ads/general/bytecode/patch/GeneralAdsBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ads/general/bytecode/patch/GeneralAdsBytecodePatch.kt @@ -2,8 +2,6 @@ package app.revanced.patches.youtube.ads.general.bytecode.patch import app.revanced.extensions.findMutableMethodOf import app.revanced.extensions.injectHideCall -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.patch.BytecodePatch @@ -16,9 +14,7 @@ import app.revanced.util.bytecode.getWideLiteralIndex import app.revanced.util.bytecode.isWideLiteralExists import org.jf.dexlib2.iface.instruction.formats.Instruction35c -@Name("hide-general-ads-bytecode-patch") @DependsOn([SharedResourceIdPatch::class]) -@Version("0.0.1") @Suppress("LABEL_NAME_CLASH") class GeneralAdsBytecodePatch : BytecodePatch() { override fun execute(context: BytecodeContext): PatchResult { diff --git a/src/main/kotlin/app/revanced/patches/youtube/ads/general/resource/patch/GeneralAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ads/general/resource/patch/GeneralAdsPatch.kt index 15aa5e2ac..59c3913e9 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ads/general/resource/patch/GeneralAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ads/general/resource/patch/GeneralAdsPatch.kt @@ -23,8 +23,8 @@ import app.revanced.util.resources.ResourceUtils.copyXmlNode import org.w3c.dom.Element @Patch -@Name("hide-general-ads") -@Description("Removes general ads.") +@Name("Hide general ads") +@Description("Hides general ads.") @DependsOn( [ DoubleBackToClosePatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/ads/getpremium/patch/HideGetPremiumPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ads/getpremium/patch/HideGetPremiumPatch.kt index 72e534ac9..edd051873 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ads/getpremium/patch/HideGetPremiumPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ads/getpremium/patch/HideGetPremiumPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.ads.getpremium.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -14,8 +12,6 @@ import app.revanced.patches.youtube.ads.getpremium.fingerprints.CompactYpcOfferM import app.revanced.util.integrations.Constants.PATCHES_PATH import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction -@Name("hide-get-premium") -@Version("0.0.1") class HideGetPremiumPatch : BytecodePatch( listOf(CompactYpcOfferModuleViewFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/ads/video/patch/VideoAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ads/video/patch/VideoAdsPatch.kt index 05c79dac7..99048cb99 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ads/video/patch/VideoAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ads/video/patch/VideoAdsPatch.kt @@ -14,8 +14,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.ADS_PATH @Patch -@Name("hide-video-ads") -@Description("Removes ads in the video player.") +@Name("Hide video ads") +@Description("Hides ads in the video player.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/youtube/buttomplayer/buttoncontainer/patch/ButtonContainerPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/buttomplayer/buttoncontainer/patch/ButtonContainerPatch.kt index 34aaea812..c1fe4224e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/buttomplayer/buttoncontainer/patch/ButtonContainerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/buttomplayer/buttoncontainer/patch/ButtonContainerPatch.kt @@ -16,7 +16,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch. import app.revanced.util.integrations.Constants.PATCHES_PATH @Patch -@Name("hide-button-container") +@Name("Hide button container") @Description("Adds the options to hide action buttons under a video.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/buttomplayer/comment/patch/CommentComponentPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/buttomplayer/comment/patch/CommentComponentPatch.kt index c5ec732ee..164f7e8b7 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/buttomplayer/comment/patch/CommentComponentPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/buttomplayer/comment/patch/CommentComponentPatch.kt @@ -16,7 +16,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.PATCHES_PATH @Patch -@Name("hide-comment-component") +@Name("Hide comment component") @Description("Hides components related to comments.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/feed/patch/FeedFlyoutPanelPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/feed/patch/FeedFlyoutPanelPatch.kt index db304cd1d..3954c799f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/feed/patch/FeedFlyoutPanelPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/feed/patch/FeedFlyoutPanelPatch.kt @@ -21,7 +21,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Patch -@Name("hide-feed-flyout-panel") +@Name("Hide feed flyout panel") @Description("Hides feed flyout panel components.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/oldqualitylayout/patch/OldQualityLayoutPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/oldqualitylayout/patch/OldQualityLayoutPatch.kt index c21514c81..2fc9d2850 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/oldqualitylayout/patch/OldQualityLayoutPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/oldqualitylayout/patch/OldQualityLayoutPatch.kt @@ -23,7 +23,7 @@ import app.revanced.util.integrations.Constants.FLYOUT_PANEL import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-old-quality-layout") +@Name("Enable old quality layout") @Description("Enables the original quality flyout menu.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/oldspeedlayout/patch/OldSpeedLayoutPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/oldspeedlayout/patch/OldSpeedLayoutPatch.kt index c1384341f..a0b65ba02 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/oldspeedlayout/patch/OldSpeedLayoutPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/oldspeedlayout/patch/OldSpeedLayoutPatch.kt @@ -1,9 +1,6 @@ package app.revanced.patches.youtube.flyoutpanel.oldspeedlayout.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -25,10 +22,7 @@ import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.immutable.ImmutableField -@Name("enable-old-speed-layout") -@Description("Enables the original speed flyout menu.") @DependsOn([LithoFilterPatch::class]) -@Version("0.0.1") class OldSpeedLayoutPatch : BytecodePatch( listOf( FlyoutPanelPatchFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/player/patch/PlayerFlyoutPanelPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/player/patch/PlayerFlyoutPanelPatch.kt index 5d473fc63..ed222191a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/player/patch/PlayerFlyoutPanelPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/flyoutpanel/player/patch/PlayerFlyoutPanelPatch.kt @@ -15,7 +15,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.PATCHES_PATH @Patch -@Name("hide-player-flyout-panel") +@Name("Hide player flyout panel") @Description("Hides player flyout panel components.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/autoplaypreview/patch/HideAutoplayPreviewPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/autoplaypreview/patch/HideAutoplayPreviewPatch.kt index 26ca630dd..83ccecd83 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/autoplaypreview/patch/HideAutoplayPreviewPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/autoplaypreview/patch/HideAutoplayPreviewPatch.kt @@ -25,7 +25,7 @@ import app.revanced.util.integrations.Constants.FULLSCREEN import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-autoplay-preview") +@Name("Hide autoplay preview") @Description("Hides the autoplay preview container in the fullscreen.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/compactcontrolsoverlay/patch/CompactControlsOverlayPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/compactcontrolsoverlay/patch/CompactControlsOverlayPatch.kt index 372936224..f813144ab 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/compactcontrolsoverlay/patch/CompactControlsOverlayPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/compactcontrolsoverlay/patch/CompactControlsOverlayPatch.kt @@ -22,8 +22,8 @@ import app.revanced.util.integrations.Constants.FULLSCREEN import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-compact-controls-overlay") -@Description("Enable compact control overlay.") +@Name("Enable compact controls overlay") +@Description("Enables compact control overlay.") @DependsOn( [ SettingsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/endscreenoverlay/patch/HideEndScreenOverlayPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/endscreenoverlay/patch/HideEndScreenOverlayPatch.kt index fe3a83cba..c812e15cb 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/endscreenoverlay/patch/HideEndScreenOverlayPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/endscreenoverlay/patch/HideEndScreenOverlayPatch.kt @@ -20,8 +20,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.FULLSCREEN @Patch -@Name("hide-endscreen-overlay") -@Description("Hide endscreen overlay on swipe controls.") +@Name("Hide end screen overlay") +@Description("Hide end screen overlay on swipe controls.") @DependsOn( [ SettingsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/fullscreenpanels/patch/HideFullscreenPanelsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/fullscreenpanels/patch/HideFullscreenPanelsPatch.kt index f6d10769e..3a6b37b9a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/fullscreenpanels/patch/HideFullscreenPanelsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/fullscreenpanels/patch/HideFullscreenPanelsPatch.kt @@ -33,7 +33,7 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.instruction.formats.Instruction35c @Patch -@Name("hide-fullscreen-panels") +@Name("Hide fullscreen panels") @Description("Hides video description and comments panel in fullscreen view.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/landscapemode/patch/LandScapeModePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/landscapemode/patch/LandScapeModePatch.kt index 9fcc05edf..4b844004f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/landscapemode/patch/LandScapeModePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/landscapemode/patch/LandScapeModePatch.kt @@ -23,7 +23,7 @@ import app.revanced.util.integrations.Constants.FULLSCREEN import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch(false) -@Name("disable-landscape-mode") +@Name("Disable landscape mode") @Description("Disable landscape mode when entering fullscreen.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/quickactions/patch/QuickActionsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/quickactions/patch/QuickActionsPatch.kt index 58e1ac3d6..cd4fe2478 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/fullscreen/quickactions/patch/QuickActionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/fullscreen/quickactions/patch/QuickActionsPatch.kt @@ -16,7 +16,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.PATCHES_PATH @Patch -@Name("hide-quick-actions") +@Name("Hide quick actions") @Description("Adds the options to hide quick actions components in the fullscreen.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/accountmenu/patch/AccountMenuPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/accountmenu/patch/AccountMenuPatch.kt index f6db22e75..16addadae 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/accountmenu/patch/AccountMenuPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/accountmenu/patch/AccountMenuPatch.kt @@ -22,7 +22,7 @@ import app.revanced.util.integrations.Constants.GENERAL import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-account-menu") +@Name("Hide account menu") @Description("Hide account menu elements.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/autocaptions/patch/AutoCaptionsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/autocaptions/patch/AutoCaptionsPatch.kt index 23bf34b32..b827ba854 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/autocaptions/patch/AutoCaptionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/autocaptions/patch/AutoCaptionsPatch.kt @@ -25,7 +25,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.GENERAL @Patch -@Name("disable-auto-captions") +@Name("Disable auto captions") @Description("Disables forced auto captions.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/autopopuppanels/patch/PlayerPopupPanelsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/autopopuppanels/patch/PlayerPopupPanelsPatch.kt index 95ae889cf..3cf9a2d14 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/autopopuppanels/patch/PlayerPopupPanelsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/autopopuppanels/patch/PlayerPopupPanelsPatch.kt @@ -19,7 +19,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.GENERAL @Patch -@Name("hide-auto-player-popup-panels") +@Name("Hide auto player popup panels") @Description("Hide automatic popup panels (playlist or live chat) on video player.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/categorybar/patch/CategoryBarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/categorybar/patch/CategoryBarPatch.kt index d99fcbbda..67990c6a3 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/categorybar/patch/CategoryBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/categorybar/patch/CategoryBarPatch.kt @@ -24,8 +24,8 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-category-bar") -@Description("Hide the category bar at the top of the feed and at the top of related videos.") +@Name("Hide category bar") +@Description("Hides the category bar in video feeds.") @DependsOn( [ SettingsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/channellistsubmenu/patch/ChannelListSubMenuPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/channellistsubmenu/patch/ChannelListSubMenuPatch.kt index 28785e973..659d6286d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/channellistsubmenu/patch/ChannelListSubMenuPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/channellistsubmenu/patch/ChannelListSubMenuPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.GENERAL import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-channel-avatar-section") +@Name("Hide channel avatar section") @Description("Hides the channel avatar section of the subscription feed.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/crowdfundingbox/patch/CrowdfundingBoxPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/crowdfundingbox/patch/CrowdfundingBoxPatch.kt index e427fcf5f..ad693b6be 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/crowdfundingbox/patch/CrowdfundingBoxPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/crowdfundingbox/patch/CrowdfundingBoxPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.GENERAL import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-crowdfunding-box") +@Name("Hide crowdfunding box") @Description("Hides the crowdfunding box between the player and video description.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/descriptions/patch/DescriptionComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/descriptions/patch/DescriptionComponentsPatch.kt index 130e6ee9d..d3e624a6e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/descriptions/patch/DescriptionComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/descriptions/patch/DescriptionComponentsPatch.kt @@ -16,7 +16,7 @@ import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus import app.revanced.util.integrations.Constants.PATCHES_PATH @Patch -@Name("hide-description-components") +@Name("Hide description components") @Description("Hides description components.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/floatingmicrophone/patch/FloatingMicrophonePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/floatingmicrophone/patch/FloatingMicrophonePatch.kt index f4e65ff2e..9a1796765 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/floatingmicrophone/patch/FloatingMicrophonePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/floatingmicrophone/patch/FloatingMicrophonePatch.kt @@ -20,8 +20,8 @@ import app.revanced.util.integrations.Constants.GENERAL import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-floating-microphone") -@Description("Hide the floating microphone button above the keyboard.") +@Name("Hide floating microphone") +@Description("Hides the floating microphone button which appears in search.") @DependsOn( [ SettingsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/headerswitch/patch/HeaderSwitchPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/headerswitch/patch/HeaderSwitchPatch.kt index 3c7e78d03..05a4518fa 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/headerswitch/patch/HeaderSwitchPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/headerswitch/patch/HeaderSwitchPatch.kt @@ -22,7 +22,7 @@ import app.revanced.util.integrations.Constants.GENERAL import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("header-switch") +@Name("Header switch") @Description("Add switch to change header.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/layout/patch/LayoutComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/layout/patch/LayoutComponentsPatch.kt index 77723839b..8a8fee743 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/layout/patch/LayoutComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/layout/patch/LayoutComponentsPatch.kt @@ -16,7 +16,7 @@ import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus import app.revanced.util.integrations.Constants.PATCHES_PATH @Patch -@Name("hide-layout-components") +@Name("Hide layout components") @Description("Hides general layout components.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/loadmorebutton/patch/LoadMoreButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/loadmorebutton/patch/LoadMoreButtonPatch.kt index 891d62cb8..f5fc43fb9 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/loadmorebutton/patch/LoadMoreButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/loadmorebutton/patch/LoadMoreButtonPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.GENERAL import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-load-more-button") +@Name("Hide load more button") @Description("Hides the button under videos that loads similar videos.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/mixplaylists/patch/MixPlaylistsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/mixplaylists/patch/MixPlaylistsPatch.kt index 864390d27..052138a3e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/mixplaylists/patch/MixPlaylistsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/mixplaylists/patch/MixPlaylistsPatch.kt @@ -25,8 +25,8 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-mix-playlists") -@Description("Removes mix playlists from home feed and video player.") +@Name("Hide mix playlists") +@Description("Hides mix playlists from home feed and video player.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/personalinformation/patch/HideEmailAddressPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/personalinformation/patch/HideEmailAddressPatch.kt index 4a5162c88..e93cda417 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/personalinformation/patch/HideEmailAddressPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/personalinformation/patch/HideEmailAddressPatch.kt @@ -19,8 +19,8 @@ import app.revanced.util.integrations.Constants.GENERAL import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-email-address") -@Description("Hides the email address(handle) in the account switcher.") +@Name("Hide handle") +@Description("Hides the handle in the account switcher.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/snackbar/patch/HideSnackBarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/snackbar/patch/HideSnackBarPatch.kt index 0c9ba4ae2..6fcc39027 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/snackbar/patch/HideSnackBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/snackbar/patch/HideSnackBarPatch.kt @@ -19,7 +19,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.GENERAL @Patch -@Name("hide-snack-bar") +@Name("Hide snack bar") @Description("Hides the snack bar action popup.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/suggestions/patch/SuggestionsShelfPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/suggestions/patch/SuggestionsShelfPatch.kt index 35a5b026d..940a1eaad 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/suggestions/patch/SuggestionsShelfPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/suggestions/patch/SuggestionsShelfPatch.kt @@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.GENERAL import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-suggestions-shelf") +@Name("Hide suggestions shelf") @Description("Hides the suggestions shelf.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/tabletminiplayer/patch/TabletMiniPlayerPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/tabletminiplayer/patch/TabletMiniPlayerPatch.kt index f4847bf0f..b863d2cd9 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/tabletminiplayer/patch/TabletMiniPlayerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/tabletminiplayer/patch/TabletMiniPlayerPatch.kt @@ -29,7 +29,7 @@ import org.jf.dexlib2.Opcode import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-tablet-mini-player") +@Name("Enable tablet mini player") @Description("Enables the tablet mini player layout.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/trendingsearches/patch/TrendingSearchesPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/trendingsearches/patch/TrendingSearchesPatch.kt index ccf29d555..10342807e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/trendingsearches/patch/TrendingSearchesPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/trendingsearches/patch/TrendingSearchesPatch.kt @@ -25,7 +25,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-trending-searches") +@Name("Hide trending searches") @Description("Hide trending searches in the search bar.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/widesearchbar/patch/WideSearchBarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/widesearchbar/patch/WideSearchBarPatch.kt index 68baf4d5a..8242d9a12 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/widesearchbar/patch/WideSearchBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/widesearchbar/patch/WideSearchBarPatch.kt @@ -23,7 +23,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch. import app.revanced.util.integrations.Constants.GENERAL @Patch -@Name("enable-wide-search-bar") +@Name("Enable wide search bar") @Description("Replaces the search icon with a wide search bar. This will hide the YouTube logo when active.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt index d0ddec8d3..30b5da3e1 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt @@ -15,7 +15,7 @@ import app.revanced.util.resources.IconHelper.customIcon import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon @Patch(false) -@Name("custom-branding-icon-mmt") +@Name("Custom branding icon MMT") @Description("Changes the YouTube launcher icon to MMT.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt index fc8b45953..d5081336f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconRevancifyBluePatch.kt @@ -15,7 +15,7 @@ import app.revanced.util.resources.IconHelper.customIcon import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon @Patch -@Name("custom-branding-icon-revancify-blue") +@Name("Custom branding icon Revancify blue") @Description("Changes the YouTube launcher icon to Revancify Blue.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt index 6558f2db8..e265f6d42 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt @@ -15,7 +15,7 @@ import app.revanced.util.resources.IconHelper.customIcon import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon @Patch(false) -@Name("custom-branding-icon-revancify-red") +@Name("Custom branding icon Revancify red") @Description("Changes the YouTube launcher icon to Revancify Red.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/name/patch/CustomBrandingNamePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/name/patch/CustomBrandingNamePatch.kt index 38047b7fb..a320d99dc 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/name/patch/CustomBrandingNamePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/name/patch/CustomBrandingNamePatch.kt @@ -18,7 +18,7 @@ import app.revanced.util.resources.ResourceHelper.updatePatchStatusLabel import org.w3c.dom.Element @Patch -@Name("custom-branding-youtube-name") +@Name("Custom branding YouTube name") @Description("Rename the YouTube app to the name specified in options.json.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/doubletapbackground/patch/DoubleTapOverlayBackgroundPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/doubletapbackground/patch/DoubleTapOverlayBackgroundPatch.kt index 4fc345f02..751ecd15b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/doubletapbackground/patch/DoubleTapOverlayBackgroundPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/doubletapbackground/patch/DoubleTapOverlayBackgroundPatch.kt @@ -13,8 +13,8 @@ import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch @Patch(false) -@Name("hide-double-tap-overlay-filter") -@Description("Remove the double tap dark filter layer.") +@Name("Hide double tap overlay filter") +@Description("Hides the double tap dark filter layer.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/doubletaplength/patch/DoubleTapLengthPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/doubletaplength/patch/DoubleTapLengthPatch.kt index 38fdcbd26..050aeacaa 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/doubletaplength/patch/DoubleTapLengthPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/doubletaplength/patch/DoubleTapLengthPatch.kt @@ -19,7 +19,7 @@ import app.revanced.util.resources.ResourceUtils import app.revanced.util.resources.ResourceUtils.copyResources @Patch -@Name("custom-double-tap-length") +@Name("Custom double tap length") @Description("Add 'double-tap to seek' value.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/forcebackground/patch/PlayerButtonBackgroundPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/forcebackground/patch/PlayerButtonBackgroundPatch.kt index 66be23553..24fbbf131 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/forcebackground/patch/PlayerButtonBackgroundPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/forcebackground/patch/PlayerButtonBackgroundPatch.kt @@ -15,8 +15,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import org.w3c.dom.Element @Patch(false) -@Name("force-hide-player-button-background") -@Description("Force removes the background from the video player buttons.") +@Name("Force hide player button background") +@Description("Force hides the background from the video player buttons.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/forceheader/patch/PremiumHeadingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/forceheader/patch/PremiumHeadingPatch.kt index f48c8e560..2816deafd 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/forceheader/patch/PremiumHeadingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/forceheader/patch/PremiumHeadingPatch.kt @@ -17,8 +17,8 @@ import java.nio.file.StandardCopyOption import kotlin.io.path.exists @Patch(false) -@Name("force-premium-heading") -@Description("Forces premium heading on the home screen.") +@Name("Force premium heading") +@Description("Forces premium heading on the homepage.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/materialyou/patch/MaterialYouPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/materialyou/patch/MaterialYouPatch.kt index fdd30b495..c9276c645 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/materialyou/patch/MaterialYouPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/materialyou/patch/MaterialYouPatch.kt @@ -19,7 +19,7 @@ import app.revanced.util.resources.ResourceUtils.copyResources import app.revanced.util.resources.ResourceUtils.copyXmlNode @Patch(false) -@Name("materialyou") +@Name("MaterialYou") @Description("Enables MaterialYou theme for Android 12+") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/optimize/patch/OptimizeResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/optimize/patch/OptimizeResourcePatch.kt index d076635cf..d8e580df5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/optimize/patch/OptimizeResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/optimize/patch/OptimizeResourcePatch.kt @@ -13,14 +13,14 @@ import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch @Patch -@Name("optimize-resource") +@Name("Optimize resource") +@Description("Removes duplicate resources from YouTube.") @DependsOn( [ RedundantResourcePatch::class, SettingsPatch::class ] ) -@Description("Removes duplicate resources from YouTube.") @YouTubeCompatibility @Version("0.0.1") class OptimizeResourcePatch : ResourcePatch { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/optimize/patch/RedundantResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/optimize/patch/RedundantResourcePatch.kt index d5a2a86af..9ae355f9d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/optimize/patch/RedundantResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/optimize/patch/RedundantResourcePatch.kt @@ -1,13 +1,9 @@ package app.revanced.patches.youtube.layout.optimize.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.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.util.resources.ResourceUtils import app.revanced.util.resources.ResourceUtils.copyResources import java.io.File @@ -15,10 +11,6 @@ import java.nio.file.Files import java.nio.file.Path import java.nio.file.StandardCopyOption -@Name("remove-duplicate-resource-patch") -@Description("Removes duplicate resources from YouTube.") -@YouTubeCompatibility -@Version("0.0.1") class RedundantResourcePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/pipnotification/patch/PiPNotificationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/pipnotification/patch/PiPNotificationPatch.kt index 0bf1d8b44..2601ad36c 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/pipnotification/patch/PiPNotificationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/pipnotification/patch/PiPNotificationPatch.kt @@ -17,7 +17,7 @@ import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch @Patch -@Name("hide-pip-notification") +@Name("Disable pip notification") @Description("Disable pip notification when you first launch pip mode.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/splashanimation/patch/AddSplashAnimationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/splashanimation/patch/AddSplashAnimationPatch.kt index 02092d0cb..185aa7e4c 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/splashanimation/patch/AddSplashAnimationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/splashanimation/patch/AddSplashAnimationPatch.kt @@ -15,7 +15,7 @@ import app.revanced.util.resources.ResourceUtils.copyXmlNode import kotlin.io.path.exists @Patch(false) -@Name("add-splash-animation") +@Name("Add splash animation") @Description("Adds splash animation, which was removed in YT v18.19.36+. This patch cannot be used with 'custom-branding-icon' patch") @YouTubeCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/GeneralThemePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/GeneralThemePatch.kt index 19267a19a..09934fa0d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/GeneralThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/GeneralThemePatch.kt @@ -1,7 +1,5 @@ package app.revanced.patches.youtube.layout.theme.patch -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 @@ -11,9 +9,7 @@ import app.revanced.patches.youtube.utils.litho.patch.LithoThemePatch import app.revanced.util.integrations.Constants.UTILS_PATH import org.w3c.dom.Element -@Name("general-theme-patch") @DependsOn([LithoThemePatch::class]) -@Version("0.0.1") class GeneralThemePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt index 728656a80..0c3fce787 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt @@ -18,7 +18,7 @@ import app.revanced.util.resources.ResourceHelper.updatePatchStatusTheme import org.w3c.dom.Element @Patch -@Name("theme") +@Name("Theme") @Description("Change the app's theme to the values specified in options.json.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/tooltip/patch/TooltipContentViewPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/tooltip/patch/TooltipContentViewPatch.kt index 905878b30..f5f2d8684 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/tooltip/patch/TooltipContentViewPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/tooltip/patch/TooltipContentViewPatch.kt @@ -17,7 +17,7 @@ import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch @Patch -@Name("hide-tooltip-content") +@Name("Hide tooltip content") @Description("Hides the tooltip box that appears on first install.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/ambientmode/patch/PowerSaveModePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/ambientmode/patch/PowerSaveModePatch.kt index d6ea5fc68..9c3677377 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/ambientmode/patch/PowerSaveModePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/ambientmode/patch/PowerSaveModePatch.kt @@ -23,7 +23,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c import org.jf.dexlib2.iface.reference.MethodReference @Patch -@Name("bypass-ambient-mode-restrictions") +@Name("Bypass ambient mode restrictions") @Description("Bypass ambient mode restrictions in battery saver mode.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt index 770729167..40de298ed 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt @@ -13,7 +13,7 @@ import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch @Patch(false) -@Name("enable-debug-logging") +@Name("Enable debug logging") @Description("Adds debugging options.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/externalbrowser/patch/ExternalBrowserPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/externalbrowser/patch/ExternalBrowserPatch.kt index e4f159eeb..7cde856ec 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/externalbrowser/patch/ExternalBrowserPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/externalbrowser/patch/ExternalBrowserPatch.kt @@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-external-browser") +@Name("Enable external browser") @Description("Open url outside the app in an external browser.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/forceopus/patch/ForceOpusCodecPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/forceopus/patch/ForceOpusCodecPatch.kt index 4cb85ec79..c33f9c9f4 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/forceopus/patch/ForceOpusCodecPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/forceopus/patch/ForceOpusCodecPatch.kt @@ -14,8 +14,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.MISC_PATH @Patch -@Name("force-opus-codec") -@Description("Forces the opus codec for audios.") +@Name("Force OPUS codec") +@Description("Forces the OPUS codec for audios.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/forcevp9/patch/ForceVP9CodecPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/forcevp9/patch/ForceVP9CodecPatch.kt index 5e6c55121..98e6bbee3 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/forcevp9/patch/ForceVP9CodecPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/forcevp9/patch/ForceVP9CodecPatch.kt @@ -32,7 +32,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Patch -@Name("force-vp9-codec") +@Name("Force VP9 codec") @Description("Forces the VP9 codec for videos.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/language/patch/LanguageSelectorPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/language/patch/LanguageSelectorPatch.kt index 5b549d662..f20d1ec8b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/language/patch/LanguageSelectorPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/language/patch/LanguageSelectorPatch.kt @@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("language-switch") +@Name("Language switch") @Description("Add language switch toggle.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/layoutswitch/patch/LayoutSwitchPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/layoutswitch/patch/LayoutSwitchPatch.kt index 21ba37d63..43bd3492a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/layoutswitch/patch/LayoutSwitchPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/layoutswitch/patch/LayoutSwitchPatch.kt @@ -27,7 +27,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH import org.jf.dexlib2.Opcode @Patch -@Name("layout-switch") +@Name("Layout switch") @Description("Tricks the dpi to use some tablet/phone layouts.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt index 0d747d381..bf5328e5e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt @@ -26,7 +26,7 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.reference.MethodReference @Patch -@Name("enable-minimized-playback") +@Name("Enable minimized playback") @Description("Enables minimized and background playback.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/patch/OpenLinksDirectlyPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/patch/OpenLinksDirectlyPatch.kt index 46830a292..a7b61a25a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/patch/OpenLinksDirectlyPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/patch/OpenLinksDirectlyPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH import org.jf.dexlib2.iface.instruction.formats.Instruction35c @Patch -@Name("enable-open-links-directly") +@Name("Enable open links directly") @Description("Skips over redirection URLs to external links.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/quic/patch/QUICProtocolPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/quic/patch/QUICProtocolPatch.kt index 0d3792762..4c7a718ea 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/quic/patch/QUICProtocolPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/quic/patch/QUICProtocolPatch.kt @@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.MISC_PATH @Patch -@Name("disable-quic-protocol") +@Name("Disable QUIC protocol") @Description("Disable CronetEngine's QUIC protocol.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/splashanimation/patch/NewSplashAnimationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/splashanimation/patch/NewSplashAnimationPatch.kt index d0717224b..00d557709 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/splashanimation/patch/NewSplashAnimationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/splashanimation/patch/NewSplashAnimationPatch.kt @@ -21,7 +21,7 @@ import org.jf.dexlib2.Opcode import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-new-splash-animation") +@Name("Enable new splash animation") @Description("Enables a new type of splash animation on Android 12+ devices.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/patch/SpoofAppVersionPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/patch/SpoofAppVersionPatch.kt index fdc8dcf8e..4f02b6e7b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/patch/SpoofAppVersionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/patch/SpoofAppVersionPatch.kt @@ -16,7 +16,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH import app.revanced.util.resources.ResourceUtils.copyXmlNode @Patch -@Name("spoof-app-version") +@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.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/translations/patch/TranslationsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/translations/patch/TranslationsPatch.kt index 9565782c0..4a229a552 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/translations/patch/TranslationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/translations/patch/TranslationsPatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.resources.ResourceHelper.addTranslations @Patch -@Name("translations") +@Name("Translations") @Description("Add Crowdin translations for YouTube.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/navigation/homepage/patch/ChangeHomePagePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/navigation/homepage/patch/ChangeHomePagePatch.kt index 0d0568bc2..4474c3e4e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/navigation/homepage/patch/ChangeHomePagePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/navigation/homepage/patch/ChangeHomePagePatch.kt @@ -21,7 +21,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.NAVIGATION @Patch -@Name("change-homepage") +@Name("Change homepage") @Description("Change home page to subscription feed.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/navigation/label/patch/NavigationLabelPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/navigation/label/patch/NavigationLabelPatch.kt index 1a807ef15..3885a043e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/navigation/label/patch/NavigationLabelPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/navigation/label/patch/NavigationLabelPatch.kt @@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Patch -@Name("hide-navigation-label") +@Name("Hide navigation label") @Description("Hide navigation bar labels.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/navigation/navigationbuttons/patch/NavigationButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/navigation/navigationbuttons/patch/NavigationButtonsPatch.kt index 9178c8af9..2a39142f4 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/navigation/navigationbuttons/patch/NavigationButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/navigation/navigationbuttons/patch/NavigationButtonsPatch.kt @@ -27,7 +27,7 @@ import org.jf.dexlib2.Opcode import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-navigation-buttons") +@Name("Hide navigation buttons") @Description("Adds options to hide or change navigation buttons.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/navigation/tabletnavbar/patch/TabletNavigationBarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/navigation/tabletnavbar/patch/TabletNavigationBarPatch.kt index a50f6571d..f4d3d7ae6 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/navigation/tabletnavbar/patch/TabletNavigationBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/navigation/tabletnavbar/patch/TabletNavigationBarPatch.kt @@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.NAVIGATION import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-tablet-navigation-bar") +@Name("Enable tablet navigation bar") @Description("Enables the tablet navigation bar.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/alwaysrepeat/patch/AlwaysRepeatPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/alwaysrepeat/patch/AlwaysRepeatPatch.kt index e0af4045d..00ff3f85b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/alwaysrepeat/patch/AlwaysRepeatPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/alwaysrepeat/patch/AlwaysRepeatPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.overlaybutton.alwaysrepeat.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -18,16 +16,12 @@ import app.revanced.patcher.util.smali.ExternalLabel import app.revanced.patches.youtube.overlaybutton.alwaysrepeat.fingerprints.AutoNavInformerFingerprint import app.revanced.patches.youtube.overlaybutton.alwaysrepeat.fingerprints.VideoEndFingerprint import app.revanced.patches.youtube.overlaybutton.alwaysrepeat.fingerprints.VideoEndParentFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fingerprints.PlayerPatchFingerprint import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH import app.revanced.util.integrations.Constants.UTILS_PATH import app.revanced.util.integrations.Constants.VIDEO_PATH import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("always-repeat") -@YouTubeCompatibility -@Version("0.0.1") class AlwaysRepeatPatch : BytecodePatch( listOf( AutoNavInformerFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/downloadbuttonhook/patch/DownloadButtonHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/downloadbuttonhook/patch/DownloadButtonHookPatch.kt index a1ba362cc..008276382 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/downloadbuttonhook/patch/DownloadButtonHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/downloadbuttonhook/patch/DownloadButtonHookPatch.kt @@ -1,9 +1,6 @@ package app.revanced.patches.youtube.overlaybutton.downloadbuttonhook.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -12,13 +9,8 @@ import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.smali.ExternalLabel import app.revanced.patches.youtube.overlaybutton.downloadbuttonhook.fingerprints.DownloadActionsFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.util.integrations.Constants.UTILS_PATH -@Name("download-button-hook") -@Description("Replace download button with external download button.") -@YouTubeCompatibility -@Version("0.0.1") class DownloadButtonHookPatch : BytecodePatch( listOf(DownloadActionsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/general/patch/OverlayButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/general/patch/OverlayButtonsPatch.kt index 77f86c775..59e7a2300 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/general/patch/OverlayButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/overlaybutton/general/patch/OverlayButtonsPatch.kt @@ -27,7 +27,7 @@ import app.revanced.util.resources.ResourceUtils.copyXmlNode import org.w3c.dom.Element @Patch -@Name("overlay-buttons") +@Name("Overlay buttons") @Description("Add overlay buttons to the player.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/autoplaybutton/patch/HideAutoplayButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/autoplaybutton/patch/HideAutoplayButtonPatch.kt index 78396dc35..f62f13471 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/autoplaybutton/patch/HideAutoplayButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/autoplaybutton/patch/HideAutoplayButtonPatch.kt @@ -25,7 +25,7 @@ import app.revanced.util.integrations.Constants.PLAYER import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-autoplay-button") +@Name("Hide autoplay button") @Description("Hides the autoplay button in the video player.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/captionsbutton/patch/HideCaptionsButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/captionsbutton/patch/HideCaptionsButtonPatch.kt index 7238c4edc..75553b464 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/captionsbutton/patch/HideCaptionsButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/captionsbutton/patch/HideCaptionsButtonPatch.kt @@ -21,7 +21,7 @@ import org.jf.dexlib2.Opcode import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-captions-button") +@Name("Hide captions button") @Description("Hides the captions button in the video player.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/castbutton/patch/HideCastButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/castbutton/patch/HideCastButtonPatch.kt index 0c625384e..538b3d093 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/castbutton/patch/HideCastButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/castbutton/patch/HideCastButtonPatch.kt @@ -17,7 +17,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.PLAYER @Patch -@Name("hide-cast-button") +@Name("Hide cast button") @Description("Hides the cast button in the video player.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/collapsebutton/patch/HideCollapseButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/collapsebutton/patch/HideCollapseButtonPatch.kt index 42e2d5d32..9a5a30237 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/collapsebutton/patch/HideCollapseButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/collapsebutton/patch/HideCollapseButtonPatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonHookPat import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch @Patch -@Name("hide-collapse-button") +@Name("Hide collapse button") @Description("Hides the collapse button in the video player.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/endscreencards/patch/HideEndScreenCardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/endscreencards/patch/HideEndScreenCardsPatch.kt index 2e03f9422..f9c951ba9 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/endscreencards/patch/HideEndScreenCardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/endscreencards/patch/HideEndScreenCardsPatch.kt @@ -22,7 +22,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-endscreen-cards") +@Name("Hide end screen cards") @Description("Hides the suggested video cards at the end of a video in fullscreen.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/filmstripoverlay/patch/HideFilmstripOverlayPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/filmstripoverlay/patch/HideFilmstripOverlayPatch.kt index 50a7fe8cf..8a6b33b13 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/filmstripoverlay/patch/HideFilmstripOverlayPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/filmstripoverlay/patch/HideFilmstripOverlayPatch.kt @@ -11,7 +11,6 @@ import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult -import app.revanced.patcher.patch.PatchResultError import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch @@ -35,7 +34,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c import org.jf.dexlib2.iface.reference.MethodReference @Patch -@Name("hide-filmstrip-overlay") +@Name("Hide filmstrip overlay") @Description("Hide filmstrip overlay on swipe controls.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/patch/HapticFeedBackPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/patch/HapticFeedBackPatch.kt index 2a15b561c..10867f9d7 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/patch/HapticFeedBackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/patch/HapticFeedBackPatch.kt @@ -25,7 +25,7 @@ import app.revanced.util.integrations.Constants.PLAYER import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("disable-haptic-feedback") +@Name("Disable haptic feedback") @Description("Disable haptic feedback when swiping.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/infocards/patch/HideInfoCardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/infocards/patch/HideInfoCardsPatch.kt index 6e8982e65..ee320faeb 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/infocards/patch/HideInfoCardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/infocards/patch/HideInfoCardsPatch.kt @@ -19,7 +19,7 @@ import app.revanced.util.integrations.Constants.PLAYER import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-info-cards") +@Name("Hide info cards") @Description("Hides info-cards in videos.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/musicbutton/patch/HideMusicButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/musicbutton/patch/HideMusicButtonPatch.kt index 75c2363bd..2b3219900 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/musicbutton/patch/HideMusicButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/musicbutton/patch/HideMusicButtonPatch.kt @@ -20,7 +20,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.PLAYER @Patch -@Name("hide-music-button") +@Name("Hide music button") @Description("Hides the YouTube Music button in the video player.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/playerbuttonbg/patch/HidePlayerButtonBackgroundPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/playerbuttonbg/patch/HidePlayerButtonBackgroundPatch.kt index d5853b7cc..c83c2f614 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/playerbuttonbg/patch/HidePlayerButtonBackgroundPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/playerbuttonbg/patch/HidePlayerButtonBackgroundPatch.kt @@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH @Patch -@Name("hide-player-button-background") +@Name("Hide player button background") @Description("Hide player button background.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/playeroverlayfilter/patch/PlayerOverlayFilterPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/playeroverlayfilter/patch/PlayerOverlayFilterPatch.kt index d35937061..547f7f2b8 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/playeroverlayfilter/patch/PlayerOverlayFilterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/playeroverlayfilter/patch/PlayerOverlayFilterPatch.kt @@ -24,8 +24,8 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Patch -@Name("hide-player-overlay-filter") -@Description("Remove the dark filter layer from the player's background.") +@Name("Hide player overlay filter") +@Description("Hides the dark filter layer from the player's background.") @DependsOn( [ SettingsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/previousnextbutton/patch/HidePreviousNextButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/previousnextbutton/patch/HidePreviousNextButtonPatch.kt index 750c1140f..e4a080925 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/previousnextbutton/patch/HidePreviousNextButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/previousnextbutton/patch/HidePreviousNextButtonPatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonHookPat import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch @Patch -@Name("hide-previous-next-button") +@Name("Hide previous next button") @Description("Hides the previous and next button in the player controller.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/seekmessage/patch/SeekMessagePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/seekmessage/patch/SeekMessagePatch.kt index aa5089612..0a17e74bd 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/seekmessage/patch/SeekMessagePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/seekmessage/patch/SeekMessagePatch.kt @@ -20,7 +20,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.PLAYER @Patch -@Name("hide-seek-message") +@Name("Hide seek message") @Description("Hides the 'Slide left or right to seek' message container.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/speedoverlay/patch/HideSpeedOverlayPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/speedoverlay/patch/HideSpeedOverlayPatch.kt index 9c461cbb6..e07dc479f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/speedoverlay/patch/HideSpeedOverlayPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/speedoverlay/patch/HideSpeedOverlayPatch.kt @@ -19,7 +19,7 @@ import app.revanced.util.integrations.Constants.PLAYER import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-speed-overlay") +@Name("Hide speed overlay") @Description("Hide speed overlay in player.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/suggestactions/patch/SuggestedActionsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/suggestactions/patch/SuggestedActionsPatch.kt index 5295518a9..635187b76 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/suggestactions/patch/SuggestedActionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/suggestactions/patch/SuggestedActionsPatch.kt @@ -20,7 +20,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("hide-suggested-actions") +@Name("Hide suggested actions") @Description("Hide the suggested actions bar inside the player.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/watermark/patch/HideChannelWatermarkPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/watermark/patch/HideChannelWatermarkPatch.kt index 9fbb08f39..d22673971 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/watermark/patch/HideChannelWatermarkPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/watermark/patch/HideChannelWatermarkPatch.kt @@ -22,7 +22,7 @@ import app.revanced.util.integrations.Constants.PLAYER import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Patch -@Name("hide-channel-watermark") +@Name("Hide channel watermark") @Description("Hides creator's watermarks on videos.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/seekbar/seekbar/patch/HideSeekbarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/seekbar/seekbar/patch/HideSeekbarPatch.kt index e07eaf574..4428edbdf 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/seekbar/seekbar/patch/HideSeekbarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/seekbar/seekbar/patch/HideSeekbarPatch.kt @@ -22,7 +22,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.SEEKBAR @Patch -@Name("hide-seekbar") +@Name("Hide seekbar") @Description("Hides the seekbar in video player and video thumbnails.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/seekbar/seekbarcolor/patch/SeekbarColorPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/seekbar/seekbarcolor/patch/SeekbarColorPatch.kt index a9fb491af..5e57f4e2e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/seekbar/seekbarcolor/patch/SeekbarColorPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/seekbar/seekbarcolor/patch/SeekbarColorPatch.kt @@ -31,7 +31,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.w3c.dom.Element @Patch -@Name("custom-seekbar-color") +@Name("Custom seekbar color") @Description("Change seekbar color in video player and video thumbnails.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/seekbar/speed/patch/AppendSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/seekbar/speed/patch/AppendSpeedPatch.kt index 673c7078e..b5f453cfd 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/seekbar/speed/patch/AppendSpeedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/seekbar/speed/patch/AppendSpeedPatch.kt @@ -24,7 +24,7 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.instruction.formats.Instruction35c @Patch -@Name("enable-timestamps-speed") +@Name("Enable time stamps speed") @Description("Add the current video speed in brackets next to the current time.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/seekbar/tapping/patch/SeekbarTappingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/seekbar/tapping/patch/SeekbarTappingPatch.kt index 573d6bc18..337c17a26 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/seekbar/tapping/patch/SeekbarTappingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/seekbar/tapping/patch/SeekbarTappingPatch.kt @@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.SEEKBAR import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Patch -@Name("enable-seekbar-tapping") +@Name("Enable seekbar tapping") @Description("Enables tap-to-seek on the seekbar of the video player.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/seekbar/thumbnailpreview/patch/NewThumbnailPreviewPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/seekbar/thumbnailpreview/patch/NewThumbnailPreviewPatch.kt index c5f742315..48d2a36fe 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/seekbar/thumbnailpreview/patch/NewThumbnailPreviewPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/seekbar/thumbnailpreview/patch/NewThumbnailPreviewPatch.kt @@ -19,7 +19,7 @@ import app.revanced.util.integrations.Constants.SEEKBAR import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-new-thumbnail-preview") +@Name("Enable new thumbnail preview") @Description("Enables a new type of thumbnail preview.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/seekbar/timestamps/patch/HideTimeStampPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/seekbar/timestamps/patch/HideTimeStampPatch.kt index dc8f1e85b..69ed137ee 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/seekbar/timestamps/patch/HideTimeStampPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/seekbar/timestamps/patch/HideTimeStampPatch.kt @@ -19,7 +19,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.SEEKBAR @Patch -@Name("hide-time-stamp") +@Name("Hide time stamp") @Description("Hides timestamp in video player.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/commentpopuppanels/fingerprints/ReelWatchFragmentBuilderFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/commentpopuppanels/fingerprints/ReelWatchFragmentBuilderFingerprint.kt index 9876d2b00..1289d1494 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/commentpopuppanels/fingerprints/ReelWatchFragmentBuilderFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/commentpopuppanels/fingerprints/ReelWatchFragmentBuilderFingerprint.kt @@ -8,6 +8,10 @@ import org.jf.dexlib2.AccessFlags object ReelWatchFragmentBuilderFingerprint : MethodFingerprint( returnType = "Landroid/view/View;", accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL, - parameters = listOf("Landroid/view/LayoutInflater;", "Landroid/view/ViewGroup;", "Landroid/os/Bundle;"), + parameters = listOf( + "Landroid/view/LayoutInflater;", + "Landroid/view/ViewGroup;", + "Landroid/os/Bundle;" + ), customFingerprint = { methodDef, _ -> methodDef.isWide32LiteralExists(45401415) } ) \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/commentpopuppanels/patch/NewCommentPopupPanelsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/commentpopuppanels/patch/NewCommentPopupPanelsPatch.kt index 3dea5baa2..3251f9484 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/commentpopuppanels/patch/NewCommentPopupPanelsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/commentpopuppanels/patch/NewCommentPopupPanelsPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("enable-new-comment-popup-panels") +@Name("Enable new comment popup panels") @Description("Enables a new type of comment popup panel in the shorts player.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsCommentButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsCommentButtonPatch.kt index 8196acdfd..138e9baf4 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsCommentButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsCommentButtonPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.shorts.shortscomponent.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -10,15 +8,11 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsCommentFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.RightComment import app.revanced.util.bytecode.getWideLiteralIndex import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("hide-shorts-comment") -@YouTubeCompatibility -@Version("0.0.1") class ShortsCommentButtonPatch : BytecodePatch( listOf(ShortsCommentFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsComponentPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsComponentPatch.kt index 7d5d9c2df..067d4cc39 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsComponentPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsComponentPatch.kt @@ -19,7 +19,7 @@ import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus import app.revanced.util.integrations.Constants.PATCHES_PATH @Patch -@Name("hide-shorts-component") +@Name("Hide Shorts components") @Description("Hides other Shorts components.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsDislikeButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsDislikeButtonPatch.kt index 0fcfbd527..fc2e2940e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsDislikeButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsDislikeButtonPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.shorts.shortscomponent.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -11,16 +9,12 @@ import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.smali.ExternalLabel import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsDislikeFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelRightDislikeIcon import app.revanced.util.bytecode.getWideLiteralIndex import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.Opcode import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("hide-shorts-dislike") -@YouTubeCompatibility -@Version("0.0.1") class ShortsDislikeButtonPatch : BytecodePatch( listOf(ShortsDislikeFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsInfoPanelPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsInfoPanelPatch.kt index 109ed4a38..a3be221e0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsInfoPanelPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsInfoPanelPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.shorts.shortscomponent.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -10,15 +8,11 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsInfoPanelFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelPlayerInfoPanel import app.revanced.util.bytecode.getWideLiteralIndex import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("hide-shorts-info-panel") -@YouTubeCompatibility -@Version("0.0.1") class ShortsInfoPanelPatch : BytecodePatch( listOf(ShortsInfoPanelFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsLikeButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsLikeButtonPatch.kt index 3d0902ba0..8a9bb062e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsLikeButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsLikeButtonPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.shorts.shortscomponent.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -11,16 +9,12 @@ import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.smali.ExternalLabel import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsLikeFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelRightLikeIcon import app.revanced.util.bytecode.getWideLiteralIndex import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.Opcode import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("hide-shorts-like") -@YouTubeCompatibility -@Version("0.0.1") class ShortsLikeButtonPatch : BytecodePatch( listOf(ShortsLikeFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsPaidPromotionBannerPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsPaidPromotionBannerPatch.kt index 80327fdc9..6cb39bfc5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsPaidPromotionBannerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsPaidPromotionBannerPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.shorts.shortscomponent.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -11,16 +9,12 @@ import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsPaidPromotionFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelPlayerBadge import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelPlayerBadge2 import app.revanced.util.bytecode.getWideLiteralIndex import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("hide-shorts-paid-promotion") -@YouTubeCompatibility -@Version("0.0.1") class ShortsPaidPromotionBannerPatch : BytecodePatch( listOf(ShortsPaidPromotionFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsRemixButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsRemixButtonPatch.kt index 398e6d33d..e01f1c4bb 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsRemixButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsRemixButtonPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.shorts.shortscomponent.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -10,15 +8,11 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsRemixFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelDynRemix import app.revanced.util.bytecode.getWideLiteralIndex import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("hide-shorts-remix") -@YouTubeCompatibility -@Version("0.0.1") class ShortsRemixButtonPatch : BytecodePatch( listOf(ShortsRemixFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsShareButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsShareButtonPatch.kt index d2808699c..7c835c1b5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsShareButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsShareButtonPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.shorts.shortscomponent.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -10,15 +8,11 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsShareFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelDynShare import app.revanced.util.bytecode.getWideLiteralIndex import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("hide-shorts-share") -@YouTubeCompatibility -@Version("0.0.1") class ShortsShareButtonPatch : BytecodePatch( listOf(ShortsShareFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsSubscriptionsButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsSubscriptionsButtonPatch.kt index 56cca4544..6fac3d278 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsSubscriptionsButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsSubscriptionsButtonPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.shorts.shortscomponent.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -14,7 +12,6 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsSubscriptionsFingerprint import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsSubscriptionsTabletFingerprint import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsSubscriptionsTabletParentFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelPlayerFooter import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelPlayerPausedStateButton import app.revanced.util.bytecode.getWideLiteralIndex @@ -25,9 +22,6 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction import org.jf.dexlib2.iface.reference.FieldReference -@Name("hide-shorts-subscriptions") -@YouTubeCompatibility -@Version("0.0.1") class ShortsSubscriptionsButtonPatch : BytecodePatch( listOf( ShortsSubscriptionsFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsToolBarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsToolBarPatch.kt index 73f5ca173..345e86da8 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsToolBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortscomponent/patch/ShortsToolBarPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.shorts.shortscomponent.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -13,7 +11,6 @@ import app.revanced.patcher.patch.PatchResultError import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsCommentFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fingerprints.SetToolBarPaddingFingerprint import app.revanced.patches.youtube.utils.navbarindex.patch.NavBarIndexHookPatch.Companion.injectIndex import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ToolBarPaddingHome @@ -22,9 +19,6 @@ import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction -@Name("hide-shorts-toolbar") -@YouTubeCompatibility -@Version("0.0.1") class ShortsToolBarPatch : BytecodePatch( listOf( SetToolBarPaddingFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortsnavigationbar/patch/ShortsNavigationBarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortsnavigationbar/patch/ShortsNavigationBarPatch.kt index d6b510aed..21ba21acf 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/shortsnavigationbar/patch/ShortsNavigationBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/shortsnavigationbar/patch/ShortsNavigationBarPatch.kt @@ -1,9 +1,6 @@ package app.revanced.patches.youtube.shorts.shortsnavigationbar.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -17,15 +14,10 @@ import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patches.youtube.shorts.shortsnavigationbar.fingerprints.BottomNavigationBarFingerprint import app.revanced.patches.youtube.shorts.shortsnavigationbar.fingerprints.RenderBottomNavigationBarFingerprint import app.revanced.patches.youtube.shorts.shortsnavigationbar.fingerprints.SetPivotBarFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fingerprints.PivotBarCreateButtonViewFingerprint import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("hide-shorts-navigation-bar") -@Description("Hide navigation bar when playing shorts.") -@YouTubeCompatibility -@Version("0.0.1") class ShortsNavigationBarPatch : BytecodePatch( listOf( BottomNavigationBarFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/startupshortsreset/patch/DisableShortsOnStartupPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/startupshortsreset/patch/DisableShortsOnStartupPatch.kt index 70b080e30..9e5761ee3 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/startupshortsreset/patch/DisableShortsOnStartupPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/startupshortsreset/patch/DisableShortsOnStartupPatch.kt @@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.SHORTS import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch -@Name("disable-startup-shorts-player") +@Name("Disable Shorts on startup") @Description("Disables playing YouTube Shorts when launching YouTube.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/swipe/hdrbrightness/patch/HDRBrightnessPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/swipe/hdrbrightness/patch/HDRBrightnessPatch.kt index ad448b961..436532cce 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/swipe/hdrbrightness/patch/HDRBrightnessPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/swipe/hdrbrightness/patch/HDRBrightnessPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.swipe.hdrbrightness.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -11,12 +9,8 @@ import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.smali.ExternalLabel import app.revanced.patches.youtube.swipe.hdrbrightness.fingerprints.HDRBrightnessFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.util.integrations.Constants.SWIPE_PATH -@Name("disable-hdr-auto-brightness") -@YouTubeCompatibility -@Version("0.0.1") class HDRBrightnessPatch : BytecodePatch( listOf(HDRBrightnessFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/swipe/swipecontrols/bytecode/patch/SwipeControlsBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/swipe/swipecontrols/bytecode/patch/SwipeControlsBytecodePatch.kt index 124aa9579..33ab9b970 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/swipe/swipecontrols/bytecode/patch/SwipeControlsBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/swipe/swipecontrols/bytecode/patch/SwipeControlsBytecodePatch.kt @@ -2,8 +2,6 @@ package app.revanced.patches.youtube.swipe.swipecontrols.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.extensions.transformMethods -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult @@ -13,14 +11,10 @@ import app.revanced.patcher.util.TypeUtil.traverseClassHierarchy import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod.Companion.toMutable import app.revanced.patches.youtube.swipe.swipecontrols.bytecode.fingerprints.SwipeControlsHostActivityFingerprint import app.revanced.patches.youtube.swipe.swipecontrols.bytecode.fingerprints.WatchWhileActivityFingerprint -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.playertype.patch.PlayerTypeHookPatch import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.immutable.ImmutableMethod -@Name("swipe-controls-bytecode-patch") -@YouTubeCompatibility -@Version("0.0.3") @DependsOn([PlayerTypeHookPatch::class]) class SwipeControlsBytecodePatch : BytecodePatch( listOf( diff --git a/src/main/kotlin/app/revanced/patches/youtube/swipe/swipecontrols/resource/patch/SwipeControlsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/swipe/swipecontrols/resource/patch/SwipeControlsPatch.kt index 56f54b7eb..5b44cbb6d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/swipe/swipecontrols/resource/patch/SwipeControlsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/swipe/swipecontrols/resource/patch/SwipeControlsPatch.kt @@ -17,7 +17,7 @@ import app.revanced.util.resources.ResourceUtils import app.revanced.util.resources.ResourceUtils.copyResources @Patch -@Name("swipe-controls") +@Name("Swipe controls") @Description("Adds volume and brightness swipe controls.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/clientspoof/patch/ClientSpoofPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/clientspoof/patch/ClientSpoofPatch.kt index acde5bec5..8382cf515 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/clientspoof/patch/ClientSpoofPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/clientspoof/patch/ClientSpoofPatch.kt @@ -1,24 +1,16 @@ package app.revanced.patches.youtube.utils.fix.clientspoof.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fix.clientspoof.fingerprints.UserAgentHeaderBuilderFingerprint import app.revanced.patches.youtube.utils.microg.shared.Constants.PACKAGE_NAME import org.jf.dexlib2.iface.instruction.FiveRegisterInstruction -@Name("client-spoof") -@Description("Spoofs a patched client to allow playback.") -@YouTubeCompatibility -@Version("0.0.1") class ClientSpoofPatch : BytecodePatch( listOf(UserAgentHeaderBuilderFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/doublebacktoclose/patch/DoubleBackToClosePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/doublebacktoclose/patch/DoubleBackToClosePatch.kt index d76162586..8f5f98586 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/doublebacktoclose/patch/DoubleBackToClosePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/doublebacktoclose/patch/DoubleBackToClosePatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.fix.doublebacktoclose.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -11,16 +9,12 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fingerprints.OnBackPressedFingerprint import app.revanced.patches.youtube.utils.fix.doublebacktoclose.fingerprint.ScrollPositionFingerprint import app.revanced.patches.youtube.utils.fix.doublebacktoclose.fingerprint.ScrollTopFingerprint import app.revanced.patches.youtube.utils.fix.doublebacktoclose.fingerprint.ScrollTopParentFingerprint import app.revanced.util.integrations.Constants.UTILS_PATH -@Name("double-back-to-close") -@YouTubeCompatibility -@Version("0.0.1") class DoubleBackToClosePatch : BytecodePatch( listOf( OnBackPressedFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/patch/SpoofPlayerParameterPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/patch/SpoofPlayerParameterPatch.kt index e9712cc8f..a2a751e18 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/patch/SpoofPlayerParameterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/patch/SpoofPlayerParameterPatch.kt @@ -33,7 +33,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Patch -@Name("spoof-player-parameters") +@Name("Spoof player parameters") @Description("Spoofs player parameters to prevent playback issues.") @DependsOn( [ @@ -85,7 +85,8 @@ class SpoofPlayerParameterPatch : BytecodePatch( }.result?.let { it.mutableMethod.apply { val targetIndex = it.scanResult.patternScanResult!!.endIndex - val targetRegister = getInstruction(targetIndex).registerA + val targetRegister = + getInstruction(targetIndex).registerA // Since this is end of the method must replace one line then add the rest. addInstructions( diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/swiperefresh/patch/SwipeRefreshPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/swiperefresh/patch/SwipeRefreshPatch.kt index d8a89823a..8d459d445 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/swiperefresh/patch/SwipeRefreshPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/swiperefresh/patch/SwipeRefreshPatch.kt @@ -1,23 +1,15 @@ package app.revanced.patches.youtube.utils.fix.swiperefresh.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fix.swiperefresh.fingerprint.SwipeRefreshLayoutFingerprint import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("fix-swipe-refresh") -@Description("Enable swipe refresh.") -@YouTubeCompatibility -@Version("0.0.1") class SwipeRefreshPatch : BytecodePatch( listOf(SwipeRefreshLayoutFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/integrations/patch/IntegrationsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/integrations/patch/IntegrationsPatch.kt index cd1b678fc..75a3f6628 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/integrations/patch/IntegrationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/integrations/patch/IntegrationsPatch.kt @@ -1,9 +1,7 @@ package app.revanced.patches.youtube.utils.integrations.patch -import app.revanced.patcher.annotation.Name import app.revanced.patcher.patch.annotations.RequiresIntegrations import app.revanced.patches.shared.patch.integrations.AbstractIntegrationsPatch -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.integrations.fingerprints.APIPlayerServiceFingerprint import app.revanced.patches.youtube.utils.integrations.fingerprints.ApplicationInitFingerprint import app.revanced.patches.youtube.utils.integrations.fingerprints.EmbeddedPlayerControlsOverlayFingerprint @@ -13,8 +11,6 @@ import app.revanced.patches.youtube.utils.integrations.fingerprints.RemoteEmbedd import app.revanced.patches.youtube.utils.integrations.fingerprints.StandalonePlayerActivityFingerprint import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH -@Name("integrations") -@YouTubeCompatibility @RequiresIntegrations class IntegrationsPatch : AbstractIntegrationsPatch( "$INTEGRATIONS_PATH/utils/ReVancedUtils;", diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/litho/patch/LithoThemePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/litho/patch/LithoThemePatch.kt index 9149248f4..18e8b6004 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/litho/patch/LithoThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/litho/patch/LithoThemePatch.kt @@ -1,23 +1,17 @@ package app.revanced.patches.youtube.utils.litho.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.litho.fingerprints.LithoThemeFingerprint import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.instruction.formats.Instruction35c import org.jf.dexlib2.iface.reference.MethodReference -@Name("litho-theme-hook") -@YouTubeCompatibility -@Version("0.0.1") class LithoThemePatch : BytecodePatch( listOf( LithoThemeFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/microg/bytecode/patch/MicroGBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/microg/bytecode/patch/MicroGBytecodePatch.kt index 5fc07bbde..24547ebb6 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/microg/bytecode/patch/MicroGBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/microg/bytecode/patch/MicroGBytecodePatch.kt @@ -1,14 +1,11 @@ package app.revanced.patches.youtube.utils.microg.bytecode.patch -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patches.shared.patch.packagename.PackageNamePatch -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fix.clientspoof.patch.ClientSpoofPatch import app.revanced.patches.youtube.utils.fix.parameter.patch.SpoofPlayerParameterPatch import app.revanced.patches.youtube.utils.microg.bytecode.fingerprints.CastContextFetchFingerprint @@ -21,7 +18,6 @@ import app.revanced.patches.youtube.utils.microg.shared.Constants.PACKAGE_NAME import app.revanced.util.bytecode.BytecodeHelper.injectInit import app.revanced.util.microg.MicroGBytecodeHelper -@Name("microg-support-bytecode-patch") @DependsOn( [ ClientSpoofPatch::class, @@ -29,8 +25,6 @@ import app.revanced.util.microg.MicroGBytecodeHelper SpoofPlayerParameterPatch::class ] ) -@YouTubeCompatibility -@Version("0.0.1") class MicroGBytecodePatch : BytecodePatch( listOf( CastContextFetchFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/microg/resource/patch/MicroGPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/microg/resource/patch/MicroGPatch.kt index b9745dad2..c708f0b27 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/microg/resource/patch/MicroGPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/microg/resource/patch/MicroGPatch.kt @@ -22,7 +22,7 @@ import app.revanced.util.microg.MicroGResourceHelper.patchSetting import app.revanced.util.resources.ResourceHelper.setMicroG @Patch -@Name("microg-support") +@Name("MicroG support") @Description("Allows ReVanced to run without root and under a different package name with MicroG.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/navbarindex/patch/NavBarIndexHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/navbarindex/patch/NavBarIndexHookPatch.kt index 8554e67eb..f23ce8875 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/navbarindex/patch/NavBarIndexHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/navbarindex/patch/NavBarIndexHookPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.navbarindex.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -12,7 +10,6 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fingerprints.OnBackPressedFingerprint import app.revanced.patches.youtube.utils.navbarindex.fingerprints.NavBarBuilderFingerprint import app.revanced.patches.youtube.utils.navbarindex.fingerprints.TopBarButtonFingerprint @@ -24,10 +21,7 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction import org.jf.dexlib2.iface.instruction.formats.Instruction35c import org.jf.dexlib2.iface.reference.MethodReference -@Name("navbar-index-hook") @DependsOn([SharedResourceIdPatch::class]) -@YouTubeCompatibility -@Version("0.0.1") class NavBarIndexHookPatch : BytecodePatch( listOf( NavBarBuilderFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/overridespeed/patch/OverrideSpeedHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/overridespeed/patch/OverrideSpeedHookPatch.kt index 43df14281..5f53ad443 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/overridespeed/patch/OverrideSpeedHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/overridespeed/patch/OverrideSpeedHookPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.overridespeed.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -19,7 +17,6 @@ import app.revanced.patcher.util.proxy.mutableTypes.MutableField.Companion.toMut import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod.Companion.toMutable import app.revanced.patcher.util.smali.toInstructions -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.overridespeed.fingerprints.SpeedClassFingerprint import app.revanced.patches.youtube.utils.overridespeed.fingerprints.VideoSpeedChangedFingerprint import app.revanced.patches.youtube.utils.overridespeed.fingerprints.VideoSpeedParentFingerprint @@ -35,9 +32,6 @@ import org.jf.dexlib2.immutable.ImmutableMethod import org.jf.dexlib2.immutable.ImmutableMethodImplementation import org.jf.dexlib2.immutable.ImmutableMethodParameter -@Name("override-speed-hook") -@YouTubeCompatibility -@Version("0.0.1") class OverrideSpeedHookPatch : BytecodePatch( listOf( SpeedClassFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/playerbutton/patch/PlayerButtonHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/playerbutton/patch/PlayerButtonHookPatch.kt index 56f7fb2e5..a90dffe3a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/playerbutton/patch/PlayerButtonHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/playerbutton/patch/PlayerButtonHookPatch.kt @@ -2,8 +2,6 @@ package app.revanced.patches.youtube.utils.playerbutton.patch import app.revanced.extensions.findMutableMethodOf import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -11,7 +9,6 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.playerbutton.fingerprints.LiveChatFingerprint import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch import app.revanced.util.integrations.Constants.PLAYER @@ -19,10 +16,7 @@ import org.jf.dexlib2.Opcode import org.jf.dexlib2.builder.instruction.BuilderInstruction21c import org.jf.dexlib2.builder.instruction.BuilderInstruction35c -@Name("player-button-hook") @DependsOn([SharedResourceIdPatch::class]) -@YouTubeCompatibility -@Version("0.0.1") class PlayerButtonHookPatch : BytecodePatch( listOf(LiveChatFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/playercontrols/patch/PlayerControlsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/playercontrols/patch/PlayerControlsPatch.kt index 089d5ec8d..89e09972b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/playercontrols/patch/PlayerControlsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/playercontrols/patch/PlayerControlsPatch.kt @@ -1,9 +1,6 @@ package app.revanced.patches.youtube.utils.playercontrols.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -15,7 +12,6 @@ import app.revanced.patcher.patch.PatchResultError import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fingerprints.YouTubeControlsOverlayFingerprint import app.revanced.patches.youtube.utils.playercontrols.fingerprints.BottomControlsInflateFingerprint import app.revanced.patches.youtube.utils.playercontrols.fingerprints.ControlsLayoutInflateFingerprint @@ -34,11 +30,7 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction import org.jf.dexlib2.iface.instruction.formats.Instruction35c import org.jf.dexlib2.iface.reference.Reference -@Name("player-controls") @DependsOn([SharedResourceIdPatch::class]) -@Description("Manages the code for the player controls of the YouTube player.") -@YouTubeCompatibility -@Version("0.0.1") class PlayerControlsPatch : BytecodePatch( listOf( BottomControlsInflateFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/playertype/patch/PlayerTypeHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/playertype/patch/PlayerTypeHookPatch.kt index 36e387aa0..72c84546d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/playertype/patch/PlayerTypeHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/playertype/patch/PlayerTypeHookPatch.kt @@ -1,9 +1,6 @@ package app.revanced.patches.youtube.utils.playertype.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -13,7 +10,6 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fingerprints.YouTubeControlsOverlayFingerprint import app.revanced.patches.youtube.utils.playertype.fingerprint.PlayerTypeFingerprint import app.revanced.patches.youtube.utils.playertype.fingerprint.VideoStateFingerprint @@ -21,11 +17,7 @@ import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch import app.revanced.util.integrations.Constants.UTILS_PATH import org.jf.dexlib2.iface.instruction.ReferenceInstruction -@Name("player-type-hook") -@Description("Hook to get the current player type and video playback state.") @DependsOn([SharedResourceIdPatch::class]) -@YouTubeCompatibility -@Version("0.0.1") class PlayerTypeHookPatch : BytecodePatch( listOf( PlayerTypeFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/quickactions/patch/QuickActionsHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/quickactions/patch/QuickActionsHookPatch.kt index 82829ed6f..8fc39aa1a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/quickactions/patch/QuickActionsHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/quickactions/patch/QuickActionsHookPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.quickactions.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -10,16 +8,12 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.quickactions.fingerprints.QuickActionsElementFingerprint import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch import app.revanced.util.integrations.Constants.FULLSCREEN import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("quick-actions-hook") @DependsOn([SharedResourceIdPatch::class]) -@YouTubeCompatibility -@Version("0.0.1") class QuickActionsHookPatch : BytecodePatch( listOf(QuickActionsElementFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/resourceid/patch/SharedResourceIdPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/resourceid/patch/SharedResourceIdPatch.kt index efceec08b..5db697510 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/resourceid/patch/SharedResourceIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/resourceid/patch/SharedResourceIdPatch.kt @@ -1,7 +1,5 @@ package app.revanced.patches.youtube.utils.resourceid.patch -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.PatchResultError @@ -9,7 +7,6 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patches.shared.patch.mapping.ResourceMappingPatch -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.util.enum.ResourceType import app.revanced.util.enum.ResourceType.ATTR import app.revanced.util.enum.ResourceType.COLOR @@ -19,10 +16,7 @@ import app.revanced.util.enum.ResourceType.ID import app.revanced.util.enum.ResourceType.LAYOUT import app.revanced.util.enum.ResourceType.STRING -@Name("shared-resource-id") @DependsOn([ResourceMappingPatch::class]) -@YouTubeCompatibility -@Version("0.0.1") class SharedResourceIdPatch : ResourcePatch { internal companion object { var AccountSwitcherAccessibility: Long = -1 diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/general/patch/ReturnYouTubeDislikePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/general/patch/ReturnYouTubeDislikePatch.kt index a0d11859d..d15489c6f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/general/patch/ReturnYouTubeDislikePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/general/patch/ReturnYouTubeDislikePatch.kt @@ -34,7 +34,7 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction import org.jf.dexlib2.iface.reference.Reference @Patch -@Name("return-youtube-dislike") +@Name("Return YouTube Dislike") @Description("Shows the dislike count of videos using the Return YouTube Dislike API.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/oldlayout/patch/ReturnYouTubeDislikeOldLayoutPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/oldlayout/patch/ReturnYouTubeDislikeOldLayoutPatch.kt index ab3907b87..9b41da541 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/oldlayout/patch/ReturnYouTubeDislikeOldLayoutPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/oldlayout/patch/ReturnYouTubeDislikeOldLayoutPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.returnyoutubedislike.oldlayout.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -10,7 +8,6 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.DislikeButton import app.revanced.patches.youtube.utils.returnyoutubedislike.oldlayout.fingerprints.ButtonTagFingerprint @@ -18,10 +15,7 @@ import app.revanced.util.bytecode.getWideLiteralIndex import app.revanced.util.integrations.Constants.UTILS_PATH import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("return-youtube-dislike-old-layout") @DependsOn([SharedResourceIdPatch::class]) -@YouTubeCompatibility -@Version("0.0.1") class ReturnYouTubeDislikeOldLayoutPatch : BytecodePatch( listOf(ButtonTagFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/shorts/patch/ReturnYouTubeDislikeShortsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/shorts/patch/ReturnYouTubeDislikeShortsPatch.kt index 9e1f243ad..1d56edf90 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/shorts/patch/ReturnYouTubeDislikeShortsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/shorts/patch/ReturnYouTubeDislikeShortsPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.returnyoutubedislike.shorts.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -10,14 +8,10 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.smali.ExternalLabel -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.returnyoutubedislike.shorts.fingerprints.ShortsTextViewFingerprint import app.revanced.util.integrations.Constants.UTILS_PATH import org.jf.dexlib2.iface.instruction.ReferenceInstruction -@Name("return-youtube-dislike-shorts") -@YouTubeCompatibility -@Version("0.0.1") class ReturnYouTubeDislikeShortsPatch : BytecodePatch( listOf(ShortsTextViewFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/settings/bytecode/patch/SettingsBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/settings/bytecode/patch/SettingsBytecodePatch.kt index 1ebae2772..3c82efc14 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/settings/bytecode/patch/SettingsBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/settings/bytecode/patch/SettingsBytecodePatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.settings.bytecode.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction @@ -11,14 +9,12 @@ import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patches.shared.patch.mapping.ResourceMappingPatch -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.integrations.patch.IntegrationsPatch import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch import app.revanced.patches.youtube.utils.settings.bytecode.fingerprints.ThemeSetterSystemFingerprint import app.revanced.util.bytecode.BytecodeHelper.injectInit import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH -@Name("settings-bytecode-patch") @DependsOn( [ IntegrationsPatch::class, @@ -26,8 +22,6 @@ import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH SharedResourceIdPatch::class ] ) -@YouTubeCompatibility -@Version("0.0.1") class SettingsBytecodePatch : BytecodePatch( listOf(ThemeSetterSystemFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/settings/resource/patch/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/settings/resource/patch/SettingsPatch.kt index 6d1e2d580..917500e4b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/settings/resource/patch/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/settings/resource/patch/SettingsPatch.kt @@ -28,7 +28,7 @@ import java.util.concurrent.Executors import java.util.concurrent.TimeUnit @Patch -@Name("settings") +@Name("Settings") @Description("Applies mandatory patches to implement ReVanced settings into the application.") @DependsOn( [ @@ -68,7 +68,9 @@ class SettingsPatch : AbstractSettingsResourcePatch( val node = resources.item(i) if (node !is Element) continue - if (node.nodeName != "integer" || !node.getAttribute("name").startsWith("google_play_services_version")) + if (node.nodeName != "integer" || !node.getAttribute("name") + .startsWith("google_play_services_version") + ) continue belowAndroid1820 = node.textContent.toInt() <= 232100000 diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt index 141e1efbb..194f95e52 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.sponsorblock.bytecode.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -14,7 +12,6 @@ import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod -import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility import app.revanced.patches.youtube.utils.fingerprints.SeekbarFingerprint import app.revanced.patches.youtube.utils.fingerprints.SeekbarOnDrawFingerprint import app.revanced.patches.youtube.utils.fingerprints.TotalTimeFingerprint @@ -41,7 +38,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c import org.jf.dexlib2.iface.reference.FieldReference import org.jf.dexlib2.iface.reference.MethodReference -@Name("sponsorblock-bytecode-patch") @DependsOn( [ OverrideSpeedHookPatch::class, @@ -51,8 +47,6 @@ import org.jf.dexlib2.iface.reference.MethodReference VideoIdWithoutShortsPatch::class ] ) -@YouTubeCompatibility -@Version("0.0.1") class SponsorBlockBytecodePatch : BytecodePatch( listOf( PlayerControllerFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/resource/patch/SponsorBlockResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/resource/patch/SponsorBlockResourcePatch.kt index 35268bbc2..7d9c593a0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/resource/patch/SponsorBlockResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/resource/patch/SponsorBlockResourcePatch.kt @@ -17,7 +17,7 @@ import app.revanced.util.resources.ResourceUtils.copyResources import app.revanced.util.resources.ResourceUtils.copyXmlNode @Patch -@Name("sponsorblock") +@Name("Sponsorblock") @Description("Integrates SponsorBlock which allows skipping video segments such as sponsored content.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/videocpn/patch/VideoCpnPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/videocpn/patch/VideoCpnPatch.kt index af3e94a59..1baa43b00 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/videocpn/patch/VideoCpnPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/videocpn/patch/VideoCpnPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.videocpn.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -11,8 +9,6 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patches.youtube.utils.videocpn.fingerprint.OrganicPlaybackContextModelFingerprint -@Name("video-cpn-hook") -@Version("0.0.1") class VideoCpnPatch : BytecodePatch( listOf(OrganicPlaybackContextModelFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/general/patch/VideoIdPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/general/patch/VideoIdPatch.kt index f7233f3c9..3f17c2aa3 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/general/patch/VideoIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/general/patch/VideoIdPatch.kt @@ -1,8 +1,6 @@ package app.revanced.patches.youtube.utils.videoid.general.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -33,8 +31,6 @@ import org.jf.dexlib2.immutable.ImmutableMethod import org.jf.dexlib2.immutable.ImmutableMethodParameter import org.jf.dexlib2.util.MethodUtil -@Name("video-id-hook") -@Version("0.0.1") @DependsOn([PlayerTypeHookPatch::class]) class VideoIdPatch : BytecodePatch( listOf( diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/withoutshorts/patch/VideoIdWithoutShortsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/withoutshorts/patch/VideoIdWithoutShortsPatch.kt index cbdcc2643..6ff0beebf 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/withoutshorts/patch/VideoIdWithoutShortsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/withoutshorts/patch/VideoIdWithoutShortsPatch.kt @@ -1,10 +1,7 @@ package app.revanced.patches.youtube.utils.videoid.withoutshorts.patch import app.revanced.extensions.toErrorResult -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext -import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.patch.BytecodePatch @@ -16,8 +13,6 @@ import app.revanced.util.integrations.Constants.VIDEO_PATH import org.jf.dexlib2.Opcode import org.jf.dexlib2.iface.instruction.OneRegisterInstruction -@Name("video-id-without-shorts-hook") -@Version("0.0.1") class VideoIdWithoutShortsPatch : BytecodePatch( listOf(VideoIdWithoutShortsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/customspeed/patch/CustomVideoSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/customspeed/patch/CustomVideoSpeedPatch.kt index 0e167f2fa..d67c86134 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/customspeed/patch/CustomVideoSpeedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/customspeed/patch/CustomVideoSpeedPatch.kt @@ -28,7 +28,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c import org.jf.dexlib2.iface.reference.MethodReference @Patch -@Name("custom-video-speed") +@Name("Custom video speed") @Description("Adds more video speed options.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/hdr/patch/DisableHdrVideoPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/hdr/patch/DisableHdrVideoPatch.kt index 00a864174..99338aca9 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/hdr/patch/DisableHdrVideoPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/hdr/patch/DisableHdrVideoPatch.kt @@ -21,7 +21,7 @@ import app.revanced.patches.youtube.video.hdr.fingerprints.HdrCapabilitiesFinger import app.revanced.util.integrations.Constants.VIDEO_PATH @Patch -@Name("disable-hdr-video") +@Name("Disable hdr video") @Description("Disable HDR video.") @DependsOn([SettingsPatch::class]) @YouTubeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/quality/patch/VideoQualityPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/quality/patch/VideoQualityPatch.kt index 9f4a0b4a3..8287eb90f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/quality/patch/VideoQualityPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/quality/patch/VideoQualityPatch.kt @@ -32,7 +32,7 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction import org.jf.dexlib2.iface.reference.FieldReference @Patch -@Name("default-video-quality") +@Name("Default video quality") @Description("Adds ability to set default video quality settings.") @DependsOn( [ diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/speed/patch/VideoSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/speed/patch/VideoSpeedPatch.kt index 2458fd560..7fba995d5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/speed/patch/VideoSpeedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/speed/patch/VideoSpeedPatch.kt @@ -23,7 +23,7 @@ import app.revanced.util.integrations.Constants.VIDEO_PATH import org.jf.dexlib2.iface.instruction.FiveRegisterInstruction @Patch -@Name("default-video-speed") +@Name("Default video speed") @Description("Adds ability to set default video speed settings.") @DependsOn( [