Skip to content

Instantly share code, notes, and snippets.

@Stevoisiak
Last active February 18, 2026 22:28
Show Gist options
  • Select an option

  • Save Stevoisiak/0f2d9bbecb19e3e14fa101e79b97f1e4 to your computer and use it in GitHub Desktop.

Select an option

Save Stevoisiak/0f2d9bbecb19e3e14fa101e79b97f1e4 to your computer and use it in GitHub Desktop.
Useful resources for uBlock Origin filter writing
- Intro to basic filtering: https://github.com/gorhill/uBlock/wiki/Introduction-to-basic-filtering-syntax
- Static filter syntax: https://github.com/gorhill/uBlock/wiki/Static-filter-syntax/
- CSS Pseudo-classes: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/Pseudo-classes
- https://www.reddit.com/r/firefox/comments/8w9nqm/ublock_can_style_css_you_dont_need_a_separate/
- https://github.com/uBlockOrigin/uBlock-issues/discussions/3069#discussioncomment-15847877
- https://github.com/gorhill/uBlock/wiki/Advanced-settings#trustedListPrefixes
- https://adguard.com/kb/general/ad-filtering/create-own-filters/#extended-css-matches-attr
- https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters
- https://webdesign.tutsplus.com/the-30-css-selectors-you-must-memorize--net-16048t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment