mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +02:00
refactor: renamed some patches description
This commit is contained in:
@ -17,7 +17,7 @@ import org.w3c.dom.Element
|
|||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("custom-branding-microg-name")
|
@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
|
@MicroGCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class CustomBrandingNamePatch : ResourcePatch {
|
class CustomBrandingNamePatch : ResourcePatch {
|
||||||
|
@ -16,8 +16,8 @@ import app.revanced.util.enum.CategoryType
|
|||||||
import app.revanced.util.integrations.Constants.MUSIC_ADS_PATH
|
import app.revanced.util.integrations.Constants.MUSIC_ADS_PATH
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("hide-music-ads")
|
@Name("hide-video-ads")
|
||||||
@Description("Removes ads in the music player.")
|
@Description("Removes ads in the music video.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
LithoFilterPatch::class,
|
LithoFilterPatch::class,
|
||||||
|
@ -16,7 +16,7 @@ import org.w3c.dom.Element
|
|||||||
|
|
||||||
@Patch(false)
|
@Patch(false)
|
||||||
@Name("custom-branding-music-name")
|
@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
|
@MusicCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class CustomBrandingNamePatch : ResourcePatch {
|
class CustomBrandingNamePatch : ResourcePatch {
|
||||||
|
@ -12,7 +12,7 @@ import app.revanced.patches.music.utils.annotations.MusicCompatibility
|
|||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("bitrate-default-value")
|
@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
|
@MusicCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class BitrateDefaultValuePatch : ResourcePatch {
|
class BitrateDefaultValuePatch : ResourcePatch {
|
||||||
|
@ -14,7 +14,7 @@ import app.revanced.patches.music.misc.minimizedplayback.fingerprints.MinimizedP
|
|||||||
import app.revanced.patches.music.utils.annotations.MusicCompatibility
|
import app.revanced.patches.music.utils.annotations.MusicCompatibility
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("minimized-playback-music")
|
@Name("enable-minimized-playback")
|
||||||
@Description("Enables minimized playback on Kids music.")
|
@Description("Enables minimized playback on Kids music.")
|
||||||
@MusicCompatibility
|
@MusicCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
|
@ -13,7 +13,7 @@ import java.nio.file.Files
|
|||||||
import java.nio.file.StandardCopyOption
|
import java.nio.file.StandardCopyOption
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("optimize-resource-music")
|
@Name("optimize-resource")
|
||||||
@Description("Remove unnecessary resources.")
|
@Description("Remove unnecessary resources.")
|
||||||
@MusicCompatibility
|
@MusicCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
|
@ -17,10 +17,10 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
|||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("hide-taste-builder")
|
@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
|
@MusicCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class RemoveTasteBuilderPatch : BytecodePatch(
|
class TasteBuilderPatch : BytecodePatch(
|
||||||
listOf(TasteBuilderConstructorFingerprint)
|
listOf(TasteBuilderConstructorFingerprint)
|
||||||
) {
|
) {
|
||||||
override fun execute(context: BytecodeContext): PatchResult {
|
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
|
import app.revanced.util.resources.ResourceHelper.addTranslations
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("translations-music")
|
@Name("translations")
|
||||||
@Description("Add Crowdin translations for YouTube Music.")
|
@Description("Add Crowdin translations for YouTube Music.")
|
||||||
@DependsOn([SettingsPatch::class])
|
@DependsOn([SettingsPatch::class])
|
||||||
@MusicCompatibility
|
@MusicCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class MusicTranslationsPatch : ResourcePatch {
|
class TranslationsPatch : ResourcePatch {
|
||||||
override fun execute(context: ResourceContext): PatchResult {
|
override fun execute(context: ResourceContext): PatchResult {
|
||||||
|
|
||||||
context.addTranslations("music", LANGUAGE_LIST)
|
context.addTranslations("music", LANGUAGE_LIST)
|
@ -25,7 +25,7 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
|||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("hide-upgrade-button")
|
@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(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
IntegrationsPatch::class,
|
IntegrationsPatch::class,
|
||||||
@ -34,7 +34,7 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
|||||||
)
|
)
|
||||||
@MusicCompatibility
|
@MusicCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class RemoveUpgradeButtonPatch : BytecodePatch(
|
class UpgradeButtonPatch : BytecodePatch(
|
||||||
listOf(
|
listOf(
|
||||||
PivotBarConstructorFingerprint,
|
PivotBarConstructorFingerprint,
|
||||||
NotifierShelfFingerprint
|
NotifierShelfFingerprint
|
@ -17,7 +17,7 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
|
|||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("hide-comment-component")
|
@Name("hide-comment-component")
|
||||||
@Description("Adds options to hide comment component under a video.")
|
@Description("Hides components related to comments.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
GeneralAdsBytecodePatch::class,
|
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.fullscreen.fullscreenpanels.fingerprints.FullscreenViewAdderFingerprint
|
||||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||||
import app.revanced.patches.youtube.utils.fingerprints.LayoutConstructorFingerprint
|
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
|
||||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.FullScreenEngagementPanel
|
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.FullScreenEngagementPanel
|
||||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
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.")
|
@Description("Hides video description and comments panel in fullscreen view.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
HideQuickActionsContainerPatch::class,
|
QuickActionsHookPatch::class,
|
||||||
SettingsPatch::class,
|
SettingsPatch::class,
|
||||||
SharedResourceIdPatch::class
|
SharedResourceIdPatch::class
|
||||||
]
|
]
|
||||||
|
@ -11,7 +11,7 @@ import app.revanced.patcher.patch.annotations.DependsOn
|
|||||||
import app.revanced.patcher.patch.annotations.Patch
|
import app.revanced.patcher.patch.annotations.Patch
|
||||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||||
import app.revanced.patches.youtube.utils.litho.patch.LithoFilterPatch
|
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.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
|
|||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
LithoFilterPatch::class,
|
LithoFilterPatch::class,
|
||||||
HideQuickActionsContainerPatch::class,
|
QuickActionsHookPatch::class,
|
||||||
SettingsPatch::class
|
SettingsPatch::class
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -25,8 +25,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
|||||||
import app.revanced.util.integrations.Constants.GENERAL
|
import app.revanced.util.integrations.Constants.GENERAL
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("hide-auto-captions")
|
@Name("disable-auto-captions")
|
||||||
@Description("Hide captions from being automatically enabled.")
|
@Description("Disables forced auto captions.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
PlayerTypeHookPatch::class,
|
PlayerTypeHookPatch::class,
|
||||||
@ -60,7 +60,7 @@ class AutoCaptionsPatch : BytecodePatch(
|
|||||||
it.mutableMethod.apply {
|
it.mutableMethod.apply {
|
||||||
addInstructionsWithLabels(
|
addInstructionsWithLabels(
|
||||||
0, """
|
0, """
|
||||||
invoke-static {}, $GENERAL->hideAutoCaptions()Z
|
invoke-static {}, $GENERAL->disableAutoCaptions()Z
|
||||||
move-result v0
|
move-result v0
|
||||||
if-eqz v0, :auto_captions_shown
|
if-eqz v0, :auto_captions_shown
|
||||||
sget-boolean v0, $GENERAL->captionsButtonStatus:Z
|
sget-boolean v0, $GENERAL->captionsButtonStatus:Z
|
||||||
@ -78,11 +78,11 @@ class AutoCaptionsPatch : BytecodePatch(
|
|||||||
SettingsPatch.addPreference(
|
SettingsPatch.addPreference(
|
||||||
arrayOf(
|
arrayOf(
|
||||||
"PREFERENCE: GENERAL_SETTINGS",
|
"PREFERENCE: GENERAL_SETTINGS",
|
||||||
"SETTINGS: HIDE_AUTO_CAPTIONS"
|
"SETTINGS: DISABLE_AUTO_CAPTIONS"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
SettingsPatch.updatePatchStatus("hide-auto-captions")
|
SettingsPatch.updatePatchStatus("disable-auto-captions")
|
||||||
|
|
||||||
return PatchResultSuccess()
|
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.general.suggestions.fingerprints.BreakingNewsFingerprint
|
||||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||||
import app.revanced.patches.youtube.utils.litho.patch.LithoFilterPatch
|
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.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||||
import app.revanced.util.integrations.Constants.GENERAL
|
import app.revanced.util.integrations.Constants.GENERAL
|
||||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||||
@ -26,7 +26,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
|||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
LithoFilterPatch::class,
|
LithoFilterPatch::class,
|
||||||
NavBarIndexPatch::class,
|
NavBarIndexHookPatch::class,
|
||||||
SettingsPatch::class
|
SettingsPatch::class
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -19,8 +19,8 @@ import org.w3c.dom.Element
|
|||||||
|
|
||||||
@Patch
|
@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])
|
@DependsOn([SettingsPatch::class])
|
||||||
@Description("Changes the YouTube launcher name to your choice (defaults to ReVanced Extended).")
|
|
||||||
@YouTubeCompatibility
|
@YouTubeCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class CustomBrandingNamePatch : ResourcePatch {
|
class CustomBrandingNamePatch : ResourcePatch {
|
||||||
|
@ -19,7 +19,7 @@ import org.w3c.dom.Element
|
|||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("theme")
|
@Name("theme")
|
||||||
@Description("Applies a custom theme (default: amoled).")
|
@Description("Change the app's theme to the values specified in options.json.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
GeneralThemePatch::class,
|
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.OneRegisterInstruction
|
||||||
import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||||
|
|
||||||
@Name("always-auto-repeat")
|
@Name("always-repeat")
|
||||||
@YouTubeCompatibility
|
@YouTubeCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class AutoRepeatPatch : BytecodePatch(
|
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.DependsOn
|
||||||
import app.revanced.patcher.patch.annotations.Patch
|
import app.revanced.patcher.patch.annotations.Patch
|
||||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
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.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
|||||||
@Description("Hides the collapse button in the video player.")
|
@Description("Hides the collapse button in the video player.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
PlayerButtonPatch::class,
|
PlayerButtonHookPatch::class,
|
||||||
SettingsPatch::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.DependsOn
|
||||||
import app.revanced.patcher.patch.annotations.Patch
|
import app.revanced.patcher.patch.annotations.Patch
|
||||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
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.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||||
|
|
||||||
@Patch
|
@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).")
|
@Description("Hides the live chat button in the video player (for old layout).")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
PlayerButtonPatch::class,
|
PlayerButtonHookPatch::class,
|
||||||
SettingsPatch::class
|
SettingsPatch::class
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -13,7 +13,7 @@ import app.revanced.patcher.patch.annotations.DependsOn
|
|||||||
import app.revanced.patcher.patch.annotations.Patch
|
import app.revanced.patcher.patch.annotations.Patch
|
||||||
import app.revanced.patches.youtube.player.playerbuttonbg.fingerprints.HidePlayerButtonFingerprint
|
import app.revanced.patches.youtube.player.playerbuttonbg.fingerprints.HidePlayerButtonFingerprint
|
||||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
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.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||||
import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH
|
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.")
|
@Description("Hide player button background.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
PlayerButtonPatch::class,
|
PlayerButtonHookPatch::class,
|
||||||
SettingsPatch::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.DependsOn
|
||||||
import app.revanced.patcher.patch.annotations.Patch
|
import app.revanced.patcher.patch.annotations.Patch
|
||||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
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.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||||
|
|
||||||
@Patch
|
@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.")
|
@Description("Hides the previous and next button in the player controller.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
PlayerButtonPatch::class,
|
PlayerButtonHookPatch::class,
|
||||||
SettingsPatch::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.instruction.formats.Instruction35c
|
||||||
import org.jf.dexlib2.iface.reference.MethodReference
|
import org.jf.dexlib2.iface.reference.MethodReference
|
||||||
|
|
||||||
@Name("hook-navbar-index-patch")
|
@Name("navbar-index-hook")
|
||||||
@DependsOn([SharedResourceIdPatch::class])
|
@DependsOn([SharedResourceIdPatch::class])
|
||||||
@YouTubeCompatibility
|
@YouTubeCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class NavBarIndexPatch : BytecodePatch(
|
class NavBarIndexHookPatch : BytecodePatch(
|
||||||
listOf(
|
listOf(
|
||||||
NavBarBuilderFingerprint,
|
NavBarBuilderFingerprint,
|
||||||
OnBackPressedFingerprint,
|
OnBackPressedFingerprint,
|
@ -19,11 +19,11 @@ import org.jf.dexlib2.Opcode
|
|||||||
import org.jf.dexlib2.builder.instruction.BuilderInstruction21c
|
import org.jf.dexlib2.builder.instruction.BuilderInstruction21c
|
||||||
import org.jf.dexlib2.builder.instruction.BuilderInstruction35c
|
import org.jf.dexlib2.builder.instruction.BuilderInstruction35c
|
||||||
|
|
||||||
@Name("hook-player-button-patch")
|
@Name("player-button-hook")
|
||||||
@DependsOn([SharedResourceIdPatch::class])
|
@DependsOn([SharedResourceIdPatch::class])
|
||||||
@YouTubeCompatibility
|
@YouTubeCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class PlayerButtonPatch : BytecodePatch(
|
class PlayerButtonHookPatch : BytecodePatch(
|
||||||
listOf(LiveChatFingerprint)
|
listOf(LiveChatFingerprint)
|
||||||
) {
|
) {
|
||||||
override fun execute(context: BytecodeContext): PatchResult {
|
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.instruction.formats.Instruction35c
|
||||||
import org.jf.dexlib2.iface.reference.Reference
|
import org.jf.dexlib2.iface.reference.Reference
|
||||||
|
|
||||||
@Name("player-controls-patch")
|
@Name("player-controls")
|
||||||
@DependsOn([SharedResourceIdPatch::class])
|
@DependsOn([SharedResourceIdPatch::class])
|
||||||
@Description("Manages the code for the player controls of the YouTube player.")
|
@Description("Manages the code for the player controls of the YouTube player.")
|
||||||
@YouTubeCompatibility
|
@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.patcher.fingerprint.method.impl.MethodFingerprint
|
||||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.QuickActionsElementContainer
|
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.extensions.toErrorResult
|
||||||
import app.revanced.patcher.annotation.Name
|
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.PatchResultSuccess
|
||||||
import app.revanced.patcher.patch.annotations.DependsOn
|
import app.revanced.patcher.patch.annotations.DependsOn
|
||||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
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.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch
|
||||||
import app.revanced.util.integrations.Constants.FULLSCREEN
|
import app.revanced.util.integrations.Constants.FULLSCREEN
|
||||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||||
|
|
||||||
@Name("hide-quick-actions-hook")
|
@Name("quick-actions-hook")
|
||||||
@DependsOn([SharedResourceIdPatch::class])
|
@DependsOn([SharedResourceIdPatch::class])
|
||||||
@YouTubeCompatibility
|
@YouTubeCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class HideQuickActionsContainerPatch : BytecodePatch(
|
class QuickActionsHookPatch : BytecodePatch(
|
||||||
listOf(QuickActionsElementFingerprint)
|
listOf(QuickActionsElementFingerprint)
|
||||||
) {
|
) {
|
||||||
override fun execute(context: BytecodeContext): PatchResult {
|
override fun execute(context: BytecodeContext): PatchResult {
|
@ -46,6 +46,9 @@
|
|||||||
<string name="revanced_default_video_quality_mobile_title">Default video quality on Mobile network</string>
|
<string name="revanced_default_video_quality_mobile_title">Default video quality on Mobile network</string>
|
||||||
<string name="revanced_default_video_quality_wifi_title">Default video quality on Wi-Fi network</string>
|
<string name="revanced_default_video_quality_wifi_title">Default video quality on Wi-Fi network</string>
|
||||||
<string name="revanced_default_video_speed_title">Default video speed</string>
|
<string name="revanced_default_video_speed_title">Default video speed</string>
|
||||||
|
<string name="revanced_disable_auto_captions_summary_off">Forced auto captions are enabled</string>
|
||||||
|
<string name="revanced_disable_auto_captions_summary_on">Forced auto captions are disabled</string>
|
||||||
|
<string name="revanced_disable_auto_captions_title">Disable forced auto captions</string>
|
||||||
<string name="revanced_disable_default_video_speed_live_summary_off">Default video speed is enabled in live stream</string>
|
<string name="revanced_disable_default_video_speed_live_summary_off">Default video speed is enabled in live stream</string>
|
||||||
<string name="revanced_disable_default_video_speed_live_summary_on">Default video speed is disabled in live stream</string>
|
<string name="revanced_disable_default_video_speed_live_summary_on">Default video speed is disabled in live stream</string>
|
||||||
<string name="revanced_disable_default_video_speed_live_title">Disable video speed in live stream</string>
|
<string name="revanced_disable_default_video_speed_live_title">Disable video speed in live stream</string>
|
||||||
@ -195,9 +198,6 @@ Please do not report any issues you encounter while using this feature."</string
|
|||||||
<string name="revanced_hide_autoplay_preview_summary_off">Autoplay preview container is shown</string>
|
<string name="revanced_hide_autoplay_preview_summary_off">Autoplay preview container is shown</string>
|
||||||
<string name="revanced_hide_autoplay_preview_summary_on">Autoplay preview container is hidden</string>
|
<string name="revanced_hide_autoplay_preview_summary_on">Autoplay preview container is hidden</string>
|
||||||
<string name="revanced_hide_autoplay_preview_title">Hide autoplay preview container</string>
|
<string name="revanced_hide_autoplay_preview_title">Hide autoplay preview container</string>
|
||||||
<string name="revanced_hide_auto_captions_summary_off">Captions are enabled when playing a video with captioning is enforced</string>
|
|
||||||
<string name="revanced_hide_auto_captions_summary_on">"Captions aren't enabled when playing a video with captioning is enforced"</string>
|
|
||||||
<string name="revanced_hide_auto_captions_title">Hide auto captions</string>
|
|
||||||
<string name="revanced_hide_auto_player_popup_panels_summary_off">Auto player popup panels are shown</string>
|
<string name="revanced_hide_auto_player_popup_panels_summary_off">Auto player popup panels are shown</string>
|
||||||
<string name="revanced_hide_auto_player_popup_panels_summary_on">Auto player popup panels are hidden</string>
|
<string name="revanced_hide_auto_player_popup_panels_summary_on">Auto player popup panels are hidden</string>
|
||||||
<string name="revanced_hide_auto_player_popup_panels_title">Hide auto player popup panels</string>
|
<string name="revanced_hide_auto_player_popup_panels_title">Hide auto player popup panels</string>
|
||||||
|
@ -132,6 +132,9 @@
|
|||||||
<!-- PREFERENCE: GENERAL_SETTINGS
|
<!-- PREFERENCE: GENERAL_SETTINGS
|
||||||
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_general" />PREFERENCE: GENERAL_SETTINGS -->
|
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_general" />PREFERENCE: GENERAL_SETTINGS -->
|
||||||
|
|
||||||
|
<!-- SETTINGS: DISABLE_AUTO_CAPTIONS
|
||||||
|
<SwitchPreference android:title="@string/revanced_disable_auto_captions_title" android:key="revanced_disable_auto_captions" android:defaultValue="false" android:summaryOn="@string/revanced_disable_auto_captions_summary_on" android:summaryOff="@string/revanced_disable_auto_captions_summary_off" />SETTINGS: DISABLE_AUTO_CAPTIONS -->
|
||||||
|
|
||||||
<!-- SETTINGS: ENABLE_TABLET_MINI_PLAYER
|
<!-- SETTINGS: ENABLE_TABLET_MINI_PLAYER
|
||||||
<SwitchPreference android:title="@string/revanced_enable_tablet_mini_player_title" android:key="revanced_enable_tablet_mini_player" android:defaultValue="false" android:summaryOn="@string/revanced_enable_tablet_mini_player_summary_on" android:summaryOff="@string/revanced_enable_tablet_mini_player_summary_off" />SETTINGS: ENABLE_TABLET_MINI_PLAYER -->
|
<SwitchPreference android:title="@string/revanced_enable_tablet_mini_player_title" android:key="revanced_enable_tablet_mini_player" android:defaultValue="false" android:summaryOn="@string/revanced_enable_tablet_mini_player_summary_on" android:summaryOff="@string/revanced_enable_tablet_mini_player_summary_off" />SETTINGS: ENABLE_TABLET_MINI_PLAYER -->
|
||||||
|
|
||||||
@ -145,9 +148,6 @@
|
|||||||
<!-- SETTINGS: HIDE_LAYOUT_COMPONENTS
|
<!-- SETTINGS: HIDE_LAYOUT_COMPONENTS
|
||||||
<SwitchPreference android:title="@string/revanced_hide_album_card_title" android:key="revanced_hide_album_card" android:defaultValue="true" android:summaryOn="@string/revanced_hide_album_card_summary_on" android:summaryOff="@string/revanced_hide_album_card_summary_off" />SETTINGS: HIDE_LAYOUT_COMPONENTS -->
|
<SwitchPreference android:title="@string/revanced_hide_album_card_title" android:key="revanced_hide_album_card" android:defaultValue="true" android:summaryOn="@string/revanced_hide_album_card_summary_on" android:summaryOff="@string/revanced_hide_album_card_summary_off" />SETTINGS: HIDE_LAYOUT_COMPONENTS -->
|
||||||
|
|
||||||
<!-- SETTINGS: HIDE_AUTO_CAPTIONS
|
|
||||||
<SwitchPreference android:title="@string/revanced_hide_auto_captions_title" android:key="revanced_hide_auto_captions" android:defaultValue="false" android:summaryOn="@string/revanced_hide_auto_captions_summary_on" android:summaryOff="@string/revanced_hide_auto_captions_summary_off" />SETTINGS: HIDE_AUTO_CAPTIONS -->
|
|
||||||
|
|
||||||
<!-- SETTINGS: HIDE_AUTO_PLAYER_POPUP_PANELS
|
<!-- SETTINGS: HIDE_AUTO_PLAYER_POPUP_PANELS
|
||||||
<SwitchPreference android:title="@string/revanced_hide_auto_player_popup_panels_title" android:key="revanced_hide_auto_player_popup_panels" android:defaultValue="true" android:summaryOn="@string/revanced_hide_auto_player_popup_panels_summary_on" android:summaryOff="@string/revanced_hide_auto_player_popup_panels_summary_off" />SETTINGS: HIDE_AUTO_PLAYER_POPUP_PANELS -->
|
<SwitchPreference android:title="@string/revanced_hide_auto_player_popup_panels_title" android:key="revanced_hide_auto_player_popup_panels" android:defaultValue="true" android:summaryOn="@string/revanced_hide_auto_player_popup_panels_summary_on" android:summaryOff="@string/revanced_hide_auto_player_popup_panels_summary_off" />SETTINGS: HIDE_AUTO_PLAYER_POPUP_PANELS -->
|
||||||
|
|
||||||
@ -314,11 +314,11 @@
|
|||||||
<Preference android:title="hide-speed-overlay" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
<Preference android:title="hide-speed-overlay" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||||
|
|
||||||
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_general" />
|
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_general" />
|
||||||
|
<Preference android:title="disable-auto-captions" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||||
<Preference android:title="enable-tablet-miniplayer" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
<Preference android:title="enable-tablet-miniplayer" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||||
<Preference android:title="enable-wide-searchbar" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
<Preference android:title="enable-wide-searchbar" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||||
<Preference android:title="header-switch" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
<Preference android:title="header-switch" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||||
<Preference android:title="hide-account-menu" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
<Preference android:title="hide-account-menu" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||||
<Preference android:title="hide-auto-captions" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
|
||||||
<Preference android:title="hide-auto-player-popup-panels" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
<Preference android:title="hide-auto-player-popup-panels" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||||
<Preference android:title="hide-category-bar" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
<Preference android:title="hide-category-bar" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||||
<Preference android:title="hide-channel-avatar-section" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
<Preference android:title="hide-channel-avatar-section" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||||
|
Reference in New Issue
Block a user