Skip to content

Instantly share code, notes, and snippets.

@gyng
Last active April 10, 2020 19:13
Show Gist options
  • Save gyng/db85001600aba79e67bb33dca70d5a53 to your computer and use it in GitHub Desktop.
Save gyng/db85001600aba79e67bb33dca70d5a53 to your computer and use it in GitHub Desktop.
Useful uBlock Origin filters

Useful uBlock Origin filters

A small collection of useful, but hard to find uBlock Origin filters I've personally found useful

uBlock Origin Wiki: Static-filter-syntax

Block external scripts on a site

||example.com$csp=script-src 'none'

Edit csp to a CSP string to block other things like images or frames

Block promoted tweets

twitter.com##[data-testid="placementTracking"]:has-text(/Promoted/)

Update the data-testid="placementTracking" selector when Twitter changes their HTML

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