From b3eec46ee48872ba9b3ce3c7f46276622a865f3f Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 15 Nov 2022 00:54:01 +0100 Subject: [PATCH] feat(youtube/general-ads): hide self sponsored cards --- .../ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt index 6df993f9..87af2c7c 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt @@ -177,6 +177,13 @@ class GeneralBytecodeAdsPatch : BytecodePatch() { StringResource("revanced_adremover_hide_channel_guidelines_enabled_summary_on", "Channel guidelines are hidden"), StringResource("revanced_adremover_hide_channel_guidelines_enabled_summary_off", "Channel guidelines are shown") ), + SwitchPreference( + "revanced_adremover_self_sponsor", + StringResource("revanced_adremover_self_sponsor_enabled_title", "Hide self sponsored cards"), + true, + StringResource("revanced_adremover_self_sponsor_enabled_summary_on", "Self sponsored cards are hidden"), + StringResource("revanced_adremover_self_sponsor_enabled_summary_off", "Self sponsored cards are shown") + ) ) // iterating through all classes is expensive