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 ↓

uBlock Origin & AdBlock Cosmetic & Network Filter Syntax Tester — Interactive Console
Runs locally in your browser • Instant output
Rule Presets:

Supports network anchors (||, |), separators (^), cosmetic selectors (##), and scriptlets (##+js).

Tests against internal declarativeNetRequest / regex simulator.

Rule Type Classification
Network Request Block

Engine Target: Network WebRequest / DNR

Syntax Validation
Valid Adblock Rule

Compatible with uBlock Origin, ABP, and AdGuard

Active Options & Flags
$third-party$script
Internal Regex Equivalent Engine Representation
^https?://([a-z0-9-]+\.)*doubleclick\.net([/:?&=#]|$)

Underlying compiled pattern evaluated by browser extension engines when matching URLs.

Rule Triggers · Action Applied

URL matches filter pattern "^https?://([a-z0-9-]+\.)*doubleclick\.net([/:?&=#]|$)". Network request will be BLOCKED at declarative/webRequest hook.

Advertisement

Step-by-Step Instructions

4 Steps to Completion
1Phase 1

Paste an adblock filter rule (e.g., ||example.com/ads/*$image,script,third-party or example.com##.ad-banner) into the input.

2Phase 2

Inspect the parsed rule category: Network Filter, Cosmetic Filter, Scriptlet, or Whitelist Exception.

3Phase 3

Review token breakdown, matched domains, activated modifier flags, and regex translation.

4Phase 4

Test candidate URLs or DOM snippets against the rule to confirm blocking behavior.

Practical Use Cases & Real-World Scenarios

Authoring Custom uBlock Origin Filters
Ensure newly written anti-ad or anti-tracker filter rules do not break page layouts with syntax errors before adding to 'My Filters'.
Hiding Intrusive Web Page Elements
Draft precise cosmetic hiding rules (domain.com##.floating-newsletter-modal) that target sticky banners without affecting content.
Maintaining Community Adblock Lists
Lint and debug hundreds of rules to ensure standard compatibility across uBlock Origin, AdGuard, and Brave Shields.
Related Editorial Guide on AnshuTechy10 Best Ad Blockers Extensions for Chrome in 2026
Read Tutorial →
Share With Your Community

Found this tool helpful? Share it with colleagues & friends:

100% free, private in-browser utility with zero server uploads.