From 8f3f20036b6abc54121ab0683834916257e2ad04 Mon Sep 17 00:00:00 2001 From: Aaron Veil <70171475+anddea@users.noreply.github.com> Date: Wed, 15 May 2024 15:28:42 +0300 Subject: [PATCH] feat(YouTube): Add `Hide videos by duration` and `Hide videos by views count` greater than specified value (#48) * Patch description changes (#46) * fix(YouTube/Video playback): Typo in patch description * feat(YouTube): Improve patch description fix(YouTube/Change shorts repeat state): Patch description issues feat(YouTube/Custom double tap length): Clarify patch description fix(YouTube/Description components): Grammar in patch description fix(YouTube/Disable haptic feedback): Patch description grammar feat(YouTube/Disable splash animation): Clarify patch description fix(YouTube/Enable gradient loading screen): Grammar fix(YouTube/Hide feed components): Grammar feat(YouTube/Layout switch): Clarify patch description fix(YouTube/MaterialYou): Add punctuation to patch description fix(YouTube/Navigation bar components): Grammar (feat(YouTube/Overlay buttons): Clarify patch description fix(YouTube/Player components): Grammar fix(YouTube/RYD): Make patch description consistent fix(YouTube/Seekbar components): Incorrect patch description fix(YouTube/SponsorBlock): Grammar fix(YouTube/Shorts outline icon): Make patch description consistent fix(YouTube/Spoof format stream data): Grammar feat(YouTube/Spoof test client): Clarify patch description fix(YouTube/Theme): Grammar fix(YouTube/Toolbar components): Punctuation fix(YouTube/Translations): Consistent grammar * fix(YouTube/Custom double tap length): Unclear wording * feat(YouTube/Custom branding icon): Use consistent patch description * feat(YouTube/Custom branding name): Use consistent patch description * feat(YouTube): Make patch descriptions consistent with YT Music * feat(YT Music): Improve patch descriptions * feat(YT Music/Hide overlay filter): Clarify patch description * chore: Update gitignore * feat(YouTube): Add `Hide videos by duration` and `Hide videos by views count` greater than specified value --------- Co-authored-by: KobeW50 <84587632+KobeW50@users.noreply.github.com> --- .gitignore | 2 ++ .../account/components/AccountComponentsPatch.kt | 2 +- .../redirection/DislikeRedirectionPatch.kt | 2 +- .../layout/overlayfilter/OverlayFilterPatch.kt | 2 +- .../playeroverlay/PlayerOverlayFilterPatch.kt | 2 +- .../music/misc/codecs/ForceOpusCodecPatch.kt | 2 +- .../components/NavigationBarComponentsPatch.kt | 2 +- .../player/components/PlayerComponentsPatch.kt | 2 +- .../music/utils/sponsorblock/SponsorBlockPatch.kt | 2 +- .../music/video/playback/VideoPlaybackPatch.kt | 2 +- .../feed/components/FeedComponentsPatch.kt | 2 +- .../general/layoutswitch/LayoutSwitchPatch.kt | 2 +- .../loadingscreen/GradientLoadingScreenPatch.kt | 2 +- .../navigation/NavigationBarComponentsPatch.kt | 2 +- .../splashanimation/SplashAnimationPatch.kt | 2 +- .../general/toolbar/ToolBarComponentsPatch.kt | 2 +- .../branding/icon/CustomBrandingIconPatch.kt | 2 +- .../branding/name/CustomBrandingNamePatch.kt | 2 +- .../doubletaplength/DoubleTapLengthPatch.kt | 2 +- .../youtube/layout/theme/MaterialYouPatch.kt | 2 +- .../patches/youtube/layout/theme/ThemePatch.kt | 2 +- .../layout/translations/TranslationsPatch.kt | 2 +- .../youtube/misc/test/SpoofTestClientPatch.kt | 2 +- .../player/ambientmode/AmbientModeSwitchPatch.kt | 2 +- .../player/components/PlayerComponentsPatch.kt | 2 +- .../descriptions/DescriptionComponentsPatch.kt | 2 +- .../player/hapticfeedback/HapticFeedBackPatch.kt | 2 +- .../player/overlaybuttons/OverlayButtonsPatch.kt | 2 +- .../player/seekbar/SeekbarComponentsPatch.kt | 2 +- .../outlinebutton/ShortsOutlineButtonPatch.kt | 2 +- .../youtube/shorts/repeat/ShortsRepeatPatch.kt | 2 +- .../formatstream/SpoofFormatStreamDataPatch.kt | 2 +- .../general/ReturnYouTubeDislikePatch.kt | 2 +- .../utils/sponsorblock/SponsorBlockPatch.kt | 2 +- .../youtube/video/playback/VideoPlaybackPatch.kt | 4 ++-- .../youtube/settings/host/values/strings.xml | 15 +++++++++++++-- .../youtube/settings/xml/revanced_prefs.xml | 8 +++++++- 37 files changed, 57 insertions(+), 38 deletions(-) diff --git a/.gitignore b/.gitignore index 501541766..74dd4e728 100644 --- a/.gitignore +++ b/.gitignore @@ -124,3 +124,5 @@ node_modules/ # gradle properties, due to Github token ./gradle.properties + +.DS_Store diff --git a/src/main/kotlin/app/revanced/patches/music/account/components/AccountComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/music/account/components/AccountComponentsPatch.kt index 51583709a..f54279a3a 100644 --- a/src/main/kotlin/app/revanced/patches/music/account/components/AccountComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/account/components/AccountComponentsPatch.kt @@ -24,7 +24,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Suppress("unused") object AccountComponentsPatch : BaseBytecodePatch( name = "Hide account components", - description = "Adds the options to hide components related to account menu.", + description = "Adds options to hide components related to the account menu.", dependencies = setOf( SettingsPatch::class, SharedResourceIdPatch::class diff --git a/src/main/kotlin/app/revanced/patches/music/general/redirection/DislikeRedirectionPatch.kt b/src/main/kotlin/app/revanced/patches/music/general/redirection/DislikeRedirectionPatch.kt index 226ed2b5e..83243eb6b 100644 --- a/src/main/kotlin/app/revanced/patches/music/general/redirection/DislikeRedirectionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/general/redirection/DislikeRedirectionPatch.kt @@ -27,7 +27,7 @@ import com.android.tools.smali.dexlib2.iface.reference.Reference @Suppress("unused") object DislikeRedirectionPatch : BaseBytecodePatch( name = "Disable dislike redirection", - description = "Adds an option to disable redirection to the next track when clicking dislike button.", + description = "Adds an option to disable redirection to the next track when clicking the dislike button.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE, fingerprints = setOf( diff --git a/src/main/kotlin/app/revanced/patches/music/layout/overlayfilter/OverlayFilterPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/overlayfilter/OverlayFilterPatch.kt index 997619e72..85758ea71 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/overlayfilter/OverlayFilterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/overlayfilter/OverlayFilterPatch.kt @@ -7,7 +7,7 @@ import app.revanced.util.patch.BaseResourcePatch @Suppress("DEPRECATION", "unused") object OverlayFilterPatch : BaseResourcePatch( name = "Hide overlay filter", - description = "Hides the dark overlay when comment, share, save to playlist, and flyout panels are open.", + description = "Hides the dark overlay when player flyout menus are open.", dependencies = setOf(OverlayFilterBytecodePatch::class), compatiblePackages = COMPATIBLE_PACKAGE, use = false diff --git a/src/main/kotlin/app/revanced/patches/music/layout/playeroverlay/PlayerOverlayFilterPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/playeroverlay/PlayerOverlayFilterPatch.kt index 7d8395042..bf814dfeb 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/playeroverlay/PlayerOverlayFilterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/playeroverlay/PlayerOverlayFilterPatch.kt @@ -8,7 +8,7 @@ import app.revanced.util.patch.BaseResourcePatch @Suppress("unused") object PlayerOverlayFilterPatch : BaseResourcePatch( name = "Hide player overlay filter", - description = "Hides the dark overlay when single-tapping player.", + description = "Hides the dark overlay when single-tapping the player.", compatiblePackages = COMPATIBLE_PACKAGE, use = false ) { diff --git a/src/main/kotlin/app/revanced/patches/music/misc/codecs/ForceOpusCodecPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/codecs/ForceOpusCodecPatch.kt index 048855893..aa75ac6bf 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/codecs/ForceOpusCodecPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/codecs/ForceOpusCodecPatch.kt @@ -10,7 +10,7 @@ import app.revanced.util.patch.BaseResourcePatch @Suppress("unused") object ForceOpusCodecPatch : BaseResourcePatch( name = "Enable opus codec", - description = "Adds an option use the opus audio codec instead of the mp4a audio codec.", + description = "Adds an option to use the opus audio codec instead of the mp4a audio codec.", dependencies = setOf( ForceOpusCodecBytecodePatch::class, SettingsPatch::class diff --git a/src/main/kotlin/app/revanced/patches/music/navigation/components/NavigationBarComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/music/navigation/components/NavigationBarComponentsPatch.kt index a8eff2973..5aaf2f6aa 100644 --- a/src/main/kotlin/app/revanced/patches/music/navigation/components/NavigationBarComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/navigation/components/NavigationBarComponentsPatch.kt @@ -25,7 +25,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c @Suppress("DEPRECATION", "SpellCheckingInspection", "unused") object NavigationBarComponentsPatch : BaseBytecodePatch( name = "Navigation bar components", - description = "Adds options to hide or change components related to navigation bar.", + description = "Adds options to hide or change components related to the navigation bar.", dependencies = setOf( SettingsPatch::class, SharedResourceIdPatch::class diff --git a/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt index 451ef83c6..9abe6d980 100644 --- a/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt @@ -78,7 +78,7 @@ import kotlin.properties.Delegates @Suppress("unused", "LocalVariableName") object PlayerComponentsPatch : BaseBytecodePatch( name = "Player components", - description = "Adds options to hide or change components related to player.", + description = "Adds options to hide or change components related to the player.", dependencies = setOf( LithoFilterPatch::class, PlayerComponentsResourcePatch::class, diff --git a/src/main/kotlin/app/revanced/patches/music/utils/sponsorblock/SponsorBlockPatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/sponsorblock/SponsorBlockPatch.kt index 08f5ebce9..0cd1cc1f8 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/sponsorblock/SponsorBlockPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/sponsorblock/SponsorBlockPatch.kt @@ -18,7 +18,7 @@ import org.w3c.dom.Element @Suppress("DEPRECATION", "SameParameterValue", "unused") object SponsorBlockPatch : BaseResourcePatch( name = "SponsorBlock", - description = "Adds options to enable and configure SponsorBlock, which can skip undesired video segments such as non-music sections.", + description = "Adds options to enable and configure SponsorBlock, which can skip undesired video segments, such as non-music sections.", dependencies = setOf( SettingsPatch::class, SponsorBlockBytecodePatch::class diff --git a/src/main/kotlin/app/revanced/patches/music/video/playback/VideoPlaybackPatch.kt b/src/main/kotlin/app/revanced/patches/music/video/playback/VideoPlaybackPatch.kt index cfb6cdcb5..88a235e58 100644 --- a/src/main/kotlin/app/revanced/patches/music/video/playback/VideoPlaybackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/video/playback/VideoPlaybackPatch.kt @@ -24,7 +24,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction @Suppress("unused") object VideoPlaybackPatch : BaseBytecodePatch( name = "Video playback", - description = "Adds options to customize settings related to video playback," + + description = "Adds options to customize settings related to video playback, " + "such as default video quality and playback speed.", dependencies = setOf( CustomPlaybackSpeedPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/feed/components/FeedComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/feed/components/FeedComponentsPatch.kt index 8cbfe1eea..a03473257 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/feed/components/FeedComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/feed/components/FeedComponentsPatch.kt @@ -50,7 +50,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference @Suppress("unused") object FeedComponentsPatch : BaseBytecodePatch( name = "Hide feed components", - description = "Adds options to hide components related to feed.", + description = "Adds options to hide components related to the feed.", dependencies = setOf( LithoFilterPatch::class, NavigationBarHookPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/layoutswitch/LayoutSwitchPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/layoutswitch/LayoutSwitchPatch.kt index c700f32cf..821a473e5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/layoutswitch/LayoutSwitchPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/layoutswitch/LayoutSwitchPatch.kt @@ -20,7 +20,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Suppress("unused") object LayoutSwitchPatch : BaseBytecodePatch( name = "Layout switch", - description = "Adds an option to trick dpi to use tablet or phone layout.", + description = "Adds an option to spoof the dpi in order to use a tablet or phone layout.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE, fingerprints = setOf( diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/loadingscreen/GradientLoadingScreenPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/loadingscreen/GradientLoadingScreenPatch.kt index 1e987aef4..a97f580ce 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/loadingscreen/GradientLoadingScreenPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/loadingscreen/GradientLoadingScreenPatch.kt @@ -12,7 +12,7 @@ import app.revanced.util.patch.BaseBytecodePatch @Suppress("unused") object GradientLoadingScreenPatch : BaseBytecodePatch( name = "Enable gradient loading screen", - description = "Adds an option to enable gradient loading screen.", + description = "Adds an option to enable the gradient loading screen.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE, fingerprints = setOf( diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/navigation/NavigationBarComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/navigation/NavigationBarComponentsPatch.kt index ca24d8040..f81c3354e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/navigation/NavigationBarComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/navigation/NavigationBarComponentsPatch.kt @@ -22,7 +22,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Suppress("unused") object NavigationBarComponentsPatch : BaseBytecodePatch( name = "Navigation bar components", - description = "Adds options to hide or change components related to navigation bar.", + description = "Adds options to hide or change components related to the navigation bar.", dependencies = setOf( SettingsPatch::class, NavigationBarHookPatch::class diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/splashanimation/SplashAnimationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/splashanimation/SplashAnimationPatch.kt index 377724735..c6d0b777f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/splashanimation/SplashAnimationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/splashanimation/SplashAnimationPatch.kt @@ -18,7 +18,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Suppress("unused") object SplashAnimationPatch : BaseBytecodePatch( name = "Disable splash animation", - description = "Adds an option to disable splash animation.", + description = "Adds an option to disable the splash animation on app startup.", dependencies = setOf( SettingsPatch::class, SharedResourceIdPatch::class diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/toolbar/ToolBarComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/toolbar/ToolBarComponentsPatch.kt index b178ad154..5a9462374 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/toolbar/ToolBarComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/toolbar/ToolBarComponentsPatch.kt @@ -62,7 +62,7 @@ import org.w3c.dom.Element @Suppress("DEPRECATION", "unused") object ToolBarComponentsPatch : BaseBytecodePatch( name = "Toolbar components", - description = "Adds options to hide or change components located on the toolbar such as toolbar buttons, search bar, and header.", + description = "Adds options to hide or change components located on the toolbar, such as toolbar buttons, search bar, and header.", dependencies = setOf( CastButtonPatch::class, SettingsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/CustomBrandingIconPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/CustomBrandingIconPatch.kt index 352bb8a25..170310b13 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/CustomBrandingIconPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/CustomBrandingIconPatch.kt @@ -15,7 +15,7 @@ import java.nio.file.Files @Suppress("DEPRECATION", "unused") object CustomBrandingIconPatch : BaseResourcePatch( name = "Custom branding icon YouTube", - description = "Change the YouTube launcher icon to the icon specified in options.json.", + description = "Changes the YouTube app icon to the icon specified in options.json.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/name/CustomBrandingNamePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/name/CustomBrandingNamePatch.kt index 1ba90af2f..a3b656a2a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/name/CustomBrandingNamePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/name/CustomBrandingNamePatch.kt @@ -12,7 +12,7 @@ import app.revanced.util.patch.BaseResourcePatch @Suppress("DEPRECATION", "unused") object CustomBrandingNamePatch : BaseResourcePatch( name = "Custom branding name YouTube", - description = "Rename the YouTube app to the name specified in options.json.", + description = "Renames the YouTube app to the name specified in options.json.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/doubletaplength/DoubleTapLengthPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/doubletaplength/DoubleTapLengthPatch.kt index 06ea72d4c..5620bd3fb 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/doubletaplength/DoubleTapLengthPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/doubletaplength/DoubleTapLengthPatch.kt @@ -14,7 +14,7 @@ import java.nio.file.Files @Suppress("DEPRECATION", "unused") object DoubleTapLengthPatch : BaseResourcePatch( name = "Custom double tap length", - description = "Add 'double-tap to seek' value.", + description = "Adds 'double-tap to seek' values that are specified in options.json.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/MaterialYouPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/MaterialYouPatch.kt index 6cd595bf1..2f121d757 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/MaterialYouPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/MaterialYouPatch.kt @@ -13,7 +13,7 @@ import app.revanced.util.patch.BaseResourcePatch @Suppress("DEPRECATION", "unused") object MaterialYouPatch : BaseResourcePatch( name = "MaterialYou", - description = "Enables MaterialYou theme for Android 12+", + description = "Enables MaterialYou theme for Android 12+.", dependencies = setOf( BaseThemePatch::class, SettingsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemePatch.kt index 257b48677..a998fb2e4 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemePatch.kt @@ -13,7 +13,7 @@ import org.w3c.dom.Element @Suppress("DEPRECATION", "unused") object ThemePatch : BaseResourcePatch( name = "Theme", - description = "Change the app's theme to the values specified in options.json.", + description = "Changes the app's theme to the values specified in options.json.", dependencies = setOf( BaseThemePatch::class, SettingsPatch::class diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/translations/TranslationsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/translations/TranslationsPatch.kt index b38e45cde..a828c85bd 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/translations/TranslationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/translations/TranslationsPatch.kt @@ -9,7 +9,7 @@ import app.revanced.util.patch.BaseResourcePatch @Suppress("unused") object TranslationsPatch : BaseResourcePatch( name = "Translations", - description = "Add Crowdin translations for YouTube.", + description = "Adds Crowdin translations for YouTube.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/test/SpoofTestClientPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/test/SpoofTestClientPatch.kt index d6fed81a3..7b8dbd3b7 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/test/SpoofTestClientPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/test/SpoofTestClientPatch.kt @@ -25,7 +25,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference @Suppress("unused") object SpoofTestClientPatch : BaseBytecodePatch( name = "Spoof test client", - description = "Adds an option to spoof as test client.", + description = "Adds an option to spoof the client as a test client.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE, fingerprints = setOf( diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/ambientmode/AmbientModeSwitchPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/ambientmode/AmbientModeSwitchPatch.kt index e0628976a..3811f5a44 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/ambientmode/AmbientModeSwitchPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/ambientmode/AmbientModeSwitchPatch.kt @@ -25,7 +25,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference @Suppress("unused") object AmbientModeSwitchPatch : BaseBytecodePatch( name = "Ambient mode control", - description = "Adds an option to bypass the restrictions of ambient mode or disable it completely.", + description = "Adds options to disable ambient mode and to bypass ambient mode restrictions.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE, fingerprints = setOf( diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/components/PlayerComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/components/PlayerComponentsPatch.kt index a0938b717..db09f3137 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/components/PlayerComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/components/PlayerComponentsPatch.kt @@ -57,7 +57,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.WideLiteralInstruction @Suppress("unused") object PlayerComponentsPatch : BaseBytecodePatch( name = "Player components", - description = "Adds options to hide or change components related to player.", + description = "Adds options to hide or change components related to the video player.", dependencies = setOf( ControlsOverlayConfigPatch::class, LithoFilterPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/descriptions/DescriptionComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/descriptions/DescriptionComponentsPatch.kt index 4f6b00cec..3b2bd8673 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/descriptions/DescriptionComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/descriptions/DescriptionComponentsPatch.kt @@ -27,7 +27,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction @Suppress("unused") object DescriptionComponentsPatch : BaseBytecodePatch( name = "Description components", - description = "Adds an option to hide or disable description components.", + description = "Adds options to hide and disable description components.", dependencies = setOf( BottomSheetRecyclerViewPatch::class, LithoFilterPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/HapticFeedBackPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/HapticFeedBackPatch.kt index 4035f5528..cc7f977c2 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/HapticFeedBackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/hapticfeedback/HapticFeedBackPatch.kt @@ -22,7 +22,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Suppress("unused") object HapticFeedBackPatch : BaseBytecodePatch( name = "Disable haptic feedback", - description = "Adds an option to disable haptic feedback when swiping the video player.", + description = "Adds options to disable haptic feedback when swiping in the video player.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE, fingerprints = setOf( diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/overlaybuttons/OverlayButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/overlaybuttons/OverlayButtonsPatch.kt index 48429ef80..7694d36ad 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/overlaybuttons/OverlayButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/overlaybuttons/OverlayButtonsPatch.kt @@ -19,7 +19,7 @@ import org.w3c.dom.Element @Suppress("DEPRECATION", "unused") object OverlayButtonsPatch : BaseResourcePatch( name = "Overlay buttons", - description = "Adds an option to display overlay buttons in the video player.", + description = "Adds options to display overlay buttons in the video player.", dependencies = setOf( FullscreenButtonViewStubPatch::class, PlayerControlsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/player/seekbar/SeekbarComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/player/seekbar/SeekbarComponentsPatch.kt index b1917ade3..62e001351 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/player/seekbar/SeekbarComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/player/seekbar/SeekbarComponentsPatch.kt @@ -48,7 +48,7 @@ import org.w3c.dom.Element @Suppress("DEPRECATION", "unused") object SeekbarComponentsPatch : BaseBytecodePatch( name = "Seekbar components", - description = "Adds options to hide or change components related to player.", + description = "Adds options to hide or change components related to the seekbar.", dependencies = setOf( DrawableColorPatch::class, FlyoutMenuHookPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/outlinebutton/ShortsOutlineButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/outlinebutton/ShortsOutlineButtonPatch.kt index 99e4060cb..a7b2140f0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/outlinebutton/ShortsOutlineButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/outlinebutton/ShortsOutlineButtonPatch.kt @@ -10,7 +10,7 @@ import app.revanced.util.patch.BaseResourcePatch @Suppress("unused") object ShortsOutlineButtonPatch : BaseResourcePatch( name = "Shorts outline button", - description = "Apply the outline icon to the action button of the Shorts player.", + description = "Applies the outline icon to the action buttons in the Shorts player.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/shorts/repeat/ShortsRepeatPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/shorts/repeat/ShortsRepeatPatch.kt index 8cc2c490b..17c57f725 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/shorts/repeat/ShortsRepeatPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/shorts/repeat/ShortsRepeatPatch.kt @@ -23,7 +23,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction @Suppress("unused") object ShortsRepeatPatch : BaseBytecodePatch( name = "Change shorts repeat state", - description = "Adds an options for whether shorts should repeat, autoplay, or stop.", + description = "Adds an option to control whether Shorts should repeat, autoplay, or pause upon ending.", dependencies = setOf(SettingsPatch::class), compatiblePackages = COMPATIBLE_PACKAGE, fingerprints = setOf(ReelEnumConstructorFingerprint) diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/formatstream/SpoofFormatStreamDataPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/formatstream/SpoofFormatStreamDataPatch.kt index cc08f5ef9..88dd070a2 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/formatstream/SpoofFormatStreamDataPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/formatstream/SpoofFormatStreamDataPatch.kt @@ -33,7 +33,7 @@ import com.android.tools.smali.dexlib2.iface.reference.Reference @Suppress("unused") object SpoofFormatStreamDataPatch : BaseBytecodePatch( name = "Spoof format stream data", - description = "Adds options to spoof format stream data to prevent playback issues.", + description = "Adds an option to spoof the format stream data to prevent playback issues.", dependencies = setOf( SettingsPatch::class, VideoInformationPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/general/ReturnYouTubeDislikePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/general/ReturnYouTubeDislikePatch.kt index 3d4c5eb8a..10876d96b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/general/ReturnYouTubeDislikePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/general/ReturnYouTubeDislikePatch.kt @@ -27,7 +27,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction @Suppress("unused") object ReturnYouTubeDislikePatch : BaseBytecodePatch( name = "Return YouTube Dislike", - description = "Shows the dislike count of videos using the Return YouTube Dislike API.", + description = "Adds an option to show the dislike count of videos using the Return YouTube Dislike API.", dependencies = setOf( LithoFilterPatch::class, ReturnYouTubeDislikeRollingNumberPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/SponsorBlockPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/SponsorBlockPatch.kt index 7baa6e246..6ab312e82 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/SponsorBlockPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/sponsorblock/SponsorBlockPatch.kt @@ -14,7 +14,7 @@ import app.revanced.util.patch.BaseResourcePatch @Suppress("DEPRECATION", "unused") object SponsorBlockPatch : BaseResourcePatch( name = "SponsorBlock", - description = "Integrates SponsorBlock which allows skipping video segments such as sponsored content.", + description = "Adds options to enable and configure SponsorBlock, which can skip undesired video segments, such as sponsored content.", dependencies = setOf( SettingsPatch::class, SponsorBlockBytecodePatch::class diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/playback/VideoPlaybackPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/playback/VideoPlaybackPatch.kt index ec46e3c00..591d1d1ac 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/playback/VideoPlaybackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/playback/VideoPlaybackPatch.kt @@ -47,8 +47,8 @@ import com.android.tools.smali.dexlib2.util.MethodUtil @Suppress("unused") object VideoPlaybackPatch : BaseBytecodePatch( name = "Video playback", - description = "Adds options to customize settings related to video playback," + - "such as default video quality and playback speed, etc.", + description = "Adds options to customize settings related to video playback, " + + "such as default video quality and playback speed.", dependencies = setOf( BottomSheetRecyclerViewPatch::class, CustomPlaybackSpeedPatch::class, diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml index c4bfb87ed..724698d66 100644 --- a/src/main/resources/youtube/settings/host/values/strings.xml +++ b/src/main/resources/youtube/settings/host/values/strings.xml @@ -245,12 +245,23 @@ Limitations: • Videos with phrases such as 'People also watched' underneath. • Videos uploaded from channels not subscribed to that have less than 1,000 views." + + Duration filter + Hide videos based on duration + Hide videos with shorter than or longer than duration.\n\nKnown issue: It will not hide videos in the player related videos, instead it will hide the timestamp. + Longer than duration + Videos with duration longer than this number will be hidden. + Shorter than duration + Videos with duration shorter than this number will be hidden. + View count filter Hide recommended videos by views Hide recommended videos with less than a specified number of views. - Number of views - Recommended videos with views less than this number will be hidden. + Greater than views + Videos with views greater than this number will be hidden. + Less than views + Videos with views less than this number will be hidden. View keys Specify your language template for the number of views shown under each video in the user interface. Each key (a letter/word in your language) -> value (meaning of the key) must be on a new line. Keys go before "->" sign. If you change the app or system language you need to reset this setting.\n\nExamples:\nEnglish: 10K views = K -> 1000, views -> views\nSpanish: 10 K vistas = K -> 1000, vistas -> views K -> 1 000\nM -> 1 000 000\nB -> 1 000 000 000\nviews -> views diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml index f95317d3f..efc122571 100644 --- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml +++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml @@ -74,9 +74,15 @@ + + + + + - + +