mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +02:00
feat: change patches naming convention
This commit is contained in:
@ -2,8 +2,6 @@ package app.revanced.patches.youtube.ads.general.bytecode.patch
|
||||
|
||||
import app.revanced.extensions.findMutableMethodOf
|
||||
import app.revanced.extensions.injectHideCall
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
import app.revanced.patcher.patch.BytecodePatch
|
||||
@ -16,9 +14,7 @@ import app.revanced.util.bytecode.getWideLiteralIndex
|
||||
import app.revanced.util.bytecode.isWideLiteralExists
|
||||
import org.jf.dexlib2.iface.instruction.formats.Instruction35c
|
||||
|
||||
@Name("hide-general-ads-bytecode-patch")
|
||||
@DependsOn([SharedResourceIdPatch::class])
|
||||
@Version("0.0.1")
|
||||
@Suppress("LABEL_NAME_CLASH")
|
||||
class GeneralAdsBytecodePatch : BytecodePatch() {
|
||||
override fun execute(context: BytecodeContext): PatchResult {
|
||||
|
@ -23,8 +23,8 @@ import app.revanced.util.resources.ResourceUtils.copyXmlNode
|
||||
import org.w3c.dom.Element
|
||||
|
||||
@Patch
|
||||
@Name("hide-general-ads")
|
||||
@Description("Removes general ads.")
|
||||
@Name("Hide general ads")
|
||||
@Description("Hides general ads.")
|
||||
@DependsOn(
|
||||
[
|
||||
DoubleBackToClosePatch::class,
|
||||
|
@ -1,8 +1,6 @@
|
||||
package app.revanced.patches.youtube.ads.getpremium.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
@ -14,8 +12,6 @@ import app.revanced.patches.youtube.ads.getpremium.fingerprints.CompactYpcOfferM
|
||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Name("hide-get-premium")
|
||||
@Version("0.0.1")
|
||||
class HideGetPremiumPatch : BytecodePatch(
|
||||
listOf(CompactYpcOfferModuleViewFingerprint)
|
||||
) {
|
||||
|
@ -14,8 +14,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.ADS_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-video-ads")
|
||||
@Description("Removes ads in the video player.")
|
||||
@Name("Hide video ads")
|
||||
@Description("Hides ads in the video player.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -16,7 +16,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch.
|
||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-button-container")
|
||||
@Name("Hide button container")
|
||||
@Description("Adds the options to hide action buttons under a video.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -16,7 +16,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-comment-component")
|
||||
@Name("Hide comment component")
|
||||
@Description("Hides components related to comments.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -21,7 +21,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-feed-flyout-panel")
|
||||
@Name("Hide feed flyout panel")
|
||||
@Description("Hides feed flyout panel components.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -23,7 +23,7 @@ import app.revanced.util.integrations.Constants.FLYOUT_PANEL
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("enable-old-quality-layout")
|
||||
@Name("Enable old quality layout")
|
||||
@Description("Enables the original quality flyout menu.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -1,9 +1,6 @@
|
||||
package app.revanced.patches.youtube.flyoutpanel.oldspeedlayout.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Description
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
@ -25,10 +22,7 @@ import org.jf.dexlib2.AccessFlags
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.jf.dexlib2.immutable.ImmutableField
|
||||
|
||||
@Name("enable-old-speed-layout")
|
||||
@Description("Enables the original speed flyout menu.")
|
||||
@DependsOn([LithoFilterPatch::class])
|
||||
@Version("0.0.1")
|
||||
class OldSpeedLayoutPatch : BytecodePatch(
|
||||
listOf(
|
||||
FlyoutPanelPatchFingerprint,
|
||||
|
@ -15,7 +15,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-player-flyout-panel")
|
||||
@Name("Hide player flyout panel")
|
||||
@Description("Hides player flyout panel components.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -25,7 +25,7 @@ import app.revanced.util.integrations.Constants.FULLSCREEN
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-autoplay-preview")
|
||||
@Name("Hide autoplay preview")
|
||||
@Description("Hides the autoplay preview container in the fullscreen.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -22,8 +22,8 @@ import app.revanced.util.integrations.Constants.FULLSCREEN
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("enable-compact-controls-overlay")
|
||||
@Description("Enable compact control overlay.")
|
||||
@Name("Enable compact controls overlay")
|
||||
@Description("Enables compact control overlay.")
|
||||
@DependsOn(
|
||||
[
|
||||
SettingsPatch::class,
|
||||
|
@ -20,8 +20,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.FULLSCREEN
|
||||
|
||||
@Patch
|
||||
@Name("hide-endscreen-overlay")
|
||||
@Description("Hide endscreen overlay on swipe controls.")
|
||||
@Name("Hide end screen overlay")
|
||||
@Description("Hide end screen overlay on swipe controls.")
|
||||
@DependsOn(
|
||||
[
|
||||
SettingsPatch::class,
|
||||
|
@ -33,7 +33,7 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
import org.jf.dexlib2.iface.instruction.formats.Instruction35c
|
||||
|
||||
@Patch
|
||||
@Name("hide-fullscreen-panels")
|
||||
@Name("Hide fullscreen panels")
|
||||
@Description("Hides video description and comments panel in fullscreen view.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -23,7 +23,7 @@ import app.revanced.util.integrations.Constants.FULLSCREEN
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch(false)
|
||||
@Name("disable-landscape-mode")
|
||||
@Name("Disable landscape mode")
|
||||
@Description("Disable landscape mode when entering fullscreen.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -16,7 +16,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-quick-actions")
|
||||
@Name("Hide quick actions")
|
||||
@Description("Adds the options to hide quick actions components in the fullscreen.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -22,7 +22,7 @@ import app.revanced.util.integrations.Constants.GENERAL
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-account-menu")
|
||||
@Name("Hide account menu")
|
||||
@Description("Hide account menu elements.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -25,7 +25,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.GENERAL
|
||||
|
||||
@Patch
|
||||
@Name("disable-auto-captions")
|
||||
@Name("Disable auto captions")
|
||||
@Description("Disables forced auto captions.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -19,7 +19,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.GENERAL
|
||||
|
||||
@Patch
|
||||
@Name("hide-auto-player-popup-panels")
|
||||
@Name("Hide auto player popup panels")
|
||||
@Description("Hide automatic popup panels (playlist or live chat) on video player.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -24,8 +24,8 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-category-bar")
|
||||
@Description("Hide the category bar at the top of the feed and at the top of related videos.")
|
||||
@Name("Hide category bar")
|
||||
@Description("Hides the category bar in video feeds.")
|
||||
@DependsOn(
|
||||
[
|
||||
SettingsPatch::class,
|
||||
|
@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.GENERAL
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-channel-avatar-section")
|
||||
@Name("Hide channel avatar section")
|
||||
@Description("Hides the channel avatar section of the subscription feed.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.GENERAL
|
||||
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-crowdfunding-box")
|
||||
@Name("Hide crowdfunding box")
|
||||
@Description("Hides the crowdfunding box between the player and video description.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -16,7 +16,7 @@ import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus
|
||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-description-components")
|
||||
@Name("Hide description components")
|
||||
@Description("Hides description components.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -20,8 +20,8 @@ import app.revanced.util.integrations.Constants.GENERAL
|
||||
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-floating-microphone")
|
||||
@Description("Hide the floating microphone button above the keyboard.")
|
||||
@Name("Hide floating microphone")
|
||||
@Description("Hides the floating microphone button which appears in search.")
|
||||
@DependsOn(
|
||||
[
|
||||
SettingsPatch::class,
|
||||
|
@ -22,7 +22,7 @@ import app.revanced.util.integrations.Constants.GENERAL
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("header-switch")
|
||||
@Name("Header switch")
|
||||
@Description("Add switch to change header.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -16,7 +16,7 @@ import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus
|
||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-layout-components")
|
||||
@Name("Hide layout components")
|
||||
@Description("Hides general layout components.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.GENERAL
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-load-more-button")
|
||||
@Name("Hide load more button")
|
||||
@Description("Hides the button under videos that loads similar videos.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -25,8 +25,8 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-mix-playlists")
|
||||
@Description("Removes mix playlists from home feed and video player.")
|
||||
@Name("Hide mix playlists")
|
||||
@Description("Hides mix playlists from home feed and video player.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -19,8 +19,8 @@ import app.revanced.util.integrations.Constants.GENERAL
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-email-address")
|
||||
@Description("Hides the email address(handle) in the account switcher.")
|
||||
@Name("Hide handle")
|
||||
@Description("Hides the handle in the account switcher.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -19,7 +19,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.GENERAL
|
||||
|
||||
@Patch
|
||||
@Name("hide-snack-bar")
|
||||
@Name("Hide snack bar")
|
||||
@Description("Hides the snack bar action popup.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.GENERAL
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-suggestions-shelf")
|
||||
@Name("Hide suggestions shelf")
|
||||
@Description("Hides the suggestions shelf.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -29,7 +29,7 @@ import org.jf.dexlib2.Opcode
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("enable-tablet-mini-player")
|
||||
@Name("Enable tablet mini player")
|
||||
@Description("Enables the tablet mini player layout.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -25,7 +25,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-trending-searches")
|
||||
@Name("Hide trending searches")
|
||||
@Description("Hide trending searches in the search bar.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -23,7 +23,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch.
|
||||
import app.revanced.util.integrations.Constants.GENERAL
|
||||
|
||||
@Patch
|
||||
@Name("enable-wide-search-bar")
|
||||
@Name("Enable wide search bar")
|
||||
@Description("Replaces the search icon with a wide search bar. This will hide the YouTube logo when active.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -15,7 +15,7 @@ import app.revanced.util.resources.IconHelper.customIcon
|
||||
import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon
|
||||
|
||||
@Patch(false)
|
||||
@Name("custom-branding-icon-mmt")
|
||||
@Name("Custom branding icon MMT")
|
||||
@Description("Changes the YouTube launcher icon to MMT.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -15,7 +15,7 @@ import app.revanced.util.resources.IconHelper.customIcon
|
||||
import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon
|
||||
|
||||
@Patch
|
||||
@Name("custom-branding-icon-revancify-blue")
|
||||
@Name("Custom branding icon Revancify blue")
|
||||
@Description("Changes the YouTube launcher icon to Revancify Blue.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -15,7 +15,7 @@ import app.revanced.util.resources.IconHelper.customIcon
|
||||
import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon
|
||||
|
||||
@Patch(false)
|
||||
@Name("custom-branding-icon-revancify-red")
|
||||
@Name("Custom branding icon Revancify red")
|
||||
@Description("Changes the YouTube launcher icon to Revancify Red.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -18,7 +18,7 @@ import app.revanced.util.resources.ResourceHelper.updatePatchStatusLabel
|
||||
import org.w3c.dom.Element
|
||||
|
||||
@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])
|
||||
@YouTubeCompatibility
|
||||
|
@ -13,8 +13,8 @@ import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch(false)
|
||||
@Name("hide-double-tap-overlay-filter")
|
||||
@Description("Remove the double tap dark filter layer.")
|
||||
@Name("Hide double tap overlay filter")
|
||||
@Description("Hides the double tap dark filter layer.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -19,7 +19,7 @@ import app.revanced.util.resources.ResourceUtils
|
||||
import app.revanced.util.resources.ResourceUtils.copyResources
|
||||
|
||||
@Patch
|
||||
@Name("custom-double-tap-length")
|
||||
@Name("Custom double tap length")
|
||||
@Description("Add 'double-tap to seek' value.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -15,8 +15,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import org.w3c.dom.Element
|
||||
|
||||
@Patch(false)
|
||||
@Name("force-hide-player-button-background")
|
||||
@Description("Force removes the background from the video player buttons.")
|
||||
@Name("Force hide player button background")
|
||||
@Description("Force hides the background from the video player buttons.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -17,8 +17,8 @@ import java.nio.file.StandardCopyOption
|
||||
import kotlin.io.path.exists
|
||||
|
||||
@Patch(false)
|
||||
@Name("force-premium-heading")
|
||||
@Description("Forces premium heading on the home screen.")
|
||||
@Name("Force premium heading")
|
||||
@Description("Forces premium heading on the homepage.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -19,7 +19,7 @@ import app.revanced.util.resources.ResourceUtils.copyResources
|
||||
import app.revanced.util.resources.ResourceUtils.copyXmlNode
|
||||
|
||||
@Patch(false)
|
||||
@Name("materialyou")
|
||||
@Name("MaterialYou")
|
||||
@Description("Enables MaterialYou theme for Android 12+")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -13,14 +13,14 @@ import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch
|
||||
@Name("optimize-resource")
|
||||
@Name("Optimize resource")
|
||||
@Description("Removes duplicate resources from YouTube.")
|
||||
@DependsOn(
|
||||
[
|
||||
RedundantResourcePatch::class,
|
||||
SettingsPatch::class
|
||||
]
|
||||
)
|
||||
@Description("Removes duplicate resources from YouTube.")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class OptimizeResourcePatch : ResourcePatch {
|
||||
|
@ -1,13 +1,9 @@
|
||||
package app.revanced.patches.youtube.layout.optimize.patch
|
||||
|
||||
import app.revanced.patcher.annotation.Description
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.ResourceContext
|
||||
import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.patch.ResourcePatch
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.util.resources.ResourceUtils
|
||||
import app.revanced.util.resources.ResourceUtils.copyResources
|
||||
import java.io.File
|
||||
@ -15,10 +11,6 @@ import java.nio.file.Files
|
||||
import java.nio.file.Path
|
||||
import java.nio.file.StandardCopyOption
|
||||
|
||||
@Name("remove-duplicate-resource-patch")
|
||||
@Description("Removes duplicate resources from YouTube.")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class RedundantResourcePatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
|
@ -17,7 +17,7 @@ import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch
|
||||
@Name("hide-pip-notification")
|
||||
@Name("Disable pip notification")
|
||||
@Description("Disable pip notification when you first launch pip mode.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -15,7 +15,7 @@ import app.revanced.util.resources.ResourceUtils.copyXmlNode
|
||||
import kotlin.io.path.exists
|
||||
|
||||
@Patch(false)
|
||||
@Name("add-splash-animation")
|
||||
@Name("Add splash animation")
|
||||
@Description("Adds splash animation, which was removed in YT v18.19.36+. This patch cannot be used with 'custom-branding-icon' patch")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -1,7 +1,5 @@
|
||||
package app.revanced.patches.youtube.layout.theme.patch
|
||||
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.ResourceContext
|
||||
import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
@ -11,9 +9,7 @@ import app.revanced.patches.youtube.utils.litho.patch.LithoThemePatch
|
||||
import app.revanced.util.integrations.Constants.UTILS_PATH
|
||||
import org.w3c.dom.Element
|
||||
|
||||
@Name("general-theme-patch")
|
||||
@DependsOn([LithoThemePatch::class])
|
||||
@Version("0.0.1")
|
||||
class GeneralThemePatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
|
@ -18,7 +18,7 @@ import app.revanced.util.resources.ResourceHelper.updatePatchStatusTheme
|
||||
import org.w3c.dom.Element
|
||||
|
||||
@Patch
|
||||
@Name("theme")
|
||||
@Name("Theme")
|
||||
@Description("Change the app's theme to the values specified in options.json.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -17,7 +17,7 @@ import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch
|
||||
@Name("hide-tooltip-content")
|
||||
@Name("Hide tooltip content")
|
||||
@Description("Hides the tooltip box that appears on first install.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -23,7 +23,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
|
||||
import org.jf.dexlib2.iface.reference.MethodReference
|
||||
|
||||
@Patch
|
||||
@Name("bypass-ambient-mode-restrictions")
|
||||
@Name("Bypass ambient mode restrictions")
|
||||
@Description("Bypass ambient mode restrictions in battery saver mode.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -13,7 +13,7 @@ import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch(false)
|
||||
@Name("enable-debug-logging")
|
||||
@Name("Enable debug logging")
|
||||
@Description("Adds debugging options.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("enable-external-browser")
|
||||
@Name("Enable external browser")
|
||||
@Description("Open url outside the app in an external browser.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -14,8 +14,8 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.MISC_PATH
|
||||
|
||||
@Patch
|
||||
@Name("force-opus-codec")
|
||||
@Description("Forces the opus codec for audios.")
|
||||
@Name("Force OPUS codec")
|
||||
@Description("Forces the OPUS codec for audios.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
|
@ -32,7 +32,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
|
||||
@Patch
|
||||
@Name("force-vp9-codec")
|
||||
@Name("Force VP9 codec")
|
||||
@Description("Forces the VP9 codec for videos.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("language-switch")
|
||||
@Name("Language switch")
|
||||
@Description("Add language switch toggle.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -27,7 +27,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH
|
||||
import org.jf.dexlib2.Opcode
|
||||
|
||||
@Patch
|
||||
@Name("layout-switch")
|
||||
@Name("Layout switch")
|
||||
@Description("Tricks the dpi to use some tablet/phone layouts.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -26,7 +26,7 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
import org.jf.dexlib2.iface.reference.MethodReference
|
||||
|
||||
@Patch
|
||||
@Name("enable-minimized-playback")
|
||||
@Name("Enable minimized playback")
|
||||
@Description("Enables minimized and background playback.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH
|
||||
import org.jf.dexlib2.iface.instruction.formats.Instruction35c
|
||||
|
||||
@Patch
|
||||
@Name("enable-open-links-directly")
|
||||
@Name("Enable open links directly")
|
||||
@Description("Skips over redirection URLs to external links.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.MISC_PATH
|
||||
|
||||
@Patch
|
||||
@Name("disable-quic-protocol")
|
||||
@Name("Disable QUIC protocol")
|
||||
@Description("Disable CronetEngine's QUIC protocol.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -21,7 +21,7 @@ import org.jf.dexlib2.Opcode
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("enable-new-splash-animation")
|
||||
@Name("Enable new splash animation")
|
||||
@Description("Enables a new type of splash animation on Android 12+ devices.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -16,7 +16,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH
|
||||
import app.revanced.util.resources.ResourceUtils.copyXmlNode
|
||||
|
||||
@Patch
|
||||
@Name("spoof-app-version")
|
||||
@Name("Spoof app version")
|
||||
@Description("Tricks YouTube into thinking, you are running an older version of the app. One of the side effects also includes restoring the old UI.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -14,7 +14,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.resources.ResourceHelper.addTranslations
|
||||
|
||||
@Patch
|
||||
@Name("translations")
|
||||
@Name("Translations")
|
||||
@Description("Add Crowdin translations for YouTube.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -21,7 +21,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.NAVIGATION
|
||||
|
||||
@Patch
|
||||
@Name("change-homepage")
|
||||
@Name("Change homepage")
|
||||
@Description("Change home page to subscription feed.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-navigation-label")
|
||||
@Name("Hide navigation label")
|
||||
@Description("Hide navigation bar labels.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -27,7 +27,7 @@ import org.jf.dexlib2.Opcode
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-navigation-buttons")
|
||||
@Name("Hide navigation buttons")
|
||||
@Description("Adds options to hide or change navigation buttons.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.NAVIGATION
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("enable-tablet-navigation-bar")
|
||||
@Name("Enable tablet navigation bar")
|
||||
@Description("Enables the tablet navigation bar.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -1,8 +1,6 @@
|
||||
package app.revanced.patches.youtube.overlaybutton.alwaysrepeat.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.data.toMethodWalker
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction
|
||||
@ -18,16 +16,12 @@ import app.revanced.patcher.util.smali.ExternalLabel
|
||||
import app.revanced.patches.youtube.overlaybutton.alwaysrepeat.fingerprints.AutoNavInformerFingerprint
|
||||
import app.revanced.patches.youtube.overlaybutton.alwaysrepeat.fingerprints.VideoEndFingerprint
|
||||
import app.revanced.patches.youtube.overlaybutton.alwaysrepeat.fingerprints.VideoEndParentFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.fingerprints.PlayerPatchFingerprint
|
||||
import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH
|
||||
import app.revanced.util.integrations.Constants.UTILS_PATH
|
||||
import app.revanced.util.integrations.Constants.VIDEO_PATH
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Name("always-repeat")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class AlwaysRepeatPatch : BytecodePatch(
|
||||
listOf(
|
||||
AutoNavInformerFingerprint,
|
||||
|
@ -1,9 +1,6 @@
|
||||
package app.revanced.patches.youtube.overlaybutton.downloadbuttonhook.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Description
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
@ -12,13 +9,8 @@ import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.util.smali.ExternalLabel
|
||||
import app.revanced.patches.youtube.overlaybutton.downloadbuttonhook.fingerprints.DownloadActionsFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.util.integrations.Constants.UTILS_PATH
|
||||
|
||||
@Name("download-button-hook")
|
||||
@Description("Replace download button with external download button.")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class DownloadButtonHookPatch : BytecodePatch(
|
||||
listOf(DownloadActionsFingerprint)
|
||||
) {
|
||||
|
@ -27,7 +27,7 @@ import app.revanced.util.resources.ResourceUtils.copyXmlNode
|
||||
import org.w3c.dom.Element
|
||||
|
||||
@Patch
|
||||
@Name("overlay-buttons")
|
||||
@Name("Overlay buttons")
|
||||
@Description("Add overlay buttons to the player.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -25,7 +25,7 @@ import app.revanced.util.integrations.Constants.PLAYER
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-autoplay-button")
|
||||
@Name("Hide autoplay button")
|
||||
@Description("Hides the autoplay button in the video player.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -21,7 +21,7 @@ import org.jf.dexlib2.Opcode
|
||||
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-captions-button")
|
||||
@Name("Hide captions button")
|
||||
@Description("Hides the captions button in the video player.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -17,7 +17,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.PLAYER
|
||||
|
||||
@Patch
|
||||
@Name("hide-cast-button")
|
||||
@Name("Hide cast button")
|
||||
@Description("Hides the cast button in the video player.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -14,7 +14,7 @@ import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonHookPat
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch
|
||||
@Name("hide-collapse-button")
|
||||
@Name("Hide collapse button")
|
||||
@Description("Hides the collapse button in the video player.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -22,7 +22,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-endscreen-cards")
|
||||
@Name("Hide end screen cards")
|
||||
@Description("Hides the suggested video cards at the end of a video in fullscreen.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -11,7 +11,6 @@ import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve
|
||||
import app.revanced.patcher.patch.BytecodePatch
|
||||
import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultError
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
@ -35,7 +34,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
|
||||
import org.jf.dexlib2.iface.reference.MethodReference
|
||||
|
||||
@Patch
|
||||
@Name("hide-filmstrip-overlay")
|
||||
@Name("Hide filmstrip overlay")
|
||||
@Description("Hide filmstrip overlay on swipe controls.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -25,7 +25,7 @@ import app.revanced.util.integrations.Constants.PLAYER
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("disable-haptic-feedback")
|
||||
@Name("Disable haptic feedback")
|
||||
@Description("Disable haptic feedback when swiping.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -19,7 +19,7 @@ import app.revanced.util.integrations.Constants.PLAYER
|
||||
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-info-cards")
|
||||
@Name("Hide info cards")
|
||||
@Description("Hides info-cards in videos.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -20,7 +20,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.PLAYER
|
||||
|
||||
@Patch
|
||||
@Name("hide-music-button")
|
||||
@Name("Hide music button")
|
||||
@Description("Hides the YouTube Music button in the video player.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -18,7 +18,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-player-button-background")
|
||||
@Name("Hide player button background")
|
||||
@Description("Hide player button background.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -24,8 +24,8 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-player-overlay-filter")
|
||||
@Description("Remove the dark filter layer from the player's background.")
|
||||
@Name("Hide player overlay filter")
|
||||
@Description("Hides the dark filter layer from the player's background.")
|
||||
@DependsOn(
|
||||
[
|
||||
SettingsPatch::class,
|
||||
|
@ -14,7 +14,7 @@ import app.revanced.patches.youtube.utils.playerbutton.patch.PlayerButtonHookPat
|
||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
|
||||
@Patch
|
||||
@Name("hide-previous-next-button")
|
||||
@Name("Hide previous next button")
|
||||
@Description("Hides the previous and next button in the player controller.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -20,7 +20,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.PLAYER
|
||||
|
||||
@Patch
|
||||
@Name("hide-seek-message")
|
||||
@Name("Hide seek message")
|
||||
@Description("Hides the 'Slide left or right to seek' message container.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -19,7 +19,7 @@ import app.revanced.util.integrations.Constants.PLAYER
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-speed-overlay")
|
||||
@Name("Hide speed overlay")
|
||||
@Description("Hide speed overlay in player.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -20,7 +20,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-suggested-actions")
|
||||
@Name("Hide suggested actions")
|
||||
@Description("Hide the suggested actions bar inside the player.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -22,7 +22,7 @@ import app.revanced.util.integrations.Constants.PLAYER
|
||||
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("hide-channel-watermark")
|
||||
@Name("Hide channel watermark")
|
||||
@Description("Hides creator's watermarks on videos.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -22,7 +22,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.SEEKBAR
|
||||
|
||||
@Patch
|
||||
@Name("hide-seekbar")
|
||||
@Name("Hide seekbar")
|
||||
@Description("Hides the seekbar in video player and video thumbnails.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -31,7 +31,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.w3c.dom.Element
|
||||
|
||||
@Patch
|
||||
@Name("custom-seekbar-color")
|
||||
@Name("Custom seekbar color")
|
||||
@Description("Change seekbar color in video player and video thumbnails.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -24,7 +24,7 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
import org.jf.dexlib2.iface.instruction.formats.Instruction35c
|
||||
|
||||
@Patch
|
||||
@Name("enable-timestamps-speed")
|
||||
@Name("Enable time stamps speed")
|
||||
@Description("Add the current video speed in brackets next to the current time.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -21,7 +21,7 @@ import app.revanced.util.integrations.Constants.SEEKBAR
|
||||
import org.jf.dexlib2.iface.instruction.ReferenceInstruction
|
||||
|
||||
@Patch
|
||||
@Name("enable-seekbar-tapping")
|
||||
@Name("Enable seekbar tapping")
|
||||
@Description("Enables tap-to-seek on the seekbar of the video player.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -19,7 +19,7 @@ import app.revanced.util.integrations.Constants.SEEKBAR
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("enable-new-thumbnail-preview")
|
||||
@Name("Enable new thumbnail preview")
|
||||
@Description("Enables a new type of thumbnail preview.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -19,7 +19,7 @@ import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.SEEKBAR
|
||||
|
||||
@Patch
|
||||
@Name("hide-time-stamp")
|
||||
@Name("Hide time stamp")
|
||||
@Description("Hides timestamp in video player.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -8,6 +8,10 @@ import org.jf.dexlib2.AccessFlags
|
||||
object ReelWatchFragmentBuilderFingerprint : MethodFingerprint(
|
||||
returnType = "Landroid/view/View;",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("Landroid/view/LayoutInflater;", "Landroid/view/ViewGroup;", "Landroid/os/Bundle;"),
|
||||
parameters = listOf(
|
||||
"Landroid/view/LayoutInflater;",
|
||||
"Landroid/view/ViewGroup;",
|
||||
"Landroid/os/Bundle;"
|
||||
),
|
||||
customFingerprint = { methodDef, _ -> methodDef.isWide32LiteralExists(45401415) }
|
||||
)
|
@ -20,7 +20,7 @@ import app.revanced.util.integrations.Constants.SHORTS
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("enable-new-comment-popup-panels")
|
||||
@Name("Enable new comment popup panels")
|
||||
@Description("Enables a new type of comment popup panel in the shorts player.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
|
@ -1,8 +1,6 @@
|
||||
package app.revanced.patches.youtube.shorts.shortscomponent.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
@ -10,15 +8,11 @@ import app.revanced.patcher.patch.BytecodePatch
|
||||
import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsCommentFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.RightComment
|
||||
import app.revanced.util.bytecode.getWideLiteralIndex
|
||||
import app.revanced.util.integrations.Constants.SHORTS
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Name("hide-shorts-comment")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class ShortsCommentButtonPatch : BytecodePatch(
|
||||
listOf(ShortsCommentFingerprint)
|
||||
) {
|
||||
|
@ -19,7 +19,7 @@ import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus
|
||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||
|
||||
@Patch
|
||||
@Name("hide-shorts-component")
|
||||
@Name("Hide Shorts components")
|
||||
@Description("Hides other Shorts components.")
|
||||
@DependsOn(
|
||||
[
|
||||
|
@ -1,8 +1,6 @@
|
||||
package app.revanced.patches.youtube.shorts.shortscomponent.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
@ -11,16 +9,12 @@ import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.util.smali.ExternalLabel
|
||||
import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsDislikeFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelRightDislikeIcon
|
||||
import app.revanced.util.bytecode.getWideLiteralIndex
|
||||
import app.revanced.util.integrations.Constants.SHORTS
|
||||
import org.jf.dexlib2.Opcode
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Name("hide-shorts-dislike")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class ShortsDislikeButtonPatch : BytecodePatch(
|
||||
listOf(ShortsDislikeFingerprint)
|
||||
) {
|
||||
|
@ -1,8 +1,6 @@
|
||||
package app.revanced.patches.youtube.shorts.shortscomponent.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
@ -10,15 +8,11 @@ import app.revanced.patcher.patch.BytecodePatch
|
||||
import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsInfoPanelFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelPlayerInfoPanel
|
||||
import app.revanced.util.bytecode.getWideLiteralIndex
|
||||
import app.revanced.util.integrations.Constants.SHORTS
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Name("hide-shorts-info-panel")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class ShortsInfoPanelPatch : BytecodePatch(
|
||||
listOf(ShortsInfoPanelFingerprint)
|
||||
) {
|
||||
|
@ -1,8 +1,6 @@
|
||||
package app.revanced.patches.youtube.shorts.shortscomponent.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
@ -11,16 +9,12 @@ import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.util.smali.ExternalLabel
|
||||
import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsLikeFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelRightLikeIcon
|
||||
import app.revanced.util.bytecode.getWideLiteralIndex
|
||||
import app.revanced.util.integrations.Constants.SHORTS
|
||||
import org.jf.dexlib2.Opcode
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Name("hide-shorts-like")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class ShortsLikeButtonPatch : BytecodePatch(
|
||||
listOf(ShortsLikeFingerprint)
|
||||
) {
|
||||
|
@ -1,8 +1,6 @@
|
||||
package app.revanced.patches.youtube.shorts.shortscomponent.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
@ -11,16 +9,12 @@ import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod
|
||||
import app.revanced.patches.youtube.shorts.shortscomponent.fingerprints.ShortsPaidPromotionFingerprint
|
||||
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelPlayerBadge
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ReelPlayerBadge2
|
||||
import app.revanced.util.bytecode.getWideLiteralIndex
|
||||
import app.revanced.util.integrations.Constants.SHORTS
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Name("hide-shorts-paid-promotion")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class ShortsPaidPromotionBannerPatch : BytecodePatch(
|
||||
listOf(ShortsPaidPromotionFingerprint)
|
||||
) {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user