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(
arrayOf(

View File

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

View File

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

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,7 +40,7 @@ class PiPNotificationPatch : BytecodePatch(
}
/*
add settings
* Add settings
*/
SettingsPatch.updatePatchStatus("hide-pip-notification")

View File

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

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,7 +81,7 @@ class HideEndscreenOverlayPatch : BytecodePatch() {
if (errorIndex == -1) {
/*
add settings
* Add settings
*/
SettingsPatch.addPreference(
arrayOf(

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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,7 +107,7 @@ class ShortsComponentPatch : BytecodePatch() {
context.updatePatchStatus("ShortsComponent")
/*
add settings
* Add settings
*/
SettingsPatch.addPreference(
arrayOf(

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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,7 +88,7 @@ class PlayerOverlayFilterPatch : BytecodePatch() {
if (errorIndex == -1) {
/*
add settings
* Add settings
*/
SettingsPatch.addPreference(
arrayOf(

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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