feat(youtube/general-ads): hide chapter teaser under videos

This commit is contained in:
oSumAtrIX 2022-11-15 02:11:26 +01:00
parent d82b9898a8
commit 3fb337b856
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 4 additions and 1 deletions

View File

@ -228,6 +228,8 @@ final class GeneralBytecodeAdsPatch extends Filter {
var channelGuidelines = new BlockRule(SettingsEnum.ADREMOVER_HIDE_CHANNEL_GUIDELINES, "channel_guidelines_entry_banner"); var channelGuidelines = new BlockRule(SettingsEnum.ADREMOVER_HIDE_CHANNEL_GUIDELINES, "channel_guidelines_entry_banner");
var artistCard = new BlockRule(SettingsEnum.HIDE_ARTIST_CARD, "official_card"); var artistCard = new BlockRule(SettingsEnum.HIDE_ARTIST_CARD, "official_card");
var selfSponsor = new BlockRule(SettingsEnum.ADREMOVER_SELF_SPONSOR_REMOVAL, "cta_shelf_card"); var selfSponsor = new BlockRule(SettingsEnum.ADREMOVER_SELF_SPONSOR_REMOVAL, "cta_shelf_card");
var chapterTeaser = new BlockRule(SettingsEnum.ADREMOVER_CHAPTER_TEASER_REMOVAL, "expandable_metadata");
var generalAds = new BlockRule( var generalAds = new BlockRule(
SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL, SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL,
// could be required // could be required
@ -257,6 +259,7 @@ final class GeneralBytecodeAdsPatch extends Filter {
suggestions, suggestions,
latestPosts, latestPosts,
movieAds, movieAds,
chapterTeaser,
communityGuidelines, communityGuidelines,
compactBanner, compactBanner,
inFeedSurvey, inFeedSurvey,
@ -282,7 +285,6 @@ final class GeneralBytecodeAdsPatch extends Filter {
if (ReVancedUtils.containsAny(path, if (ReVancedUtils.containsAny(path,
"home_video_with_context", "home_video_with_context",
"related_video_with_context", "related_video_with_context",
"search_video_with_context",
"comment_thread", // skip blocking anything in the comments "comment_thread", // skip blocking anything in the comments
"download_", "download_",
"library_recent_shelf", "library_recent_shelf",

View File

@ -45,6 +45,7 @@ public enum SettingsEnum {
ADREMOVER_HIDE_LATEST_POSTS("revanced_adremover_hide_latest_posts", true, ReturnType.BOOLEAN), ADREMOVER_HIDE_LATEST_POSTS("revanced_adremover_hide_latest_posts", true, ReturnType.BOOLEAN),
ADREMOVER_HIDE_CHANNEL_GUIDELINES("revanced_adremover_hide_channel_guidelines", true, ReturnType.BOOLEAN), ADREMOVER_HIDE_CHANNEL_GUIDELINES("revanced_adremover_hide_channel_guidelines", true, ReturnType.BOOLEAN),
ADREMOVER_SELF_SPONSOR_REMOVAL("revanced_adremover_self_sponsor", true, ReturnType.BOOLEAN), ADREMOVER_SELF_SPONSOR_REMOVAL("revanced_adremover_self_sponsor", true, ReturnType.BOOLEAN),
ADREMOVER_CHAPTER_TEASER_REMOVAL("revanced_adremover_chapter_teaser", true, ReturnType.BOOLEAN),
// Action buttons // Action buttons
HIDE_LIKE_BUTTON("revanced_like_button", false, ReturnType.BOOLEAN, false), HIDE_LIKE_BUTTON("revanced_like_button", false, ReturnType.BOOLEAN, false),