Skip to content

Instantly share code, notes, and snippets.

@eevee
Last active January 28, 2021 22:51
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eevee/55426e5856f5825317b1 to your computer and use it in GitHub Desktop.
Save eevee/55426e5856f5825317b1 to your computer and use it in GitHub Desktop.
adblock rules to hide mentions from people who don't follow you

Pop open "filter preferences" in adblock plus, and add the following rules to hide mentions from people who don't follow you (and who you don't follow).

For the interactions/notifications page:

twitter.com##.interaction-page [data-follows-you="false"][data-you-follow="false"]:not(.my-tweet)

For the mentions page:

twitter.com##.mentions-page [data-follows-you="false"][data-you-follow="false"]:not(.my-tweet)

You can disable these at any time, and re-enable them only during emergencies.


Note that the above rules will also hide threaded replies from an expanded tweet; if you don't want that, use these rules instead:

twitter.com##.interaction-page .stream > .stream-items > .stream-item > [data-follows-you="false"][data-you-follow="false"]
twitter.com##.mentions-page .stream > .stream-items > .stream-item > [data-follows-you="false"][data-you-follow="false"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment