Skip to content

Instantly share code, notes, and snippets.

@alexanderisora
Created October 16, 2024 09:18
Show Gist options
  • Save alexanderisora/402dcae54085916c6bb1bdb4e040281d to your computer and use it in GitHub Desktop.
Save alexanderisora/402dcae54085916c6bb1bdb4e040281d to your computer and use it in GitHub Desktop.
custom_x_pro_filters.css
/* Hide all notifications by default */
[data-testid="notification"] {
display: none !important;
}
/* Show only notifications containing "liked your reply" or "replied" */
[data-testid="notification"]:has(span:contains("liked your reply")),
[data-testid="notification"]:has(span:contains("replied")) {
display: block !important;
}
/* Hide the "New post notifications for" section */
[role="article"]:has(span:contains("New post notifications for")) {
display: none !important;
}
/* Ensure reply tweets are visible */
[data-testid="tweet"] {
display: block !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment