fix(YouTube/Settings): patch names in Patches Information section do not match

This commit is contained in:
inotia00
2023-10-18 07:28:12 +09:00
parent 3273b6fc8c
commit 721375aa3c
93 changed files with 189 additions and 185 deletions

View File

@ -119,7 +119,7 @@ object GeneralAdsPatch : ResourcePatch() {
)
)
SettingsPatch.updatePatchStatus("hide-general-ads")
SettingsPatch.updatePatchStatus("Hide general ads")
}
}

View File

@ -48,7 +48,7 @@ object VideoAdsPatch : AbstractAdsPatch(
)
)
SettingsPatch.updatePatchStatus("hide-video-ads")
SettingsPatch.updatePatchStatus("Hide video ads")
}
}

View File

@ -106,6 +106,6 @@ object AlternativeThumbnailsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("alternative-thumbnails")
SettingsPatch.updatePatchStatus("Alternative thumbnails")
}
}

View File

@ -51,7 +51,7 @@ object ButtonContainerPatch : BytecodePatch() {
)
)
SettingsPatch.updatePatchStatus("hide-button-container")
SettingsPatch.updatePatchStatus("Hide button container")
}
}

View File

@ -51,7 +51,7 @@ object CommentComponentPatch : BytecodePatch() {
)
)
SettingsPatch.updatePatchStatus("hide-comment-component")
SettingsPatch.updatePatchStatus("Hide comment component")
}
}

View File

@ -107,7 +107,7 @@ object FeedFlyoutPanelPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-feed-flyout-panel")
SettingsPatch.updatePatchStatus("Hide feed flyout panel")
}
}

View File

@ -98,7 +98,7 @@ object OldQualityLayoutPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-old-quality-layout")
SettingsPatch.updatePatchStatus("Enable old quality layout")
}
}

View File

@ -81,7 +81,7 @@ object PlayerFlyoutPanelPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-player-flyout-panel")
SettingsPatch.updatePatchStatus("Hide player flyout panel")
}

View File

@ -77,7 +77,7 @@ object HideAutoplayPreviewPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-autoplay-preview")
SettingsPatch.updatePatchStatus("Hide autoplay preview")
}
}

View File

@ -77,7 +77,7 @@ object CompactControlsOverlayPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-compact-controls-overlay")
SettingsPatch.updatePatchStatus("Enable compact controls overlay")
}
}

View File

@ -68,7 +68,7 @@ object HideEndScreenOverlayPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-endscreen-overlay")
SettingsPatch.updatePatchStatus("Hide end screen overlay")
}
}

View File

@ -121,7 +121,7 @@ object HideFullscreenPanelsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-fullscreen-panels")
SettingsPatch.updatePatchStatus("Hide fullscreen panels")
}
}

View File

@ -66,7 +66,7 @@ object LandScapeModePatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("disable-landscape-mode")
SettingsPatch.updatePatchStatus("Disable landscape mode")
}

View File

@ -52,7 +52,7 @@ object QuickActionsPatch : BytecodePatch() {
)
)
SettingsPatch.updatePatchStatus("hide-quick-actions")
SettingsPatch.updatePatchStatus("Hide quick actions")
}
}

View File

@ -82,7 +82,7 @@ object AccountMenuPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-account-menu")
SettingsPatch.updatePatchStatus("Hide account menu")
}
}

View File

@ -93,7 +93,7 @@ object AutoCaptionsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("disable-auto-captions")
SettingsPatch.updatePatchStatus("Disable auto captions")
}

View File

@ -67,7 +67,7 @@ object PlayerPopupPanelsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-auto-player-popup-panels")
SettingsPatch.updatePatchStatus("Hide auto player popup panels")
}
}

View File

@ -83,7 +83,7 @@ object CategoryBarPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-category-bar")
SettingsPatch.updatePatchStatus("Hide category bar")
}

View File

@ -68,7 +68,7 @@ object ChannelListSubMenuPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-channel-avatar-section")
SettingsPatch.updatePatchStatus("Hide channel avatar section")
}
}

