mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-29 05:10:20 +02:00
fix(YouTube/Litho filter): no longer using Lowlevel filter
This commit is contained in:
parent
9d120a96a5
commit
a7043078b2
@ -6,7 +6,6 @@ import app.revanced.patcher.patch.annotation.CompatiblePackage
|
|||||||
import app.revanced.patcher.patch.annotation.Patch
|
import app.revanced.patcher.patch.annotation.Patch
|
||||||
import app.revanced.patches.youtube.utils.litho.LithoFilterPatch
|
import app.revanced.patches.youtube.utils.litho.LithoFilterPatch
|
||||||
import app.revanced.patches.youtube.utils.settings.SettingsPatch
|
import app.revanced.patches.youtube.utils.settings.SettingsPatch
|
||||||
import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus
|
|
||||||
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||||
|
|
||||||
@Patch(
|
@Patch(
|
||||||
@ -41,6 +40,7 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
|
|||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
object LayoutComponentsPatch : BytecodePatch() {
|
object LayoutComponentsPatch : BytecodePatch() {
|
||||||
override fun execute(context: BytecodeContext) {
|
override fun execute(context: BytecodeContext) {
|
||||||
|
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/BrowseStoreButtonFilter;")
|
||||||
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/CommunityPostFilter;")
|
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/CommunityPostFilter;")
|
||||||
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/LayoutComponentsFilter;")
|
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/LayoutComponentsFilter;")
|
||||||
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/LayoutComponentsUniversalFilter;")
|
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/LayoutComponentsUniversalFilter;")
|
||||||
@ -61,8 +61,5 @@ object LayoutComponentsPatch : BytecodePatch() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
SettingsPatch.updatePatchStatus("Hide layout components")
|
SettingsPatch.updatePatchStatus("Hide layout components")
|
||||||
|
|
||||||
context.updatePatchStatus("LayoutComponent")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ object LithoFilterPatch : BytecodePatch(
|
|||||||
}
|
}
|
||||||
} ?: throw GeneralByteBufferFingerprint.exception
|
} ?: throw GeneralByteBufferFingerprint.exception
|
||||||
|
|
||||||
generalHook("$ADS_PATH/LithoFilterPatch;->filters")
|
generalHook("$ADS_PATH/LithoFilterPatch;->filter")
|
||||||
|
|
||||||
LithoFilterFingerprint.result?.mutableMethod?.apply {
|
LithoFilterFingerprint.result?.mutableMethod?.apply {
|
||||||
removeInstructions(0, 6)
|
removeInstructions(0, 6)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user