feat(youtube/general-ads): hide image shelf from search results

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2023-02-24 04:13:52 +01:00
parent 0b1b6b3682
commit db6ce55477
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public final class GeneralAdsPatch extends Filter {
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_QUICK_ACTIONS, "quick_actions");
var imageShelf = new BlockRule(SettingsEnum.ADREMOVER_IMAGE_SHELF, "image_shelf");
var graySeparator = new BlockRule(SettingsEnum.ADREMOVER_GRAY_SEPARATOR,
"cell_divider" // layout residue (gray line above the buttoned ad),
);
@ -92,6 +93,7 @@ public final class GeneralAdsPatch extends Filter {
artistCard,
selfSponsor,
webLinkPanel,
imageShelf,
horizontalVideoShelf,
subscribersCommunityGuidelines,
channelMemberShelf

View File

@ -58,6 +58,7 @@ public enum SettingsEnum {
ADREMOVER_CHANNEL_BAR("revanced_hide_channel_bar", false, ReturnType.BOOLEAN),
ADREMOVER_QUICK_ACTIONS("revanced_hide_quick_actions", false, ReturnType.BOOLEAN),
ADREMOVER_RELATED_VIDEOS("revanced_hide_related_videos", false, ReturnType.BOOLEAN),
ADREMOVER_IMAGE_SHELF("revanced_hide_image_shelf", true, ReturnType.BOOLEAN),
// Action buttons
HIDE_LIKE_BUTTON("revanced_hide_like_button", false, ReturnType.BOOLEAN, false),