better comments

This commit is contained in:
inotia00 2023-02-18 12:46:36 +09:00
parent 2116b28beb
commit eaf6bd9bd8
54 changed files with 93 additions and 94 deletions

View File

@ -85,7 +85,7 @@ class GeneralAdsPatch : ResourcePatch {
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -35,8 +35,8 @@ class VideoAdsPatch : BytecodePatch() {
context.updatePatchStatus("VideoAds") context.updatePatchStatus("VideoAds")
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -109,7 +109,7 @@ class OverlayButtonsResourcePatch : ResourcePatch {
) )
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -28,7 +28,7 @@ class ButtonContainerPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult { override fun execute(context: ResourceContext): PatchResult {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -28,7 +28,7 @@ class CommentComponentPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult { override fun execute(context: ResourceContext): PatchResult {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -67,7 +67,7 @@ class MaterialYouPatch : ResourcePatch {
) )
/* /*
add settings * Add settings
*/ */
context.updatePatchStatusTheme("materialyou") context.updatePatchStatusTheme("materialyou")

View File

@ -40,8 +40,8 @@ class PiPNotificationPatch : BytecodePatch(
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.updatePatchStatus("hide-pip-notification") SettingsPatch.updatePatchStatus("hide-pip-notification")
return PatchResultSuccess() return PatchResultSuccess()

View File

@ -40,8 +40,8 @@ class TooltipContentViewBytecodePatch : BytecodePatch(
) ?: return TooltipContentViewFingerprint.toErrorResult() ) ?: return TooltipContentViewFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.updatePatchStatus("hide-tooltip-content") SettingsPatch.updatePatchStatus("hide-tooltip-content")
return PatchResultSuccess() return PatchResultSuccess()

View File

@ -28,7 +28,7 @@ class FlyoutPanelPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult { override fun execute(context: ResourceContext): PatchResult {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -41,7 +41,7 @@ class OldQualityLayoutPatch : BytecodePatch(
} ?: return QualityMenuViewInflateFingerprint.toErrorResult() } ?: return QualityMenuViewInflateFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -81,8 +81,8 @@ class HideEndscreenOverlayPatch : BytecodePatch() {
if (errorIndex == -1) { if (errorIndex == -1) {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -57,8 +57,8 @@ class HideFilmstripOverlayPatch : BytecodePatch(
it.removeInstruction(index) it.removeInstruction(index)
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -58,8 +58,8 @@ class HideFullscreenPanelsPatch : BytecodePatch(
} ?: return FullscreenViewAdderFingerprint.toErrorResult() } ?: return FullscreenViewAdderFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -52,8 +52,8 @@ class HapticFeedBackPatch : BytecodePatch(
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -65,8 +65,8 @@ class AutoCaptionsPatch : BytecodePatch(
} ?: return SubtitleTrackFingerprint.toErrorResult() } ?: return SubtitleTrackFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -45,8 +45,8 @@ class PlayerPopupPanelsPatch : BytecodePatch(
} ?: return EngagementPanelControllerFingerprint.toErrorResult() } ?: return EngagementPanelControllerFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -72,8 +72,8 @@ class CrowdfundingBoxPatch : BytecodePatch() {
if (errorIndex == -1) { if (errorIndex == -1) {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -76,8 +76,8 @@ class HeaderSwitchPatch : BytecodePatch() {
if (errorIndex == -1) { if (errorIndex == -1) {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -52,8 +52,8 @@ class MixPlaylistsPatch : BytecodePatch(
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -44,8 +44,8 @@ class HideEmailAddressPatch : BytecodePatch(
} ?: return AccountSwitcherAccessibilityLabelFingerprint.toErrorResult() } ?: return AccountSwitcherAccessibilityLabelFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -69,8 +69,8 @@ class CreateButtonRemoverPatch : BytecodePatch(
injectHook(hook, createButtonInstructions.indexOf(instruction) + 2) injectHook(hook, createButtonInstructions.indexOf(instruction) + 2)
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -73,9 +73,8 @@ class ShortsButtonRemoverPatch : BytecodePatch(
} ?: return PivotBarCreateButtonViewFingerprint.toErrorResult() } ?: return PivotBarCreateButtonViewFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -107,8 +107,8 @@ class ShortsComponentPatch : BytecodePatch() {
context.updatePatchStatus("ShortsComponent") context.updatePatchStatus("ShortsComponent")
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -43,8 +43,8 @@ class HideSnackbarPatch : BytecodePatch(
} ?: return HideSnackbarFingerprint.toErrorResult() } ?: return HideSnackbarFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -49,8 +49,8 @@ class HideShortsOnStartupPatch : BytecodePatch(
} ?: return UserWasInShortsFingerprint.toErrorResult() } ?: return UserWasInShortsFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -75,8 +75,8 @@ class HideStoriesPatch : BytecodePatch() {
if (errorIndex == -1) { if (errorIndex == -1) {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -61,8 +61,8 @@ class TabletMiniPlayerPatch : BytecodePatch(
} ?: return MiniPlayerDimensionsCalculatorFingerprint.toErrorResult() } ?: return MiniPlayerDimensionsCalculatorFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -54,8 +54,8 @@ class WideSearchbarPatch : BytecodePatch(
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -68,8 +68,8 @@ class HideAutoplayButtonPatch : BytecodePatch(
} ?: return LayoutConstructorFingerprint.toErrorResult() } ?: return LayoutConstructorFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -46,8 +46,8 @@ class HideCaptionsButtonBytecodePatch : BytecodePatch(
} ?: return SubtitleButtonControllerFingerprint.toErrorResult() } ?: return SubtitleButtonControllerFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -39,8 +39,8 @@ class HideCastButtonPatch : BytecodePatch() {
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -56,8 +56,8 @@ class HideEndscreenCardsPatch : BytecodePatch(
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -41,8 +41,8 @@ class HideInfocardsPatch : BytecodePatch(
} ?: return InfocardsIncognitoParentFingerprint.toErrorResult() } ?: return InfocardsIncognitoParentFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -28,7 +28,7 @@ class HideLiveChatButtonPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult { override fun execute(context: ResourceContext): PatchResult {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -28,7 +28,7 @@ class HideNextPrevButtonPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult { override fun execute(context: ResourceContext): PatchResult {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -88,8 +88,8 @@ class PlayerOverlayFilterPatch : BytecodePatch() {
if (errorIndex == -1) { if (errorIndex == -1) {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -73,8 +73,8 @@ class SuggestedActionsPatch : BytecodePatch() {
if (errorIndex == -1) { if (errorIndex == -1) {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -52,8 +52,8 @@ class HideChannelWatermarkBytecodePatch : BytecodePatch(
} ?: return HideWatermarkParentFingerprint.toErrorResult() } ?: return HideWatermarkParentFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -78,8 +78,8 @@ class SeekbarColorPatch : BytecodePatch() {
if (errorIndex == -1) { if (errorIndex == -1) {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -88,8 +88,8 @@ class SeekbarTappingPatch : BytecodePatch(
} ?: return SeekbarTappingFingerprint.toErrorResult() } ?: return SeekbarTappingFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -61,8 +61,8 @@ class HideTimeAndSeekbarPatch : BytecodePatch(
} ?: return TimeCounterParentFingerprint.toErrorResult() } ?: return TimeCounterParentFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"PREFERENCE: LAYOUT_SETTINGS", "PREFERENCE: LAYOUT_SETTINGS",

View File

@ -51,8 +51,8 @@ class ExternalBrowserPatch : BytecodePatch(
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"SETTINGS: ENABLE_EXTERNAL_BROWSER" "SETTINGS: ENABLE_EXTERNAL_BROWSER"

View File

@ -62,8 +62,8 @@ class ForceVP9CodecPatch : BytecodePatch(
} ?: return Vp9PropsParentFingerprint.toErrorResult() } ?: return Vp9PropsParentFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"SETTINGS: EXPERIMENTAL_FLAGS", "SETTINGS: EXPERIMENTAL_FLAGS",

View File

@ -37,8 +37,8 @@ class LayoutSwitchPatch : BytecodePatch(
) ?: return LayoutSwitchFingerprint.toErrorResult() ) ?: return LayoutSwitchFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"SETTINGS: EXPERIMENTAL_FLAGS", "SETTINGS: EXPERIMENTAL_FLAGS",

View File

@ -39,7 +39,7 @@ class MicroGPatch : ResourcePatch {
val packageName = PatchOptions.YouTubePackageName!! val packageName = PatchOptions.YouTubePackageName!!
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -62,8 +62,8 @@ class MinimizedPlaybackPatch : BytecodePatch(
PipControllerFingerprint.result?.hookShortsPiP()?:return PipControllerFingerprint.toErrorResult() PipControllerFingerprint.result?.hookShortsPiP()?:return PipControllerFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"SETTINGS: ENABLE_MINIMIZED_PLAYBACK" "SETTINGS: ENABLE_MINIMIZED_PLAYBACK"

View File

@ -45,8 +45,8 @@ class OldLayoutPatch : BytecodePatch(
} ?: return OldLayoutFingerprint.toErrorResult() } ?: return OldLayoutFingerprint.toErrorResult()
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"SETTINGS: EXPERIMENTAL_FLAGS", "SETTINGS: EXPERIMENTAL_FLAGS",

View File

@ -42,8 +42,8 @@ class OpenLinksDirectlyPatch : BytecodePatch(
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(
"SETTINGS: ENABLE_OPEN_LINKS_DIRECTLY" "SETTINGS: ENABLE_OPEN_LINKS_DIRECTLY"

View File

@ -97,8 +97,8 @@ class ReturnYouTubeDislikePatch : BytecodePatch(
MainstreamVideoIdPatch.injectCall("$INTEGRATIONS_RYD_CLASS_DESCRIPTOR->newVideoLoaded(Ljava/lang/String;)V") MainstreamVideoIdPatch.injectCall("$INTEGRATIONS_RYD_CLASS_DESCRIPTOR->newVideoLoaded(Ljava/lang/String;)V")
/* /*
add ReVanced Settings * Add ReVanced Settings
*/ */
SettingsPatch.addReVancedPreference("ryd_settings") SettingsPatch.addReVancedPreference("ryd_settings")
SettingsPatch.updatePatchStatus("return-youtube-dislike") SettingsPatch.updatePatchStatus("return-youtube-dislike")

View File

@ -95,7 +95,7 @@ class SponsorBlockResourcePatch : ResourcePatch {
} }
/* /*
add ReVanced Settings * Add ReVanced Settings
*/ */
SettingsPatch.addReVancedPreference("sponsorblock_settings") SettingsPatch.addReVancedPreference("sponsorblock_settings")

View File

@ -32,7 +32,7 @@ class SwipeControlsPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult { override fun execute(context: ResourceContext): PatchResult {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -50,7 +50,7 @@ class CustomVideoSpeedPatch : ResourcePatch {
} }
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -36,7 +36,7 @@ class VideoQualityPatch : ResourcePatch {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(

View File

@ -28,7 +28,7 @@ class VideoSpeedPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult { override fun execute(context: ResourceContext): PatchResult {
/* /*
add settings * Add settings
*/ */
SettingsPatch.addPreference( SettingsPatch.addPreference(
arrayOf( arrayOf(