Skip to content

Instantly share code, notes, and snippets.

@wmurphyrd
Created January 20, 2022 22:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmurphyrd/b16c4b616c18dbba84e8e5510d9139f7 to your computer and use it in GitHub Desktop.
Save wmurphyrd/b16c4b616c18dbba84e8e5510d9139f7 to your computer and use it in GitHub Desktop.
uBlock cosmetic filter to hide twitter posts from people with official NFT avatars as if they were ads

Background

Twitter has a new feature where users can pay twitter money to offically endorse them as someone who has paid money to record their name in a ledger next to a link or identifier for an image (i.e. an NFT). These users are highlighted in the twitter feed with a hexagonal outline around their profile picture.

You know what I call paying money to a service in order to highlight or distinguish certain content? An advertisement. This is a custom uBlock filter that will treat posts with the special outline as ads and hide them.

Installation

  1. Copy the line of text in ublock-static-filter.txt that starts with "twitter.com##"
  2. Click the uBlock icon in your add-ons tray
  3. Click the gears icon to open the uBlock dashboard
  4. Click the "My Filters" tab at the top
  5. Paste the line you copied earlier
  6. Click "Apply Changes"
twitter.com##article:has([style='clip-path: url("#hex-hw-shapeclip-clipconfig"); height: calc(100% + 4px); width: calc(100% + 4px);'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment