Skip to content

Commit

Permalink
fix(youtube/general-ads): check for quick actions in path instead of …
Browse files Browse the repository at this point in the history
…component identifier

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
  • Loading branch information
oSumAtrIX committed Feb 24, 2023
1 parent 05bfc68 commit 476902e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -41,6 +41,7 @@ public GeneralAdsPatch() {
var horizontalVideoShelf = new BlockRule(SettingsEnum.ADREMOVER_HORIZONTAL_VIDEO_SHELF, "horizontal_video_shelf");
var channelBar = new BlockRule(SettingsEnum.ADREMOVER_CHANNEL_BAR, "channel_bar");
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,
"cell_divider" // layout residue (gray line above the buttoned ad),
);
Expand Down Expand Up @@ -79,6 +80,7 @@ public GeneralAdsPatch() {
movieAds,
chapterTeaser,
communityGuidelines,
quickActions,
relatedVideos,
compactBanner,
inFeedSurvey,
Expand All @@ -95,7 +97,6 @@ public GeneralAdsPatch() {
channelMemberShelf
);

var quickActions = new BlockRule(SettingsEnum.ADREMOVER_CHANNEL_BAR, "quick_actions");
var carouselAd = new BlockRule(SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL,
"carousel_ad"
);
Expand All @@ -109,7 +110,6 @@ public GeneralAdsPatch() {
this.identifierRegister.registerAll(
shorts,
graySeparator,
quickActions,
carouselAd
);
}
Expand Down

0 comments on commit 476902e

Please sign in to comment.