mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-06 18:15:51 +01:00
feat(youtube/general-ads): hide self sponsored cards
This commit is contained in:
parent
695c59efd4
commit
e93ce3eaa9
@ -228,8 +228,8 @@ final class GeneralBytecodeAdsPatch extends Filter {
|
|||||||
var suggestions = new BlockRule(SettingsEnum.ADREMOVER_SUGGESTIONS_REMOVAL, "horizontal_video_shelf");
|
var suggestions = new BlockRule(SettingsEnum.ADREMOVER_SUGGESTIONS_REMOVAL, "horizontal_video_shelf");
|
||||||
var latestPosts = new BlockRule(SettingsEnum.ADREMOVER_HIDE_LATEST_POSTS, "post_shelf");
|
var latestPosts = new BlockRule(SettingsEnum.ADREMOVER_HIDE_LATEST_POSTS, "post_shelf");
|
||||||
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 generalAds = new BlockRule(
|
var generalAds = new BlockRule(
|
||||||
SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL,
|
SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL,
|
||||||
// could be required
|
// could be required
|
||||||
@ -268,7 +268,8 @@ final class GeneralBytecodeAdsPatch extends Filter {
|
|||||||
merchandise,
|
merchandise,
|
||||||
infoPanel,
|
infoPanel,
|
||||||
channelGuidelines,
|
channelGuidelines,
|
||||||
artistCard
|
artistCard,
|
||||||
|
selfSponsor
|
||||||
);
|
);
|
||||||
|
|
||||||
// Block for the ComponentContext.identifier field
|
// Block for the ComponentContext.identifier field
|
||||||
|
@ -44,6 +44,7 @@ public enum SettingsEnum {
|
|||||||
ADREMOVER_SUGGESTIONS_REMOVAL("revanced_adremover_hide_suggestions", true, ReturnType.BOOLEAN),
|
ADREMOVER_SUGGESTIONS_REMOVAL("revanced_adremover_hide_suggestions", true, ReturnType.BOOLEAN),
|
||||||
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),
|
||||||
|
|
||||||
// Action buttons
|
// Action buttons
|
||||||
HIDE_LIKE_BUTTON("revanced_like_button", false, ReturnType.BOOLEAN, false),
|
HIDE_LIKE_BUTTON("revanced_like_button", false, ReturnType.BOOLEAN, false),
|
||||||
|
Loading…
Reference in New Issue
Block a user