fix(youtube/general-ads): check for quick actions in path instead of component identifier

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2023-02-24 03:22:17 +01:00
parent 05bfc68907
commit 476902e9ce
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -41,6 +41,7 @@ public final class GeneralAdsPatch extends Filter {
var horizontalVideoShelf = new BlockRule(SettingsEnum.ADREMOVER_HORIZONTAL_VIDEO_SHELF, "horizontal_video_shelf"); var horizontalVideoShelf = new BlockRule(SettingsEnum.ADREMOVER_HORIZONTAL_VIDEO_SHELF, "horizontal_video_shelf");
var channelBar = new BlockRule(SettingsEnum.ADREMOVER_CHANNEL_BAR, "channel_bar"); var channelBar = new BlockRule(SettingsEnum.ADREMOVER_CHANNEL_BAR, "channel_bar");
var relatedVideos = new BlockRule(SettingsEnum.ADREMOVER_RELATED_VIDEOS, "fullscreen_related_videos"); var relatedVideos = new BlockRule(SettingsEnum.ADREMOVER_RELATED_VIDEOS, "fullscreen_related_videos");
var quickActions = new BlockRule(SettingsEnum.ADREMOVER_CHANNEL_BAR, "quick_actions");
var graySeparator = new BlockRule(SettingsEnum.ADREMOVER_GRAY_SEPARATOR, var graySeparator = new BlockRule(SettingsEnum.ADREMOVER_GRAY_SEPARATOR,
"cell_divider" // layout residue (gray line above the buttoned ad), "cell_divider" // layout residue (gray line above the buttoned ad),
); );
@ -79,6 +80,7 @@ public final class GeneralAdsPatch extends Filter {
movieAds, movieAds,
chapterTeaser, chapterTeaser,
communityGuidelines, communityGuidelines,
quickActions,
relatedVideos, relatedVideos,
compactBanner, compactBanner,
inFeedSurvey, inFeedSurvey,
@ -95,7 +97,6 @@ public final class GeneralAdsPatch extends Filter {
channelMemberShelf channelMemberShelf
); );
var quickActions = new BlockRule(SettingsEnum.ADREMOVER_CHANNEL_BAR, "quick_actions");
var carouselAd = new BlockRule(SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL, var carouselAd = new BlockRule(SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL,
"carousel_ad" "carousel_ad"
); );
@ -109,7 +110,6 @@ public final class GeneralAdsPatch extends Filter {
this.identifierRegister.registerAll( this.identifierRegister.registerAll(
shorts, shorts,
graySeparator, graySeparator,
quickActions,
carouselAd carouselAd
); );
} }