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.

Revisions

  1. cmoog revised this gist May 11, 2023. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion twitter-ad-free.md
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,7 @@ 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](https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha) extension
    but I'm sure others would work too.
  2. cmoog created this gist May 11, 2023.
    9 changes: 9 additions & 0 deletions twitter-ad-free.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    ## Ad-free Twitter

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

    ```css
    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;
    }
    ```