mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-08 10:34:33 +02:00
better comments
This commit is contained in:
parent
2116b28beb
commit
eaf6bd9bd8
@ -85,7 +85,7 @@ class GeneralAdsPatch : ResourcePatch {
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -35,8 +35,8 @@ class VideoAdsPatch : BytecodePatch() {
|
||||
context.updatePatchStatus("VideoAds")
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -109,7 +109,7 @@ class OverlayButtonsResourcePatch : ResourcePatch {
|
||||
)
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -28,7 +28,7 @@ class ButtonContainerPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -28,7 +28,7 @@ class CommentComponentPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -67,7 +67,7 @@ class MaterialYouPatch : ResourcePatch {
|
||||
)
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
context.updatePatchStatusTheme("materialyou")
|
||||
|
||||
|
@ -40,8 +40,8 @@ class PiPNotificationPatch : BytecodePatch(
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.updatePatchStatus("hide-pip-notification")
|
||||
|
||||
return PatchResultSuccess()
|
||||
|
@ -40,8 +40,8 @@ class TooltipContentViewBytecodePatch : BytecodePatch(
|
||||
) ?: return TooltipContentViewFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.updatePatchStatus("hide-tooltip-content")
|
||||
|
||||
return PatchResultSuccess()
|
||||
|
@ -28,7 +28,7 @@ class FlyoutPanelPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -41,7 +41,7 @@ class OldQualityLayoutPatch : BytecodePatch(
|
||||
} ?: return QualityMenuViewInflateFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -81,8 +81,8 @@ class HideEndscreenOverlayPatch : BytecodePatch() {
|
||||
|
||||
if (errorIndex == -1) {
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -57,8 +57,8 @@ class HideFilmstripOverlayPatch : BytecodePatch(
|
||||
it.removeInstruction(index)
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -58,8 +58,8 @@ class HideFullscreenPanelsPatch : BytecodePatch(
|
||||
} ?: return FullscreenViewAdderFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -52,8 +52,8 @@ class HapticFeedBackPatch : BytecodePatch(
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -65,8 +65,8 @@ class AutoCaptionsPatch : BytecodePatch(
|
||||
} ?: return SubtitleTrackFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -45,8 +45,8 @@ class PlayerPopupPanelsPatch : BytecodePatch(
|
||||
} ?: return EngagementPanelControllerFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -72,8 +72,8 @@ class CrowdfundingBoxPatch : BytecodePatch() {
|
||||
|
||||
if (errorIndex == -1) {
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -76,8 +76,8 @@ class HeaderSwitchPatch : BytecodePatch() {
|
||||
|
||||
if (errorIndex == -1) {
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -52,8 +52,8 @@ class MixPlaylistsPatch : BytecodePatch(
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -44,8 +44,8 @@ class HideEmailAddressPatch : BytecodePatch(
|
||||
} ?: return AccountSwitcherAccessibilityLabelFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -69,8 +69,8 @@ class CreateButtonRemoverPatch : BytecodePatch(
|
||||
injectHook(hook, createButtonInstructions.indexOf(instruction) + 2)
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -73,9 +73,8 @@ class ShortsButtonRemoverPatch : BytecodePatch(
|
||||
} ?: return PivotBarCreateButtonViewFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -107,8 +107,8 @@ class ShortsComponentPatch : BytecodePatch() {
|
||||
context.updatePatchStatus("ShortsComponent")
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -43,8 +43,8 @@ class HideSnackbarPatch : BytecodePatch(
|
||||
} ?: return HideSnackbarFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -49,8 +49,8 @@ class HideShortsOnStartupPatch : BytecodePatch(
|
||||
} ?: return UserWasInShortsFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -75,8 +75,8 @@ class HideStoriesPatch : BytecodePatch() {
|
||||
|
||||
if (errorIndex == -1) {
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -61,8 +61,8 @@ class TabletMiniPlayerPatch : BytecodePatch(
|
||||
} ?: return MiniPlayerDimensionsCalculatorFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -54,8 +54,8 @@ class WideSearchbarPatch : BytecodePatch(
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -68,8 +68,8 @@ class HideAutoplayButtonPatch : BytecodePatch(
|
||||
} ?: return LayoutConstructorFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -46,8 +46,8 @@ class HideCaptionsButtonBytecodePatch : BytecodePatch(
|
||||
} ?: return SubtitleButtonControllerFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -39,8 +39,8 @@ class HideCastButtonPatch : BytecodePatch() {
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -56,8 +56,8 @@ class HideEndscreenCardsPatch : BytecodePatch(
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -41,8 +41,8 @@ class HideInfocardsPatch : BytecodePatch(
|
||||
} ?: return InfocardsIncognitoParentFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -28,7 +28,7 @@ class HideLiveChatButtonPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -28,7 +28,7 @@ class HideNextPrevButtonPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -88,8 +88,8 @@ class PlayerOverlayFilterPatch : BytecodePatch() {
|
||||
|
||||
if (errorIndex == -1) {
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -73,8 +73,8 @@ class SuggestedActionsPatch : BytecodePatch() {
|
||||
|
||||
if (errorIndex == -1) {
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -52,8 +52,8 @@ class HideChannelWatermarkBytecodePatch : BytecodePatch(
|
||||
} ?: return HideWatermarkParentFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -78,8 +78,8 @@ class SeekbarColorPatch : BytecodePatch() {
|
||||
|
||||
if (errorIndex == -1) {
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -88,8 +88,8 @@ class SeekbarTappingPatch : BytecodePatch(
|
||||
} ?: return SeekbarTappingFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -61,8 +61,8 @@ class HideTimeAndSeekbarPatch : BytecodePatch(
|
||||
} ?: return TimeCounterParentFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
|
@ -51,8 +51,8 @@ class ExternalBrowserPatch : BytecodePatch(
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"SETTINGS: ENABLE_EXTERNAL_BROWSER"
|
||||
|
@ -62,8 +62,8 @@ class ForceVP9CodecPatch : BytecodePatch(
|
||||
} ?: return Vp9PropsParentFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"SETTINGS: EXPERIMENTAL_FLAGS",
|
||||
|
@ -37,8 +37,8 @@ class LayoutSwitchPatch : BytecodePatch(
|
||||
) ?: return LayoutSwitchFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"SETTINGS: EXPERIMENTAL_FLAGS",
|
||||
|
@ -39,7 +39,7 @@ class MicroGPatch : ResourcePatch {
|
||||
val packageName = PatchOptions.YouTubePackageName!!
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -62,8 +62,8 @@ class MinimizedPlaybackPatch : BytecodePatch(
|
||||
PipControllerFingerprint.result?.hookShortsPiP()?:return PipControllerFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"SETTINGS: ENABLE_MINIMIZED_PLAYBACK"
|
||||
|
@ -45,8 +45,8 @@ class OldLayoutPatch : BytecodePatch(
|
||||
} ?: return OldLayoutFingerprint.toErrorResult()
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"SETTINGS: EXPERIMENTAL_FLAGS",
|
||||
|
@ -42,8 +42,8 @@ class OpenLinksDirectlyPatch : BytecodePatch(
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"SETTINGS: ENABLE_OPEN_LINKS_DIRECTLY"
|
||||
|
@ -97,8 +97,8 @@ class ReturnYouTubeDislikePatch : BytecodePatch(
|
||||
MainstreamVideoIdPatch.injectCall("$INTEGRATIONS_RYD_CLASS_DESCRIPTOR->newVideoLoaded(Ljava/lang/String;)V")
|
||||
|
||||
/*
|
||||
add ReVanced Settings
|
||||
*/
|
||||
* Add ReVanced Settings
|
||||
*/
|
||||
SettingsPatch.addReVancedPreference("ryd_settings")
|
||||
|
||||
SettingsPatch.updatePatchStatus("return-youtube-dislike")
|
||||
|
@ -95,7 +95,7 @@ class SponsorBlockResourcePatch : ResourcePatch {
|
||||
}
|
||||
|
||||
/*
|
||||
add ReVanced Settings
|
||||
* Add ReVanced Settings
|
||||
*/
|
||||
SettingsPatch.addReVancedPreference("sponsorblock_settings")
|
||||
|
||||
|
@ -32,7 +32,7 @@ class SwipeControlsPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -50,7 +50,7 @@ class CustomVideoSpeedPatch : ResourcePatch {
|
||||
}
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -36,7 +36,7 @@ class VideoQualityPatch : ResourcePatch {
|
||||
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
@ -28,7 +28,7 @@ class VideoSpeedPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
/*
|
||||
add settings
|
||||
* Add settings
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
|
Loading…
x
Reference in New Issue
Block a user