uBlock Origin & AdBlock Filter Rule Syntax & Regex Tester
Test network request filters, CSS cosmetic element hiding selectors (`##`), procedural scriptlets (`##+js`), and exception rules (`@@`) against standard Adblock Plus and uBlock Origin filter syntax specifications.Documentation & FAQs ↓
Supports network anchors (||, |), separators (^), cosmetic selectors (##), and scriptlets (##+js).
Tests against internal declarativeNetRequest / regex simulator.
Engine Target: Network WebRequest / DNR
Compatible with uBlock Origin, ABP, and AdGuard
^https?://([a-z0-9-]+\.)*doubleclick\.net([/:?&=#]|$)
Underlying compiled pattern evaluated by browser extension engines when matching URLs.
URL matches filter pattern "^https?://([a-z0-9-]+\.)*doubleclick\.net([/:?&=#]|$)". Network request will be BLOCKED at declarative/webRequest hook.
Step-by-Step Instructions
4 Steps to CompletionPaste an adblock filter rule (e.g., ||example.com/ads/*$image,script,third-party or example.com##.ad-banner) into the input.
Inspect the parsed rule category: Network Filter, Cosmetic Filter, Scriptlet, or Whitelist Exception.
Review token breakdown, matched domains, activated modifier flags, and regex translation.
Test candidate URLs or DOM snippets against the rule to confirm blocking behavior.
Practical Use Cases & Real-World Scenarios
Network Rule Parser
Parses network filter tokens, domain anchors (||), protocol wildcards (*), and query separators (^).
Cosmetic Element Hiding (##)
Validates CSS selectors and procedural filters like :has(), :has-text(), :xpath(), and :matches-path().
Filter Modifier Inspector
Checks modifier options including $third-party, $script, $image, $xhr, $badfilter, and $csp.
Exception Rule (@@) Debugger
Validates whitelist exceptions and tests priority precedence between blocking and unblocking directives.
Frequently Asked Questions
What does the double pipe (||) signify in an adblock filter rule?↓
What does the caret (^) symbol mean in network filters?↓
How do cosmetic filters (##) differ from network filters?↓
What is the difference between $third-party and $~third-party?↓
How do exception whitelist rules (@@) work?↓
10 Best Ad Blockers Extensions for Chrome in 2026
Dive deeper into the foundational technical concepts behind this tool on our editorial blog. Includes comprehensive hardware benchmarks, case studies, and best practices.
Found this tool helpful? Share it with colleagues & friends:
100% free, private in-browser utility with zero server uploads.
