Allow hiding BYOG section

This commit is contained in:
redphx
2025-02-04 20:51:50 +07:00
parent 66b1f92f4c
commit d4f070f6bb
5 changed files with 28 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ export function addCss() {
}
// Hide BYOG section
if (getGlobalPref(GlobalPref.BLOCK_FEATURES).includes(BlockFeature.BYOG)) {
if (getGlobalPref(GlobalPref.BLOCK_FEATURES).includes(BlockFeature.BYOG) || getGlobalPref(GlobalPref.UI_HIDE_SECTIONS).includes(UiSection.BOYG)) {
selectorToHide.push('#BodyContent > div[class*=ByogRow-module__container___]');
}