Skip to content

Instantly share code, notes, and snippets.

@Stichoza
Last active December 13, 2021 11:13
Show Gist options
  • Save Stichoza/b856739b2c1f0af03f327a47cf473302 to your computer and use it in GitHub Desktop.
Save Stichoza/b856739b2c1f0af03f327a47cf473302 to your computer and use it in GitHub Desktop.
Safari style sheet hide news feed and right panel.
[role="main"] [data-pagelet="Stories"],
#ssrb_stories_end + div,
#ssrb_rhc_start + [data-pagelet="RightRail"],
[role="navigation"] [aria-label^="Watch"],
[role="navigation"] [aria-label^="Marketplace"],
[role="navigation"] [aria-label^="Gaming"],
[role="navigation"] [aria-label^="Home"],
[role="navigation"] [aria-label^="Groups"]
{
display: none !important;
opacity: 0 !important;
pointer-events: none;
}
#ssrb_left_rail_end + h1 + [role="main"]:after {
content: "News Feed is blocked.";
display: block;
color: white;
font-size: 20px;
margin-top: 30vh;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment