4

I'm looking for documentation describing Google Chrome's glob/wildcard/pattern syntax used in block/allow lists for content settings.

If you're using Chrome, these settings pages are accessible via urls like:

chrome://settings/content/javascript

chrome://settings/content/cookies

There are several other pages that use the same url matching syntax. When you click "Add", the form displays the example text, [*.]example.com. The square brackets appear to be necessary when using the wildcard pattern, as omitting them results in the message, Not a valid web address.

Official documentation or source code would be nice, but a plain old BNF is ideal.

I have found two related pages that describe url pattern matching in Chrome, but neither of them apply to this case. Please don't reference them unless it turns out that I've misunderstood their relevance (neither document the required square brackets):

  1. https://www.chromium.org/administrators/url-blacklist-filter-format

  2. https://developer.chrome.com/apps/match_patterns

1

I initially had the same behavior but [*.]example.com is the correct syntax and it works, after i have copy and paste the adress from HERE

Now i can use every url, maybe it's a bug.

  • I've already figured as much, but it seems like there should be much more to the syntax, or at least a definitive resource that's not on the help page for cookies, since this is used elsewhere. – stewSquared Jun 6 at 21:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.