Skip to content

Instantly share code, notes, and snippets.

@jonathanmarvens
Forked from eevee/gist:55426e5856f5825317b1
Created February 16, 2016 16:22
Show Gist options
  • Save jonathanmarvens/4d8ef268c0e65a0ce0ea to your computer and use it in GitHub Desktop.
Save jonathanmarvens/4d8ef268c0e65a0ce0ea 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