Skip to content

Instantly share code, notes, and snippets.

@zry98
Created April 11, 2024 09:01
Show Gist options
  • Save zry98/617397f34262c93ddb6d1b8747629ba0 to your computer and use it in GitHub Desktop.
Save zry98/617397f34262c93ddb6d1b8747629ba0 to your computer and use it in GitHub Desktop.
uBlock custom filters for hiding Twitter's sensitive content warning annoyances
! hide Twitter sensitive content warnings
! timeline
twitter.com##:xpath(//span[contains(text(), 'Content warning: ')]/../../../..)
twitter.com##:xpath(//span[contains(text(), 'Content warning: ')]/../../../../preceding-sibling::div):style(filter: blur(0) !important)
! user media page
twitter.com##:xpath(//span[text()='Warning: Sensitive content']/../..)
twitter.com##:xpath(//span[text()='Warning: Sensitive content']/../../preceding-sibling::div):style(filter: blur(0) !important)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment