Hide the "Play with friends" section when social features are disabled

This commit is contained in:
redphx 2023-10-15 16:23:51 +07:00
parent fb80c3662a
commit 75d9639c01

View File

@ -3679,6 +3679,16 @@ div[class*=NotFocusedDialog] {
} }
`; `;
// Hide "Play with friends" section
if (PREFS.get(Preferences.BLOCK_SOCIAL_FEATURES)) {
css += `
div[class^=HomePage-module__bottomSpacing]:has(button[class*=SocialEmptyCard]),
button[class*=SocialEmptyCard] {
display: none;
}
`;
}
// Reduce animations // Reduce animations
if (PREFS.get(Preferences.REDUCE_ANIMATIONS)) { if (PREFS.get(Preferences.REDUCE_ANIMATIONS)) {
css += ` css += `