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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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