View File

@ -68,7 +68,7 @@ object CrowdfundingBoxPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-crowdfunding-box")
SettingsPatch.updatePatchStatus("Hide crowdfunding box")
}
}

View File

@ -50,7 +50,7 @@ object DescriptionComponentsPatch : BytecodePatch() {
)
)
SettingsPatch.updatePatchStatus("hide-description-components")
SettingsPatch.updatePatchStatus("Hide description components")
}
}

View File

@ -70,7 +70,7 @@ object FloatingMicrophonePatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-floating-microphone")
SettingsPatch.updatePatchStatus("Hide floating microphone")
}
}

View File

@ -70,7 +70,7 @@ object HideHandlePatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-handle")
SettingsPatch.updatePatchStatus("Hide handle")
}
}

View File

@ -79,7 +79,7 @@ object HeaderSwitchPatch : BytecodePatch() {
)
)
SettingsPatch.updatePatchStatus("header-switch")
SettingsPatch.updatePatchStatus("Header switch")
}
}

View File

@ -67,7 +67,7 @@ object LatestVideosButtonPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-latest-videos-button")
SettingsPatch.updatePatchStatus("Hide latest videos button")
}
}

View File

@ -58,7 +58,7 @@ object LayoutComponentsPatch : BytecodePatch() {
)
)
SettingsPatch.updatePatchStatus("hide-layout-components")
SettingsPatch.updatePatchStatus("Hide layout components")
context.updatePatchStatus("LayoutComponent")

View File

@ -88,7 +88,7 @@ object GradientLoadingScreenPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-gradient-loading-screen")
SettingsPatch.updatePatchStatus("Enable gradient loading screen")
}
}

View File

@ -66,7 +66,7 @@ object LoadMoreButtonPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-load-more-button")
SettingsPatch.updatePatchStatus("Hide load more button")
}
}

View File

@ -135,7 +135,7 @@ object MixPlaylistsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-mix-playlists")
SettingsPatch.updatePatchStatus("Hide mix playlists")
}

View File

@ -65,7 +65,7 @@ object HideSnackBarPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-snack-bar")
SettingsPatch.updatePatchStatus("Hide snack bar")
}
}

View File

@ -103,7 +103,7 @@ object SuggestionsShelfPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-suggestions-shelf")
SettingsPatch.updatePatchStatus("Hide suggestions shelf")
}

View File

@ -95,7 +95,7 @@ object TabletMiniPlayerPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-tablet-mini-player")
SettingsPatch.updatePatchStatus("Enable tablet mini player")
}

View File

@ -82,7 +82,7 @@ object TrendingSearchesPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-trending-searches")
SettingsPatch.updatePatchStatus("Hide trending searches")
}

View File

@ -83,7 +83,7 @@ object WideSearchBarPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-wide-search-bar")
SettingsPatch.updatePatchStatus("Enable wide search bar")
}

View File

@ -60,7 +60,7 @@ object DoubleTapOverlayBackgroundPatch : ResourcePatch() {
}
}
SettingsPatch.updatePatchStatus("hide-double-tap-overlay-filter")
SettingsPatch.updatePatchStatus("Hide double tap overlay filter")
}

View File

@ -64,7 +64,7 @@ object DoubleTapLengthPatch : ResourcePatch() {
context.addEntryValues(arrayPath, lengthElements[index], entriesName)
}
SettingsPatch.updatePatchStatus("custom-double-tap-length")
SettingsPatch.updatePatchStatus("Custom double tap length")
}

View File

@ -68,7 +68,7 @@ object PremiumHeadingPatch : ResourcePatch() {
"HEADER_SWITCH",
"FORCE_PREMIUM_HEADER"
).replace(
"header-switch",
"Header switch",
"force-premium-heading"
)
)

View File

@ -74,7 +74,7 @@ object PiPNotificationPatch : BytecodePatch(
/**
* Add settings
*/
SettingsPatch.updatePatchStatus("hide-pip-notification")
SettingsPatch.updatePatchStatus("Disable pip notification")
}
}

