From 1ede5b09be0573d64d5da12f3b496df5d6de7a35 Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications Date: Sat, 25 Jan 2025 01:34:11 +0530 Subject: [PATCH 01/10] feat(YouTube - Hide ads):Add `Hide end screen store ad` --- .../youtube/patches/components/AdsFilter.java | 31 ++++- .../extension/youtube/settings/Settings.java | 1 + .../youtube/ad/general/HideAdsPatch.kt | 1 + .../resources/addresources/values/strings.xml | 129 +++++++++--------- 4 files changed, 94 insertions(+), 68 deletions(-) diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java index 6a4a1ab32f..19164bd9ae 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java @@ -27,6 +27,9 @@ public final class AdsFilter extends Filter { private final StringFilterGroup playerShoppingShelf; private final ByteArrayFilterGroup playerShoppingShelfBuffer; + private final StringFilterGroup fullscreenOverlay; + private final ByteArrayFilterGroup endScreenStoreAdBuffer; + private final StringFilterGroup channelProfile; private final ByteArrayFilterGroup visitStoreButton; @@ -112,11 +115,6 @@ public AdsFilter() { "expandable_list" ); - channelProfile = new StringFilterGroup( - null, - "channel_profile.eml" - ); - playerShoppingShelf = new StringFilterGroup( null, "horizontal_shelf.eml" @@ -127,6 +125,21 @@ public AdsFilter() { "shopping_item_card_list.eml" ); + fullscreenOverlay = new StringFilterGroup( + null, + "fullscreen_overlay.eml" + ); + + endScreenStoreAdBuffer = new ByteArrayFilterGroup( + Settings.HIDE_END_SCREEN_STORE_AD, + "gstatic.com/shopping" + ); + + channelProfile = new StringFilterGroup( + null, + "channel_profile.eml" + ); + visitStoreButton = new ByteArrayFilterGroup( Settings.HIDE_VISIT_STORE_BUTTON, "header_store_button" @@ -154,6 +167,7 @@ public AdsFilter() { viewProducts, selfSponsor, fullscreenAd, + fullscreenOverlay, channelProfile, webLinkPanel, shoppingLinks, @@ -172,6 +186,13 @@ boolean isFiltered(@Nullable String identifier, String path, byte[] protobufBuff return false; } + if (matchedGroup == fullscreenOverlay) { + if (contentIndex == 0 && endScreenStoreAdBuffer.check(protobufBufferArray).isFiltered()) { + return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex); + } + return false; + } + if (exceptions.matches(path)) return false; diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/Settings.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/Settings.java index 5817e5aca4..5f21c8d9cb 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/Settings.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/Settings.java @@ -61,6 +61,7 @@ public class Settings extends BaseSettings { // Ads public static final BooleanSetting HIDE_BUTTONED_ADS = new BooleanSetting("revanced_hide_buttoned_ads", TRUE); + public static final BooleanSetting HIDE_END_SCREEN_STORE_AD = new BooleanSetting("revanced_hide_end_screen_store_ad", FALSE); public static final BooleanSetting HIDE_FULLSCREEN_ADS = new BooleanSetting("revanced_hide_fullscreen_ads", TRUE); public static final BooleanSetting HIDE_GENERAL_ADS = new BooleanSetting("revanced_hide_general_ads", TRUE); public static final BooleanSetting HIDE_GET_PREMIUM = new BooleanSetting("revanced_hide_get_premium", TRUE); diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt index 14e5aa3b60..2d8cbf364c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt @@ -37,6 +37,7 @@ private val hideAdsResourcePatch = resourcePatch { PreferenceScreen.ADS.addPreferences( SwitchPreference("revanced_hide_general_ads"), + SwitchPreference("revanced_hide_end_screen_store_ad"), SwitchPreference("revanced_hide_fullscreen_ads"), SwitchPreference("revanced_hide_buttoned_ads"), SwitchPreference("revanced_hide_paid_promotion_label"), diff --git a/patches/src/main/resources/addresources/values/strings.xml b/patches/src/main/resources/addresources/values/strings.xml index ffceca0ad6..9a5da6043c 100644 --- a/patches/src/main/resources/addresources/values/strings.xml +++ b/patches/src/main/resources/addresources/values/strings.xml @@ -169,9 +169,9 @@ Tap the continue button and allow optimization changes." You will not be notified of any unexpected events." - Disable like / subscribe button glow - Like and subscribe button will not glow when mentioned - Like and subscribe button will glow when mentioned + Disable Like and Subscribe button glow + Like and Subscribe button will not glow when mentioned + Like and Subscribe button will glow when mentioned Hide album cards Album cards are hidden Album cards are shown @@ -194,25 +194,25 @@ You will not be notified of any unexpected events." Shelves are shown - Hide \'Join\' button + Hide Join button Button is hidden Button is shown - Hide \'For you\' shelf in channel page + Hide For you shelf in channel page Shelf is hidden Shelf is shown - Hide \'Notify me\' button + Hide Notify me button Button is hidden Button is shown - Hide \'People also watched\' recommendations + Hide People also watched recommendations Recommendations are hidden Recommendations are shown - Hide \'Show more\' button + Hide Show more button Button is hidden Button is shown Hide timed reactions @@ -224,7 +224,7 @@ You will not be notified of any unexpected events." Hide chips shelf Chips shelf is hidden Chips shelf is shown - Hide expandable chip under videos + Hide expandable chips under videos Expandable chips are hidden Expandable chips are shown Hide community posts @@ -282,20 +282,20 @@ You will not be notified of any unexpected events." Artist cards are hidden Artist cards are shown Hide attributes section - \'Featured places\', Games and Music sections are hidden - \'Featured places\', Games and Music sections are shown + Featured places, Games and Music sections are hidden + Featured places, Games and Music sections are shown Hide Chapters section Chapters section is hidden Chapters section is shown - Hide \'Explore the podcast\' section - \'Explore the podcast\' section is hidden - \'Explore the podcast\' section is shown + Hide Explore the podcast section + Explore the podcast section is hidden + Explore the podcast section is shown Hide info cards section Info cards section is hidden Info cards section is shown - Hide \'Key concepts\' section - \'Key concepts\' section is hidden - \'Key concepts\' section is shown + Hide Key concepts section + Key concepts section is hidden + Key concepts section is shown Hide Transcript section Transcript section is hidden Transcript section is shown @@ -316,27 +316,27 @@ You will not be notified of any unexpected events." Comments Hide or show comments section components - Hide \'Chat summary\' - \'Chat summary\' is hidden - \'Chat summary\' is shown - Hide \'Comments by members\' header - \'Comments by members\' header is hidden - \'Comments by members\' header is shown + Hide Chat summary + Chat summary is hidden + Chat summary is shown + Hide Comments by members header + Comments by members header is hidden + Comments by members header is shown Hide comments section Comments section is hidden Comments section is shown - Hide \'Create a Short\' button - \'Create a Short\' button is hidden - \'Create a Short\' button is shown + Hide Create a Short button + Create a Short button is hidden + Create a Short button is shown + Hide emoji and timestamp buttons + Emoji and timestamp buttons are hidden + Emoji and timestamp buttons are shown Hide preview comment Preview comment is hidden Preview comment is shown - Hide thanks button + Hide Thanks button Thanks button is hidden Thanks button is shown - Hide timestamp and emoji buttons - Timestamp and emoji buttons are hidden - Timestamp and emoji buttons are shown Hide YouTube Doodles @@ -360,12 +360,12 @@ If a Doodle is currently showing in your region and this hide setting is on, the Hide home videos by keywords Videos in the home tab are filtered by keywords Videos in the home tab are not filtered by keywords - Hide subscription videos by keywords - Videos in the subscriptions tab are filtered by keywords - Videos in the subscriptions tab are not filtered by keywords Hide search results by keywords Search results are filtered by keywords Search results are not filtered by keywords + Hide subscription videos by keywords + Videos in the subscriptions tab are filtered by keywords + Videos in the subscriptions tab are not filtered by keywords Keywords to hide @@ -409,9 +409,12 @@ This feature is only available for older devices" Hide self sponsored cards Self sponsored cards are hidden Self sponsored cards are shown - Hide banner to view products + Hide view products banner Banner is hidden Banner is shown + Hide end screen store ad + Store ad is hidden + Store ad is shown Hide player shopping shelf Shopping shelf is hidden Shopping shelf is shown @@ -419,7 +422,7 @@ This feature is only available for older devices" Shopping links are hidden Shopping links are shown - Hide the \'Visit store\' button on channel pages + Hide Visit store button in channel page Button is hidden Button is shown Hide web search results @@ -464,7 +467,7 @@ This feature is only available for older devices" Download button shown in player Download button not shown in player - Override download action button + Override Download action button Download button opens your external downloader Download button opens the native in-app downloader Downloader package name @@ -651,14 +654,14 @@ Note: Enabling this also forcibly hides video ads" Hide previous & next video buttons Buttons are hidden Buttons are shown - Hide cast button + Hide Cast button Cast button is hidden Cast button is shown - Hide captions button + Hide Captions button Captions button is hidden Captions button is shown - Hide autoplay button + Hide Autoplay button Autoplay button is hidden Autoplay button is shown @@ -668,7 +671,7 @@ Note: Enabling this also forcibly hides video ads" End screen cards are shown - Disable ambient mode in fullscreen + Disable Ambient mode in fullscreen Ambient mode disabled Ambient mode enabled @@ -694,52 +697,52 @@ Note: Enabling this also forcibly hides video ads" Shorts player Hide or show components in the Shorts player - Hide Shorts in home feed + Hide in home feed Hidden in home feed and related videos Shown in home feed and related videos - Hide Shorts in subscription feed + Hide in subscription feed Hidden in subscription feed Shown in subscription feed - Hide Shorts in search results + Hide in search results Hidden in search results Shown in search results - Hide Shorts in watch history + Hide in watch history Hidden in watch history Shown in watch history - Hide join button + Hide Join button Join button is hidden Join button is shown - Hide subscribe button + Hide Subscribe button Subscribe button is hidden Subscribe button is shown Hide paused overlay buttons Paused overlay buttons are hidden Paused overlay buttons are shown - Hide shop button + Hide Shop button Shop button is hidden Shop button is shown - Hide super thanks button - Super thanks button is hidden - Super thanks button is shown + Hide Buy Super Thanks button + Super Thanks button is hidden + Super Thanks button is shown Hide tagged products Tagged products are hidden Tagged products are shown Hide location label Location label is hidden Location label is shown - Hide save music button + Hide Save music button Save music button is hidden Save music button is shown - Hide use template button + Hide Use template button Use template button is hidden Use template button is shown - Hide upcoming button + Hide Upcoming button Upcoming button is hidden Upcoming button is shown - Hide green screen button + Hide Green screen button Green screen button is hidden Green screen button is shown Hide hashtag button @@ -751,24 +754,24 @@ Note: Enabling this also forcibly hides video ads" Hide stickers Stickers are hidden Stickers are shown - Hide like fountain + Hide Like button fountain animation Like button fountain animation is hidden Like button fountain animation is shown - Hide like button + Hide Like button Like button is hidden Like button is shown - Hide dislike button + Hide Dislike button Dislike button is hidden Dislike button is shown - Hide comments button + Hide Comments button Comments button is hidden Comments button is shown - Hide remix button + Hide Remix button Remix button is hidden Remix button is shown - Hide share button + Hide Share button Share button is hidden Share button is shown Hide info panel @@ -847,7 +850,7 @@ Limitation: Dislikes may not appear in incognito mode" Dislikes shown as percentage Dislikes shown as number - Compact like button + Compact Like button Like button styled for minimum width Like button styled for best appearance Show a toast if API is not available @@ -897,7 +900,7 @@ This feature works best with a video quality of 720p or lower and when using a v SponsorBlock Enable SponsorBlock - SponsorBlock is a crowd-sourced system for skipping annoying parts of YouTube videos + SponsorBlock is a crowdsourced system for skipping annoying parts of YouTube videos Appearance Show voting button Segment voting button is shown @@ -962,7 +965,7 @@ Your user id is like a password and it should never be shared. Sponsor Paid promotion, paid referrals and direct advertisements. Not for self-promotion or free shout-outs to causes/creators/websites/products they like Unpaid/Self Promotion - Similar to \'Sponsor\' except for unpaid or self promotion. Includes sections about merchandise, donations, or information about who they collaborated with + Similar to Sponsor except for unpaid or self promotion. Includes sections about merchandise, donations, or information about who they collaborated with Interaction Reminder (Subscribe) A short reminder to like, subscribe or follow them in the middle of content. If it is long or about something specific, it should instead be under self promotion Highlight From 8937daf517aaeeb8c0e2c24eba999aa5a7cfc9ed Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Sat, 25 Jan 2025 01:55:27 +0530 Subject: [PATCH 02/10] Apply suggestion from reviewer --- .../extension/youtube/patches/components/AdsFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java index 19164bd9ae..8b4f54e9ad 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java @@ -126,12 +126,12 @@ public AdsFilter() { ); fullscreenOverlay = new StringFilterGroup( - null, + Settings.HIDE_END_SCREEN_STORE_AD, "fullscreen_overlay.eml" ); endScreenStoreAdBuffer = new ByteArrayFilterGroup( - Settings.HIDE_END_SCREEN_STORE_AD, + null, "gstatic.com/shopping" ); From bafdb02d6b1b85bf11b08bae230f006e1fd90bc3 Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Sat, 25 Jan 2025 02:31:50 +0530 Subject: [PATCH 03/10] Improve option naming --- patches/src/main/resources/addresources/values/strings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/src/main/resources/addresources/values/strings.xml b/patches/src/main/resources/addresources/values/strings.xml index 9a5da6043c..97abb1f8fa 100644 --- a/patches/src/main/resources/addresources/values/strings.xml +++ b/patches/src/main/resources/addresources/values/strings.xml @@ -224,9 +224,9 @@ You will not be notified of any unexpected events." Hide chips shelf Chips shelf is hidden Chips shelf is shown - Hide expandable chips under videos - Expandable chips are hidden - Expandable chips are shown + Hide expandable cards under videos + Expandable cards are hidden + Expandable cards are shown Hide community posts Community posts are hidden Community posts are shown From f602dfc908aadeb276ae191fee81e0b50497117e Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Sat, 25 Jan 2025 16:37:56 +0530 Subject: [PATCH 04/10] Apply suggestion from reviewer --- patches/src/main/resources/addresources/values/strings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/src/main/resources/addresources/values/strings.xml b/patches/src/main/resources/addresources/values/strings.xml index 97abb1f8fa..4f6b29ab4c 100644 --- a/patches/src/main/resources/addresources/values/strings.xml +++ b/patches/src/main/resources/addresources/values/strings.xml @@ -224,9 +224,9 @@ You will not be notified of any unexpected events." Hide chips shelf Chips shelf is hidden Chips shelf is shown - Hide expandable cards under videos - Expandable cards are hidden - Expandable cards are shown + Hide expandable card under videos + Expandable card is hidden + Expandable card is shown Hide community posts Community posts are hidden Community posts are shown From ca82d91908ecc603a63fee9a45d0a81e037c7b0b Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Sat, 25 Jan 2025 22:22:29 +0530 Subject: [PATCH 05/10] Update patch naming --- .../extension/youtube/patches/components/AdsFilter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java index 8b4f54e9ad..ba72f30374 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java @@ -28,7 +28,7 @@ public final class AdsFilter extends Filter { private final ByteArrayFilterGroup playerShoppingShelfBuffer; private final StringFilterGroup fullscreenOverlay; - private final ByteArrayFilterGroup endScreenStoreAdBuffer; + private final ByteArrayFilterGroup endScreenStoreBannerBuffer; private final StringFilterGroup channelProfile; private final ByteArrayFilterGroup visitStoreButton; @@ -126,7 +126,7 @@ public AdsFilter() { ); fullscreenOverlay = new StringFilterGroup( - Settings.HIDE_END_SCREEN_STORE_AD, + Settings.HIDE_END_SCREEN_STORE_BANNER, "fullscreen_overlay.eml" ); @@ -187,7 +187,7 @@ boolean isFiltered(@Nullable String identifier, String path, byte[] protobufBuff } if (matchedGroup == fullscreenOverlay) { - if (contentIndex == 0 && endScreenStoreAdBuffer.check(protobufBufferArray).isFiltered()) { + if (contentIndex == 0 && endScreenStoreBannerBuffer.check(protobufBufferArray).isFiltered()) { return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex); } return false; From a06bf3c2acd40e8db5636358113c709283a2e441 Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Sat, 25 Jan 2025 22:25:13 +0530 Subject: [PATCH 06/10] Update patch naming --- .../java/app/revanced/extension/youtube/settings/Settings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/Settings.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/Settings.java index 5f21c8d9cb..af5fd23138 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/Settings.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/Settings.java @@ -61,7 +61,7 @@ public class Settings extends BaseSettings { // Ads public static final BooleanSetting HIDE_BUTTONED_ADS = new BooleanSetting("revanced_hide_buttoned_ads", TRUE); - public static final BooleanSetting HIDE_END_SCREEN_STORE_AD = new BooleanSetting("revanced_hide_end_screen_store_ad", FALSE); + public static final BooleanSetting HIDE_END_SCREEN_STORE_BANNER = new BooleanSetting("revanced_hide_end_screen_store_banner", FALSE); public static final BooleanSetting HIDE_FULLSCREEN_ADS = new BooleanSetting("revanced_hide_fullscreen_ads", TRUE); public static final BooleanSetting HIDE_GENERAL_ADS = new BooleanSetting("revanced_hide_general_ads", TRUE); public static final BooleanSetting HIDE_GET_PREMIUM = new BooleanSetting("revanced_hide_get_premium", TRUE); From cc16ab82c0cb15c9c777019ef38dcc3b5bc9c1a5 Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Sat, 25 Jan 2025 22:25:42 +0530 Subject: [PATCH 07/10] Update patch naming --- .../app/revanced/patches/youtube/ad/general/HideAdsPatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt index 2d8cbf364c..3047d6fe42 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt @@ -37,7 +37,7 @@ private val hideAdsResourcePatch = resourcePatch { PreferenceScreen.ADS.addPreferences( SwitchPreference("revanced_hide_general_ads"), - SwitchPreference("revanced_hide_end_screen_store_ad"), + SwitchPreference("revanced_hide_end_screen_store_banner"), SwitchPreference("revanced_hide_fullscreen_ads"), SwitchPreference("revanced_hide_buttoned_ads"), SwitchPreference("revanced_hide_paid_promotion_label"), From d9cbb725e1ddc547338bda98b5d8597e175c4a3a Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Sat, 25 Jan 2025 22:28:45 +0530 Subject: [PATCH 08/10] Apply suggestions from reviewer --- .../main/resources/addresources/values/strings.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/patches/src/main/resources/addresources/values/strings.xml b/patches/src/main/resources/addresources/values/strings.xml index 4f6b29ab4c..57d226f649 100644 --- a/patches/src/main/resources/addresources/values/strings.xml +++ b/patches/src/main/resources/addresources/values/strings.xml @@ -412,9 +412,9 @@ This feature is only available for older devices" Hide view products banner Banner is hidden Banner is shown - Hide end screen store ad - Store ad is hidden - Store ad is shown + Hide end screen store banner + Store banner is hidden + Store banner is shown Hide player shopping shelf Shopping shelf is hidden Shopping shelf is shown @@ -697,17 +697,17 @@ Note: Enabling this also forcibly hides video ads" Shorts player Hide or show components in the Shorts player - Hide in home feed + Hide Shorts in home feed Hidden in home feed and related videos Shown in home feed and related videos - Hide in subscription feed + Hide Shorts in subscription feed Hidden in subscription feed Shown in subscription feed - Hide in search results + Hide Shorts in search results Hidden in search results Shown in search results - Hide in watch history + Hide Shorts in watch history Hidden in watch history Shown in watch history From 0a06c12c6829a9f06057e167e2842d36f100f2c2 Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Sat, 25 Jan 2025 22:37:48 +0530 Subject: [PATCH 09/10] Missed one --- .../extension/youtube/patches/components/AdsFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java index ba72f30374..372fcebcab 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/AdsFilter.java @@ -130,7 +130,7 @@ public AdsFilter() { "fullscreen_overlay.eml" ); - endScreenStoreAdBuffer = new ByteArrayFilterGroup( + endScreenStoreBannerBuffer = new ByteArrayFilterGroup( null, "gstatic.com/shopping" ); From b2e0fda375c2bf026ebfdf3027b67f844c50d190 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Mon, 27 Jan 2025 10:29:09 +0200 Subject: [PATCH 10/10] Revert string quote changes --- .../resources/addresources/values/strings.xml | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/patches/src/main/resources/addresources/values/strings.xml b/patches/src/main/resources/addresources/values/strings.xml index 57d226f649..25063f22a2 100644 --- a/patches/src/main/resources/addresources/values/strings.xml +++ b/patches/src/main/resources/addresources/values/strings.xml @@ -194,25 +194,25 @@ You will not be notified of any unexpected events." Shelves are shown - Hide Join button + Hide \'Join\' button Button is hidden Button is shown - Hide For you shelf in channel page + Hide \'For you\' shelf in channel page Shelf is hidden Shelf is shown - Hide Notify me button + Hide \'Notify me\' button Button is hidden Button is shown - Hide People also watched recommendations + Hide \'People also watched\' recommendations Recommendations are hidden Recommendations are shown - Hide Show more button + Hide \'Show more\' button Button is hidden Button is shown Hide timed reactions @@ -225,8 +225,8 @@ You will not be notified of any unexpected events." Chips shelf is hidden Chips shelf is shown Hide expandable card under videos - Expandable card is hidden - Expandable card is shown + Expandable cards are hidden + Expandable cards are shown Hide community posts Community posts are hidden Community posts are shown @@ -282,20 +282,20 @@ You will not be notified of any unexpected events." Artist cards are hidden Artist cards are shown Hide attributes section - Featured places, Games and Music sections are hidden - Featured places, Games and Music sections are shown + \'Featured places\', Games and Music sections are hidden + \'Featured places\', Games and Music sections are shown Hide Chapters section Chapters section is hidden Chapters section is shown - Hide Explore the podcast section - Explore the podcast section is hidden - Explore the podcast section is shown + Hide \'Explore the podcast\' section + \'Explore the podcast\' section is hidden + \'Explore the podcast\' section is shown Hide info cards section Info cards section is hidden Info cards section is shown - Hide Key concepts section - Key concepts section is hidden - Key concepts section is shown + Hide \'Key concepts\' section + \'Key concepts\' section is hidden + \'Key concepts\' section is shown Hide Transcript section Transcript section is hidden Transcript section is shown @@ -316,27 +316,27 @@ You will not be notified of any unexpected events." Comments Hide or show comments section components - Hide Chat summary - Chat summary is hidden - Chat summary is shown - Hide Comments by members header - Comments by members header is hidden - Comments by members header is shown + Hide \'Chat summary\' + \'Chat summary\' is hidden + \'Chat summary\' is shown + Hide \'Comments by members\' header + \'Comments by members\' header is hidden + \'Comments by members\' header is shown Hide comments section Comments section is hidden Comments section is shown - Hide Create a Short button - Create a Short button is hidden - Create a Short button is shown - Hide emoji and timestamp buttons - Emoji and timestamp buttons are hidden - Emoji and timestamp buttons are shown + Hide \'Create a Short\' button + \'Create a Short\' button is hidden + \'Create a Short\' button is shown Hide preview comment Preview comment is hidden Preview comment is shown Hide Thanks button Thanks button is hidden Thanks button is shown + Hide timestamp and emoji buttons + Timestamp and emoji buttons are hidden + Timestamp and emoji buttons are shown Hide YouTube Doodles @@ -409,7 +409,7 @@ This feature is only available for older devices" Hide self sponsored cards Self sponsored cards are hidden Self sponsored cards are shown - Hide view products banner + Hide banner to view products Banner is hidden Banner is shown Hide end screen store banner @@ -422,7 +422,7 @@ This feature is only available for older devices" Shopping links are hidden Shopping links are shown - Hide Visit store button in channel page + Hide the \'Visit store\' button on channel pages Button is hidden Button is shown Hide web search results