Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit ac3a835

Browse files
author
OxrxL
authored
feat: hide-artist-card patch (#186)
1 parent 3945010 commit ac3a835

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/main/java/app/revanced/integrations/patches/LithoFilterPatch.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ public GeneralBytecodeAdsPatch() {
206206
var suggestions = new BlockRule(SettingsEnum.ADREMOVER_SUGGESTIONS_REMOVAL, "horizontal_video_shelf");
207207
var latestPosts = new BlockRule(SettingsEnum.ADREMOVER_HIDE_LATEST_POSTS, "post_shelf");
208208
var channelGuidelines = new BlockRule(SettingsEnum.ADREMOVER_HIDE_CHANNEL_GUIDELINES, "channel_guidelines_entry_banner");
209+
var artistCard = new BlockRule(SettingsEnum.HIDE_ARTIST_CARD, "official_card");
209210
var generalAds = new BlockRule(
210211
SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL,
211212
// could be required
@@ -244,7 +245,8 @@ public GeneralBytecodeAdsPatch() {
244245
medicalPanel,
245246
merchandise,
246247
infoPanel,
247-
channelGuidelines
248+
channelGuidelines,
249+
artistCard
248250
);
249251

250252
// Block for the ComponentContext.identifier field

app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public enum SettingsEnum {
7373
HIDE_CAPTIONS_BUTTON("revanced_hide_captions_button", false, ReturnType.BOOLEAN),
7474
HIDE_MIX_PLAYLISTS("revanced_mix_playlists_hidden", false, ReturnType.BOOLEAN, true),
7575
HIDE_CROWDFUNDING_BOX("revanced_hide_crowdfunding_box", false, ReturnType.BOOLEAN, true),
76+
HIDE_ARTIST_CARD("revanced_hide_artist_card", false, ReturnType.BOOLEAN),
7677

7778
// Misc. Settings
7879
CAPTIONS_ENABLED("revanced_autocaptions_enabled", false, ReturnType.BOOLEAN, false),

0 commit comments

Comments
 (0)