View File

@ -51,7 +51,7 @@ object TooltipContentViewPatch : BytecodePatch(
/**
* Add settings
*/
SettingsPatch.updatePatchStatus("hide-tooltip-content")
SettingsPatch.updatePatchStatus("Hide tooltip content")
}
}

View File

@ -81,7 +81,7 @@ object PowerSaveModePatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("bypass-ambient-mode-restrictions")
SettingsPatch.updatePatchStatus("Bypass ambient mode restrictions")
}
}

View File

@ -47,7 +47,7 @@ object ForceOpusCodecPatch : AbstractOpusCodecsPatch(
)
)
SettingsPatch.updatePatchStatus("force-opus-codec")
SettingsPatch.updatePatchStatus("Force OPUS codec")
}
}

View File

@ -121,7 +121,7 @@ object ForceVideoCodecPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("force-video-codec")
SettingsPatch.updatePatchStatus("Force video codec")
}

View File

@ -44,7 +44,7 @@ object DebuggingPatch : ResourcePatch() {
)
)
SettingsPatch.updatePatchStatus("enable-debug-logging")
SettingsPatch.updatePatchStatus("Enable debug logging")
}

View File

@ -79,7 +79,7 @@ object ExternalBrowserPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-external-browser")
SettingsPatch.updatePatchStatus("Enable external browser")
}
}

View File

@ -73,7 +73,7 @@ object LanguageSelectorPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-language-switch")
SettingsPatch.updatePatchStatus("Enable language switch")
}
}

View File

@ -105,7 +105,7 @@ object LayoutSwitchPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("layout-switch")
SettingsPatch.updatePatchStatus("Layout switch")
}
}

View File

@ -72,7 +72,7 @@ object OpenLinksDirectlyPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-open-links-directly")
SettingsPatch.updatePatchStatus("Enable open links directly")
}
}

View File

@ -65,7 +65,7 @@ object QUICProtocolPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("disable-quic-protocol")
SettingsPatch.updatePatchStatus("Disable QUIC protocol")
}
}

View File

@ -115,7 +115,7 @@ object NewSplashAnimationPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-new-splash-animation")
SettingsPatch.updatePatchStatus("Enable new splash animation")
}

View File

@ -54,7 +54,7 @@ object SpoofAppVersionPatch : AbstractVersionSpoofPatch(
)
)
SettingsPatch.updatePatchStatus("spoof-app-version")
SettingsPatch.updatePatchStatus("Spoof app version")
}
}

View File

@ -37,7 +37,7 @@ object TranslationsPatch : ResourcePatch() {
context.addTranslations("youtube", LANGUAGE_LIST)
SettingsPatch.updatePatchStatus("translations")
SettingsPatch.updatePatchStatus("Translations")
}

View File

@ -83,7 +83,7 @@ object ChangeHomePagePatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("change-homepage")
SettingsPatch.updatePatchStatus("Change homepage")
}
}

View File

@ -70,7 +70,7 @@ object NavigationLabelPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-navigation-label")
SettingsPatch.updatePatchStatus("Hide navigation label")
}
}

View File

@ -132,7 +132,7 @@ object NavigationButtonsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-navigation-buttons")
SettingsPatch.updatePatchStatus("Hide navigation buttons")
}

View File

@ -64,7 +64,7 @@ object TabletNavigationBarPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-tablet-navigation-bar")
SettingsPatch.updatePatchStatus("Enable tablet navigation bar")
}

View File

@ -172,7 +172,7 @@ object OverlayButtonsPatch : ResourcePatch() {
)
)
SettingsPatch.updatePatchStatus("overlay-buttons")
SettingsPatch.updatePatchStatus("Overlay buttons")
}
}

View File

@ -78,7 +78,7 @@ object HideAutoplayButtonPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-autoplay-button")
SettingsPatch.updatePatchStatus("Hide autoplay button")
}
}

View File

