mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
refactor: renamed some patches description
This commit is contained in:
@ -17,7 +17,7 @@ import org.w3c.dom.Element
|
||||
|
||||
@Patch
|
||||
@Name("custom-branding-microg-name")
|
||||
@Description("Changes the MicroG launcher name to your choice (defaults to MicroG).")
|
||||
@Description("Rename the MicroG app to the name specified in options.json.")
|
||||
@MicroGCompatibility
|
||||
@Version("0.0.1")
|
||||
class CustomBrandingNamePatch : ResourcePatch {
|
||||
|
@ -16,8 +16,8 @@ import app.revanced.util.enum.CategoryType
|
||||
import app.revanced.util.integrations.Constants.MUSIC_ADS_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-music-ads")
|
||||
@Description("Removes ads in the music player.")
|
||||
@Name("hide-video-ads")
|
||||
@Description("Removes ads in the music video.")
|
||||
@DependsOn(
|
||||
[
|
||||
LithoFilterPatch::class,
|
||||
|
@ -16,7 +16,7 @@ import org.w3c.dom.Element
|
||||
|
||||
@Patch(false)
|
||||
@Name("custom-branding-music-name")
|
||||
@Description("Changes the Music launcher name to your choice (defaults to YTM Extended, ReVanced Music Extended).")
|
||||
@Description("Rename the YouTube Music app to the name specified in options.json.")
|
||||
@MusicCompatibility
|
||||
@Version("0.0.1")
|
||||
class CustomBrandingNamePatch : ResourcePatch {
|
||||
|
@ -12,7 +12,7 @@ import app.revanced.patches.music.utils.annotations.MusicCompatibility
|
||||
|
||||
@Patch
|
||||
@Name("bitrate-default-value")
|
||||
@Description("Set the audio quality to 'Always High' when you first install the app.")
|
||||
@Description("Set the audio quality to \"Always High\" when you first install the app.")
|
||||
@MusicCompatibility
|
||||
@Version("0.0.1")
|
||||
class BitrateDefaultValuePatch : ResourcePatch {
|
||||
|
@ -14,7 +14,7 @@ import app.revanced.patches.music.misc.minimizedplayback.fingerprints.MinimizedP
|
||||
import app.revanced.patches.music.utils.annotations.MusicCompatibility
|
||||
|
||||
@Patch
|
||||
@Name("minimized-playback-music")
|
||||
@Name("enable-minimized-playback")
|
||||
@Description("Enables minimized playback on Kids music.")
|
||||
@MusicCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -13,7 +13,7 @@ import java.nio.file.Files
|
||||
import java.nio.file.StandardCopyOption
|
||||
|
||||
@Patch
|
||||
@Name("optimize-resource-music")
|
||||
@Name("optimize-resource")
|
||||
@Description("Remove unnecessary resources.")
|
||||
@MusicCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -17,10 +17,10 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-taste-builder")
|
||||
@Description("Removes the \"Tell us which artists you like\" card from the home screen.")
|
||||
@Description("Hides the \"Tell us which artists you like\" card from homepage.")
|
||||
@MusicCompatibility
|
||||
@Version("0.0.1")
|
||||
class RemoveTasteBuilderPatch : BytecodePatch(
|
||||
class TasteBuilderPatch : BytecodePatch(
|
||||
listOf(TasteBuilderConstructorFingerprint)
|
||||
) {
|
||||
override fun execute(context: BytecodeContext): PatchResult {
|
@ -14,12 +14,12 @@ import app.revanced.patches.music.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.resources.ResourceHelper.addTranslations
|
||||
|
||||
@Patch
|
||||
@Name("translations-music")
|
||||
@Name("translations")
|
||||
@Description("Add Crowdin translations for YouTube Music.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@MusicCompatibility
|
||||
@Version("0.0.1")
|
||||
class MusicTranslationsPatch : ResourcePatch {
|
||||
class TranslationsPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
context.addTranslations("music", LANGUAGE_LIST)
|
@ -25,7 +25,7 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-upgrade-button")
|
||||
@Description("Remove upgrade tab from pivot bar, hide upgrade banner from homepage.")
|
||||
@Description("Hides upgrade button from navigation bar and hide upgrade banner from homepage.")
|
||||
@DependsOn(
|
||||
[
|
||||
IntegrationsPatch::class,
|
||||
@ -34,7 +34,7 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
)
|
||||
@MusicCompatibility
|
||||
@Version("0.0.1")
|
||||
class RemoveUpgradeButtonPatch : BytecodePatch(
|
||||
class UpgradeButtonPatch : BytecodePatch(
|
||||
listOf(
|
||||
PivotBarConstructorFingerprint,
|
||||
NotifierShelfFingerprint
|
@ -17,7 +17,7 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-comment-component")
|
||||
@Description("Adds options to hide comment component under a video.")
|
||||
@Description("Hides components related to comments.")
|
||||
@DependsOn(
|
||||
[
|
||||
GeneralAdsBytecodePatch::class,
|
||||
|
@ -20,7 +20,7 @@ import app.revanced.patches.youtube.fullscreen.fullscreenpanels.fingerprints.Ful
|
||||
import app.revanced.patches.youtube.fullscreen.fullscreenpanels.fingerprints.FullscreenViewAdderFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.fingerprints.LayoutConstructorFingerprint
|
||||
import app.revanced.patches.youtube.utils.quickactionscontainer.patch.HideQuickActionsContainerPatch
|
||||
import app.revanced.patches.youtube.utils.quickactions.patch.QuickActionsHookPatch
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.FullScreenEngagementPanel
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
@ -37,7 +37,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
|
||||
@Description("Hides video description and comments panel in fullscreen view.")
|
||||
@DependsOn(
|
||||
[
|
||||
HideQuickActionsContainerPatch::class,
|
||||
QuickActionsHookPatch::class,
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
]
|
||||
|
@ -11,7 +11,7 @@ import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.litho.patch.LithoFilterPatch
|
||||
import app.revanced.patches.youtube.utils.quickactionscontainer.patch.HideQuickActionsContainerPatch
|
||||
import app.revanced.patches.youtube.utils.quickactions.patch.QuickActionsHookPatch
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
|
||||
@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
@DependsOn(
|
||||
[
|
||||
LithoFilterPatch::class,
|
||||
HideQuickActionsContainerPatch::class,
|
||||
QuickActionsHookPatch::class,
|
||||
SettingsPatch::class
|
||||
]
|
||||
)
|
||||
|
@ -25,8 +25,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.GENERAL
|
||||
|
||||
@Patch
|
||||
@Name("hide-auto-captions")
|
||||
@Description("Hide captions from being automatically enabled.")
|
||||
@Name("disable-auto-captions")
|
||||
@Description("Disables forced auto captions.")
|
||||
@DependsOn(
|
||||
[
|
||||
PlayerTypeHookPatch::class,
|
||||
@ -60,7 +60,7 @@ class AutoCaptionsPatch : BytecodePatch(
|
||||
it.mutableMethod.apply {
|
||||
addInstructionsWithLabels(
|
||||
0, """
|
||||
invoke-static {}, $GENERAL->hideAutoCaptions()Z
|
||||
invoke-static {}, $GENERAL->disableAutoCaptions()Z
|
||||
move-result v0
|
||||
if-eqz v0, :auto_captions_shown
|
||||
sget-boolean v0, $GENERAL->captionsButtonStatus:Z
|
||||
@ -78,11 +78,11 @@ class AutoCaptionsPatch : BytecodePatch(
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: GENERAL_SETTINGS",
|
||||
"SETTINGS: HIDE_AUTO_CAPTIONS"
|
||||
"SETTINGS: DISABLE_AUTO_CAPTIONS"
|
||||
)
|
||||
)
|
||||
|
||||
SettingsPatch.updatePatchStatus("hide-auto-captions")
|
||||
SettingsPatch.updatePatchStatus("disable-auto-captions")
|
||||
|
||||
return PatchResultSuccess()
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.youtube.general.suggestions.fingerprints.BreakingNewsFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.litho.patch.LithoFilterPatch
|
||||
import app.revanced.patches.youtube.utils.navbarindex.patch.NavBarIndexPatch
|
||||
import app.revanced.patches.youtube.utils.navbarindex.patch.NavBarIndexHookPatch
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.GENERAL
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
@ -26,7 +26,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
@DependsOn(
|
||||
[
|
||||
LithoFilterPatch::class,
|
||||
NavBarIndexPatch::class,
|
||||
NavBarIndexHookPatch::class,
|
||||
SettingsPatch::class
|
||||
]
|
||||
)
|
||||
|
@ -19,8 +19,8 @@ import org.w3c.dom.Element
|
||||
|
||||
@Patch
|
||||
@Name("custom-branding-youtube-name")
|
||||
@Description("Rename the YouTube app to the name specified in options.json.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@Description("Changes the YouTube launcher name to your choice (defaults to ReVanced Extended).")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class CustomBrandingNamePatch : ResourcePatch {
|
||||
|
@ -19,7 +19,7 @@ import org.w3c.dom.Element
|
||||
|
||||
@Patch
|
||||
@Name("theme")
|
||||
@Description("Applies a custom theme (default: amoled).")
|
||||
@Description("Change the app's theme to the values specified in options.json.")
|
||||
@DependsOn(
|
||||
[
|
||||
GeneralThemePatch::class,
|
||||
|
@ -26,7 +26,7 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction35c
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
|
||||
@Name("always-auto-repeat")
|
||||
@Name("always-repeat")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class AutoRepeatPatch : BytecodePatch(
|
||||
|
@ -10,7 +10,7 @@ import app.revanced.patcher.patch.ResourcePatch
|
||||
import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonPatch
|
||||
import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonHookPatch
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch
|
||||
@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
@Description("Hides the collapse button in the video player.")
|
||||
@DependsOn(
|
||||
[
|
||||
PlayerButtonPatch::class,
|
||||
PlayerButtonHookPatch::class,
|
||||
SettingsPatch::class
|
||||
]
|
||||
)
|
||||
|
@ -10,7 +10,7 @@ import app.revanced.patcher.patch.ResourcePatch
|
||||
import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonPatch
|
||||
import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonHookPatch
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch
|
||||
@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
@Description("Hides the live chat button in the video player (for old layout).")
|
||||
@DependsOn(
|
||||
[
|
||||
PlayerButtonPatch::class,
|
||||
PlayerButtonHookPatch::class,
|
||||
SettingsPatch::class
|
||||
]
|
||||
)
|
||||
|
@ -13,7 +13,7 @@ import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.youtube.player.playerbuttonbg.fingerprints.HidePlayerButtonFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonPatch
|
||||
import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonHookPatch
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH
|
||||
|
||||
@ -22,7 +22,7 @@ import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH
|
||||
@Description("Hide player button background.")
|
||||
@DependsOn(
|
||||
[
|
||||
PlayerButtonPatch::class,
|
||||
PlayerButtonHookPatch::class,
|
||||
SettingsPatch::class
|
||||
]
|
||||
)
|
||||
|
@ -10,7 +10,7 @@ import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonPatch
|
||||
import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonHookPatch
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch
|
||||
@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
@Description("Hides the previous and next button in the player controller.")
|
||||
@DependsOn(
|
||||
[
|
||||
PlayerButtonPatch::class,
|
||||
PlayerButtonHookPatch::class,
|
||||
SettingsPatch::class
|
||||
]
|
||||
)
|
||||
|
@ -23,11 +23,11 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
import org.jf.dexlib2.iface.instruction.formats.Instruction35c
|
||||
import org.jf.dexlib2.iface.reference.MethodReference
|
||||
|
||||
@Name("hook-navbar-index-patch")
|
||||
@Name("navbar-index-hook")
|
||||
@DependsOn([SharedResourceIdPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class NavBarIndexPatch : BytecodePatch(
|
||||
class NavBarIndexHookPatch : BytecodePatch(
|
||||
listOf(
|
||||
NavBarBuilderFingerprint,
|
||||
OnBackPressedFingerprint,
|
@ -19,11 +19,11 @@ import org.jf.dexlib2.Opcode
|
||||
import org.jf.dexlib2.builder.instruction.BuilderInstruction21c
|
||||
import org.jf.dexlib2.builder.instruction.BuilderInstruction35c
|
||||
|
||||
@Name("hook-player-button-patch")
|
||||
@Name("player-button-hook")
|
||||
@DependsOn([SharedResourceIdPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class PlayerButtonPatch : BytecodePatch(
|
||||
class PlayerButtonHookPatch : BytecodePatch(
|
||||
listOf(LiveChatFingerprint)
|
||||
) {
|
||||
override fun execute(context: BytecodeContext): PatchResult {
|
@ -34,7 +34,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-patch")
|
||||
@Name("player-controls")
|
||||
@DependsOn([SharedResourceIdPatch::class])
|
||||
@Description("Manages the code for the player controls of the YouTube player.")
|
||||
@YouTubeCompatibility
|
||||
|
@ -1,4 +1,4 @@
|
||||
package app.revanced.patches.youtube.utils.quickactionscontainer.fingerprints
|
||||
package app.revanced.patches.youtube.utils.quickactions.fingerprints
|
||||
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.QuickActionsElementContainer
|
@ -1,4 +1,4 @@
|
||||
package app.revanced.patches.youtube.utils.quickactionscontainer.patch
|
||||
package app.revanced.patches.youtube.utils.quickactions.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Name
|
||||
@ -11,16 +11,16 @@ 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.quickactionscontainer.fingerprints.QuickActionsElementFingerprint
|
||||
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("hide-quick-actions-hook")
|
||||
@Name("quick-actions-hook")
|
||||
@DependsOn([SharedResourceIdPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class HideQuickActionsContainerPatch : BytecodePatch(
|
||||
class QuickActionsHookPatch : BytecodePatch(
|
||||
listOf(QuickActionsElementFingerprint)
|
||||
) {
|
||||
override fun execute(context: BytecodeContext): PatchResult {
|
Reference in New Issue
Block a user