This commit is contained in:
inotia00
2023-02-15 11:57:57 +09:00
parent ec8bf1c2bb
commit 79a808db5c
213 changed files with 1710 additions and 3027 deletions

View File

@ -10,9 +10,8 @@ import app.revanced.patcher.patch.ResourcePatch
import app.revanced.patcher.patch.annotations.DependsOn
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patches.shared.annotation.YouTubeCompatibility
import app.revanced.patches.youtube.misc.litho.filter.patch.LithoFilterPatch
import app.revanced.patches.youtube.misc.litho.patch.LithoFilterPatch
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
import app.revanced.util.resources.ResourceHelper
@Patch
@Name("hide-button-container")
@ -31,18 +30,15 @@ class ButtonContainerPatch : ResourcePatch {
/*
add settings
*/
ResourceHelper.addSettings2(
context,
"PREFERENCE_CATEGORY: REVANCED_SETTINGS",
"PREFERENCE: LAYOUT_SETTINGS",
"PREFERENCE_HEADER: BOTTOM_PLAYER",
"SETTINGS: BUTTON_CONTAINER"
SettingsPatch.addPreference(
arrayOf(
"PREFERENCE: LAYOUT_SETTINGS",
"PREFERENCE_HEADER: BOTTOM_PLAYER",
"SETTINGS: BUTTON_CONTAINER"
)
)
ResourceHelper.patchSuccess(
context,
"hide-button-container"
)
SettingsPatch.updatePatchStatus("hide-button-container")
return PatchResultSuccess()
}

View File

@ -12,7 +12,6 @@ import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patches.shared.annotation.YouTubeCompatibility
import app.revanced.patches.youtube.ads.general.bytecode.patch.GeneralAdsBytecodePatch
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
import app.revanced.util.resources.ResourceHelper
@Patch
@Name("hide-comment-component")
@ -31,18 +30,15 @@ class CommentComponentPatch : ResourcePatch {
/*
add settings
*/
ResourceHelper.addSettings2(
context,
"PREFERENCE_CATEGORY: REVANCED_SETTINGS",
"PREFERENCE: LAYOUT_SETTINGS",
"PREFERENCE_HEADER: BOTTOM_PLAYER",
"SETTINGS: COMMENT_COMPONENT"
SettingsPatch.addPreference(
arrayOf(
"PREFERENCE: LAYOUT_SETTINGS",
"PREFERENCE_HEADER: BOTTOM_PLAYER",
"SETTINGS: COMMENT_COMPONENT"
)
)
ResourceHelper.patchSuccess(
context,
"hide-comment-component"
)
SettingsPatch.updatePatchStatus("hide-comment-component")
return PatchResultSuccess()
}