@ -75,7 +75,7 @@ object HideCaptionsButtonBytecodePatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-captions-button")
SettingsPatch.updatePatchStatus("Hide captions button")
}
}

View File

@ -60,7 +60,7 @@ object HideCastButtonPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-cast-button")
SettingsPatch.updatePatchStatus("Hide cast button")
}
}

View File

@ -49,7 +49,7 @@ object HideCollapseButtonPatch : ResourcePatch() {
)
)
SettingsPatch.updatePatchStatus("hide-collapse-button")
SettingsPatch.updatePatchStatus("Hide collapse button")
}
}

View File

@ -83,7 +83,7 @@ object HideEndScreenCardsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-endscreen-cards")
SettingsPatch.updatePatchStatus("Hide end screen cards")
}
}

View File

@ -132,7 +132,7 @@ object HideFilmstripOverlayPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-filmstrip-overlay")
SettingsPatch.updatePatchStatus("Hide filmstrip overlay")
}

View File

@ -71,7 +71,7 @@ object HapticFeedBackPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("disable-haptic-feedback")
SettingsPatch.updatePatchStatus("Disable haptic feedback")
}

View File

@ -73,7 +73,7 @@ object HideInfoCardsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-info-cards")
SettingsPatch.updatePatchStatus("Hide info cards")
}
}

View File

@ -70,7 +70,7 @@ object HideMusicButtonPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-music-button")
SettingsPatch.updatePatchStatus("Hide music button")
}
}

View File

@ -61,7 +61,7 @@ object HidePlayerButtonBackgroundPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-player-button-background")
SettingsPatch.updatePatchStatus("Hide player button background")
}
}

View File

@ -76,7 +76,7 @@ object PlayerOverlayFilterPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-player-overlay-filter")
SettingsPatch.updatePatchStatus("Hide player overlay filter")
}
}

View File

@ -48,7 +48,7 @@ object HidePreviousNextButtonPatch : BytecodePatch() {
)
)
SettingsPatch.updatePatchStatus("hide-previous-next-button")
SettingsPatch.updatePatchStatus("Hide previous next button")
}
}

View File

@ -69,7 +69,7 @@ object SeekMessagePatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-seek-message")
SettingsPatch.updatePatchStatus("Hide seek message")
}
}

View File

@ -115,7 +115,7 @@ object SpeedOverlayPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("custom-speed-overlay")
SettingsPatch.updatePatchStatus("Custom speed overlay")
}

View File

@ -74,7 +74,7 @@ object SuggestedActionsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-suggested-actions")
SettingsPatch.updatePatchStatus("Hide suggested actions")
}

View File

@ -89,7 +89,7 @@ object SuggestedVideoOverlayPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-suggested-video-overlay")
SettingsPatch.updatePatchStatus("Hide suggested video overlay")
}

View File

@ -84,7 +84,7 @@ object HideChannelWatermarkBytecodePatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-channel-watermark")
SettingsPatch.updatePatchStatus("Hide channel watermark")
}
}

View File

@ -96,7 +96,7 @@ object AppendTimeStampInformationPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("append-timestamps-information")
SettingsPatch.updatePatchStatus("Append time stamps information")
}
}

View File

@ -115,7 +115,7 @@ object SeekbarColorPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("custom-seekbar-color")
SettingsPatch.updatePatchStatus("Custom seekbar color")
}

View File

@ -74,7 +74,7 @@ object HideSeekbarPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-seekbar")
SettingsPatch.updatePatchStatus("Hide seekbar")
}
}

View File

@ -80,7 +80,7 @@ object SeekbarTappingPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-seekbar-tapping")
SettingsPatch.updatePatchStatus("Enable seekbar tapping")
}

View File

@ -66,7 +66,7 @@ object NewThumbnailPreviewPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-new-thumbnail-preview")
SettingsPatch.updatePatchStatus("Enable new thumbnail preview")
}
}

View File

@ -73,7 +73,7 @@ object HideTimeStampPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-time-stamp")
SettingsPatch.updatePatchStatus("Hide time stamp")
}
}

