mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +02:00
refactor: renamed some patches description
This commit is contained in:
@ -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