mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-07 10:35:49 +01:00
fix(YouTube - Hide layout components): Hide emergency box when enabled
This commit is contained in:
parent
741ab2468d
commit
6ca7946e8f
@ -130,6 +130,11 @@ public final class LayoutComponentsFilter extends Filter {
|
|||||||
"channel_guidelines_entry_banner"
|
"channel_guidelines_entry_banner"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
final var emergencyBox = new StringFilterGroup(
|
||||||
|
SettingsEnum.HIDE_EMERGENCY_BOX,
|
||||||
|
"emergency_onebox"
|
||||||
|
);
|
||||||
|
|
||||||
// The player audio track button does the exact same function as the audio track flyout menu option.
|
// The player audio track button does the exact same function as the audio track flyout menu option.
|
||||||
// But if the copy url button is shown, these button clashes and the the audio button does not work.
|
// But if the copy url button is shown, these button clashes and the the audio button does not work.
|
||||||
// Previously this was a setting to show/hide the player button.
|
// Previously this was a setting to show/hide the player button.
|
||||||
@ -239,6 +244,7 @@ public final class LayoutComponentsFilter extends Filter {
|
|||||||
medicalPanel,
|
medicalPanel,
|
||||||
videoQualityMenuFooter,
|
videoQualityMenuFooter,
|
||||||
infoPanel,
|
infoPanel,
|
||||||
|
emergencyBox,
|
||||||
subscribersCommunityGuidelines,
|
subscribersCommunityGuidelines,
|
||||||
channelGuidelines,
|
channelGuidelines,
|
||||||
audioTrackButton,
|
audioTrackButton,
|
||||||
@ -258,10 +264,10 @@ public final class LayoutComponentsFilter extends Filter {
|
|||||||
return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The groups are excluded from the filter due to the exceptions list below.
|
// The groups are excluded from the filter due to the exceptions list below.
|
||||||
// Filter them separately here.
|
// Filter them separately here.
|
||||||
if (matchedGroup == notifyMe || matchedGroup == inFeedSurvey || matchedGroup == expandableMetadata)
|
if (matchedGroup == notifyMe || matchedGroup == inFeedSurvey || matchedGroup == expandableMetadata)
|
||||||
return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
||||||
|
|
||||||
if (matchedGroup != custom && exceptions.matches(path))
|
if (matchedGroup != custom && exceptions.matches(path))
|
||||||
|
Loading…
Reference in New Issue
Block a user