View File

@ -66,7 +66,7 @@ object NewCommentPopupPanelsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("enable-new-comment-popup-panels")
SettingsPatch.updatePatchStatus("Enable new comment popup panels")
}
}

View File

@ -261,7 +261,7 @@ object ShortsComponentPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("hide-shorts-component")
SettingsPatch.updatePatchStatus("Hide shorts components")
}

View File

@ -15,7 +15,7 @@ import app.revanced.util.integrations.Constants.SHORTS
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
@Patch(
name = "Disable Shorts on startup",
name = "Disable shorts on startup",
description = "Disables playing YouTube Shorts when launching YouTube.",
dependencies = [SettingsPatch::class],
compatiblePackages = [
@ -73,7 +73,7 @@ object DisableShortsOnStartupPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("disable-startup-shorts-player")
SettingsPatch.updatePatchStatus("Disable shorts on startup")
}
}

View File

@ -108,7 +108,7 @@ object SwipeControlsPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("swipe-controls")
SettingsPatch.updatePatchStatus("Swipe controls")
contexts.copyResources(
"youtube/swipecontrols",

View File

@ -194,6 +194,8 @@ object SpoofPlayerParameterPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("Spoof player parameters")
}
private const val INTEGRATIONS_CLASS_DESCRIPTOR =

View File

@ -61,7 +61,7 @@ object MicroGPatch : ResourcePatch() {
"PREFERENCE: MICROG_SETTINGS"
)
)
SettingsPatch.updatePatchStatus("microg-support")
SettingsPatch.updatePatchStatus("MicroG support")
// update settings fragment
context.patchSetting(

View File

@ -200,7 +200,7 @@ object ReturnYouTubeDislikePatch : BytecodePatch(
*/
SettingsPatch.addReVancedPreference("ryd_settings")
SettingsPatch.updatePatchStatus("return-youtube-dislike")
SettingsPatch.updatePatchStatus("Return YouTube Dislike")
}

View File

@ -113,7 +113,7 @@ object SponsorBlockPatch : ResourcePatch() {
*/
SettingsPatch.addReVancedPreference("sponsorblock_settings")
SettingsPatch.updatePatchStatus("sponsorblock")
SettingsPatch.updatePatchStatus("SponsorBlock")
}
}

View File

@ -53,6 +53,6 @@ object CustomPlaybackSpeedPatch : AbstractCustomPlaybackSpeedPatch(
)
)
SettingsPatch.updatePatchStatus("custom-playback-speed")
SettingsPatch.updatePatchStatus("Custom playback speed")
}
}

View File

@ -71,7 +71,7 @@ object DisableHdrVideoPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("disable-hdr-video")
SettingsPatch.updatePatchStatus("Disable hdr video")
}
}

View File

@ -117,7 +117,7 @@ object VideoQualityPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("default-video-quality")
SettingsPatch.updatePatchStatus("Default video quality")
}

View File

@ -83,7 +83,7 @@ object PlaybackSpeedPatch : BytecodePatch(
)
)
SettingsPatch.updatePatchStatus("default-playback-speed")
SettingsPatch.updatePatchStatus("Default playback speed")
}

View File

@ -67,15 +67,15 @@ internal object ResourceHelper {
}
internal fun ResourceContext.updatePatchStatusLabel(appName: String) {
updatePatchStatusSettings("labels", appName)
updatePatchStatusSettings("Labels", appName)
}
internal fun ResourceContext.updatePatchStatusIcon(iconName: String) {
updatePatchStatusSettings("icons", "@string/revanced_icons_$iconName")
updatePatchStatusSettings("Icons", "@string/revanced_icons_$iconName")
}
internal fun ResourceContext.updatePatchStatusTheme(themeName: String) {
updatePatchStatusSettings("themes", "@string/revanced_themes_$themeName")
updatePatchStatusSettings("Themes", "@string/revanced_themes_$themeName")
}
private fun ResourceContext.updatePatchStatusSettings(