Skip to content

Instantly share code, notes, and snippets.

@cmoog
Last active October 18, 2024 15:02
Show Gist options
  • Save cmoog/6cedfb2be1f712ceb091fbd05c9dab3e to your computer and use it in GitHub Desktop.
Save cmoog/6cedfb2be1f712ceb091fbd05c9dab3e to your computer and use it in GitHub Desktop.

Ad-free Twitter

Inject this css snippet to remove all ads from your Twitter timeline.

div[data-testid="placementTracking"]:has(path[d="M19.498 3h-15c-1.381 0-2.5 1.12-2.5 2.5v13c0 1.38 1.119 2.5 2.5 2.5h15c1.381 0 2.5-1.12 2.5-2.5v-13c0-1.38-1.119-2.5-2.5-2.5zm-3.502 12h-2v-3.59l-5.293 5.3-1.414-1.42L12.581 10H8.996V8h7v7z"]) {
  display: none;
}

I use the Stylebot extension but I'm sure others would work too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment